S
S
Sergey2018-11-19 14:13:36
Network administration
Sergey, 2018-11-19 14:13:36

Server under heavy load, uptime?

Hello!
I want to ask such an interesting question to which I have not been able to find an answer for a long time.
I don't know much about administration, so I'm asking for help.
There is a server
specifications:
CPU: 2xXeon L5520
RAM: 24Gb
PORT: 1Gb / s
php: 7.2
MySQL is also used
Apache web server
OS: Debian 9.x The
question is how to configure the server so that it can withstand 1000 people online at the same time +
Drive test traffic server started to freeze when there were 470 people, and fell when there were 600 people.
Give some advice to make the server work stably 24/7 under load, thanks in advance!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
Sanes, 2018-11-19
Dobryak @sergey_dobryak

Contact qualified professionals. How else...

P
Puma Thailand, 2018-11-19
@opium

nginx phpfpm
Well, you have to rewrite the code so that it holds the load

S
stratosmi, 2018-11-20
@stratosmi

There is a server
specifications:
CPU: 2xXeon L5520
RAM: 24Gb
PORT: 1Gb / s
php: 7.2
MySQL is also used
Apache web server
OS: Debian 9.x The
question is how to configure the server so that it can withstand 1000 people online at the same time +
Drive test traffic server started to freeze when there were 470 people, and fell when there were 600 people.
Give some advice to make the server work stably 24/7 under load, thanks in advance!

Just contact the developer.
But qualified.
An example from life - there is a server: a
virtual machine, 2 cores, 512 megabytes of RAM.
Holds 10,000 concurrent connections.
Perhaps your software really requires such hardware, as you wrote.
Perhaps your software is really written correctly, but a specialist should understand this .
Better developer.
But it is possible for the administrator.
If you are an admin and not a developer and cannot get inside the software, then at least this: the task of the admin is to conduct profiling - that is, to find out exactly where the bottleneck is: there is not enough processor or memory or disk speed.
Such that "just the server slows down" is not the answer.
There is always some well-defined bottleneck.
Wangyu - work with the database.
As a rule, the plug is in the shitty software, which does not work correctly with the DBMS.
And in the database, in turn, the bottleneck is the disks.
From shitcode to Highload. We use TARANtool. 5 p...

F
Fafhrd, 2018-11-19
@Fafhrd

Either contact a specialist, but a real one, not a pseudo one, or conduct an audit on your own and answer the questions:
- which component of the system (base, php, web server) slows down the most with 470 users
- what to do with it so that it does not slow down
further correct
and so on in a circle until it's good

�
âš¡ Kotobotov âš¡, 2018-11-20
@angrySCV

you have several options, the first one is to speed up the processing of a separate request, see where it has a bottleneck, etc. (switch from interpreted languages ​​to compiled ones, already keep some data in RAM and not read them from somewhere), this can increase performance by dozens or even hundreds of times.
the second is to build parallelization of request processing, change the scheme for processing these requests from synchronous to asynchronous, adding individual heavy tasks to a separate queue that would NOT block the processing of simple user requests (this can also increase performance dozens of times)
In any case, this is the task of the developers of your service -\u003e just "configure" the server, it will not give much output, you can, for example, increase memory, change disks, put a 20-core processor instead of a 10-core one, and you won’t see any increase at all, just ZERO.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question