Chapter 13 Super Server Optimization Techniques
The next day, a second batch of 20 servers arrived.
Ye Fan looked at the server counter that filled most of the basement and sighed bitterly.
It's really hard to be a boss, not only do you have to do the code yourself, you have to do everything yourself, and you have to live in the company and work overtime every day.
Life is so hard!
Ye Fan quickly edited a maintenance message on the official website and the world channel and sent it out.
["Top of the Ancients" will be shut down for maintenance after 15 minutes, and the maintenance process will be 15 minutes, and after this maintenance, it will be able to accommodate more than 200,000 players to play. 】
After the message was sent, Ye Fan held a small notebook, constantly recording complex code and computer language on it, and at the same time opened the door of the basement, listening to the buzzing server fan inside, frowning.
This small book, if taken out, will definitely be used in computer science textbooks.
The code optimization inside is simply seamless, and has reached the pinnacle of existing computer languages.
But Ye Fan felt that this was not enough.
Although using super code technology, Ye Fan has optimized one hundred and ten servers to the greatest extent, and the delay between the servers has been reduced to a minimum.
However, it is obviously not enough to connect the servers smoothly and achieve super-balanced computing without latency.
Why don't major game companies open super-large online game maps?
It is because the latency problem between servers has not been solved, and with the existing server technology, the current technology of major game companies, including Ye Fan, can only allow twenty servers to host a large map.
Ye Fan did his best, twenty servers could only carry the Golden Ring City at most at this time, plus a large map of the suburbs.
Don't think that GTA5 maps are huge, each large map is more than ten times the size of GTA5 maps, not counting the tens of thousands of independent NPCs in the city and more than 80,000 monsters in the wild.
If the Element City region is opened in the future, and all the regions are integrated together, the entire map will be the size of half of Gangdong Province.
The existing server is unable to run such a large map, and even if it is forced to run, it will only cause players to tolerate lag.
Why is it stuck?
Because the latency between servers is too high, the large computing between servers is not well distributed to each server.
A more intuitive example is MediaTek's "one core is difficult, and seven cores are onlookers".
If the delay between servers is not solved, even if Ye Fan increases to a thousand servers, the card will still be stuck.
At this time, Ye Fan used super code technology to write this set of programs to come into play.
This program is called "Super Server Optimization Technology"
The principle of this program is to connect the servers of the entire server room, so that all the data is shared, and the idle servers are intelligently allocated for computing, and the delay between the servers is minimized.
That is, all the servers are summed up to simulate a 100-core superprocessor, similar to a small-scale supercomputer, processing large-scale floating-point and fixed-point data.
After recording some data in the small notebook, Ye Fan inserted the USB flash drive into the server terminal computer and began to import the data.
"If it can be done, even if tens of millions of people are online at the same time in a large region, there will be no problems, and the division of major online games will be completely a thing of the past." Ye Fan manipulated the computer, and after the data was imported, it was updated.
After pressing the update button, all the servers shut down in an instant, all the fans turned off, and the entire underground was silent for a moment.
In the next second, all the services lit up at the same time, and the sound of the radiator sounded again, but it was much quieter than the fan sound just now.
Ye Fan briefly tested the computing power and found that the existing server could accommodate 2.5 million people to play online in the same area at the same time.
But this technology is not flawless and has a fatal flaw.
More than a hundred servers are connected in series to form a large processor core, and if one server crashes by mistake, the entire server cluster will go down and all players will be disconnected.
In order to avoid this situation to the greatest extent, Ye Fan will buy the latest and most expensive server, no matter how expensive it is, the requirement is stability.
Ye Fan temporarily blocked the redundant performance and only opened 200,000 players to enter the game.
It's not that he is stingy and doesn't open more people into the game, but he has his own plan and starts to expand step by step, and when the time comes, not only the metropolis of Elemental City, but also more super cities will be launched.
Each megacity will have its own different characteristics, if the Golden Ring City, Water Ring City, etc. are one city, then the Golden Ring City is a province, and more provinces and cities will be launched in the future, and finally merge into the entire human empire!
This is Ye Fan's plan!
After taking care of everything, Ye Fan also closed the door of the basement and began to continue the preparations for version 1.3.
After all, a game is to constantly introduce new content and attract players in order to make more money.
The number of people who recharged in the past two days has obviously decreased a lot, and now the daily profit is only more than 7 million, which is 30% less than when version 1.2 was first launched.
Why is this the case?
It's not because those heroes and players don't want to recharge their money, but they don't have anything to buy!
There are only ten items in the entire mall, except for the Grand Master suit and the two bottomless pits of the maglev sports car, the rest of the fashions are all bought and sold at a hammer, after all, it is impossible for a player to buy the same two fashions and sell them at a 20% discount on the exchange.
Therefore, if he does not rush to launch new content and attract new players, his turnover will be further reduced.
Although you can rely on the exchange's 3% commission to continue your life, the most important point.
Are you willing?
It's definitely going to make money!
So Ye Fan started the development of version 1.3 again.
This development took another 5 days of writing code, Ye Fan swore that this was definitely the most tiring job he had ever done, and if he continued to survive like this, he might die suddenly.
It seems that everything will have to wait for the launch of version 1.1 of the system after the reunion.
At that time, the system will unlock some new functions, and some new goods will be put on the shelves, Ye Fan hopes that the system will have the technology of writing code with one click, no matter how much faith value he has to exchange, after all, he will be liberated in this way.