Nginx Server : How do i know if my nginx is overload?

General support questions
mahesh2150
Posts: 15
Joined: 2017/10/17 17:15:47

Nginx Server : How do i know if my nginx is overload?

Postby mahesh2150 » 2017/10/17 17:17:28

The server is receiving about 10K visitors. (google analytics report. Real time)

It goes to 9k immediately and comes to 10k slowly. again goes to 9k immediately. It is happening like this.

I was having the same problem when i was getting 3k to 4k. I changed the www-conf for php fpm.

Code: Select all

PHP FPM looks good
pool: www
process manager: dynamic
start time: 17/Oct/2017:00:55:44 -0400
start since: 41972
accepted conn: 5120313
listen queue: 0
max listen queue: 0
listen queue len: 0
idle processes: 27
active processes: 5
total processes: 32
max active processes: 32
max children reached: 0
slow requests: 0


In google search, everyone is telling to change worker_connections and other settings. But how do i know what is the real problem?
Is it really from nginx? or TCP connections?

Can you please guide me?

Thanks.

User avatar
avij
Forum Moderator
Posts: 2141
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Nginx Server : How do i know if my nginx is overload?

Postby avij » 2017/10/17 17:26:20

Where is the problem?

mahesh2150
Posts: 15
Joined: 2017/10/17 17:15:47

Re: Nginx Server : How do i know if my nginx is overload?

Postby mahesh2150 » 2017/10/17 17:30:59

As i have said, server is trying to reduce the users once reached a certain level. The users count is not going above 10K. Once they reach 10K they immediately goes down to 9K in seconds. And again, it goes to 10K

The resources are available.

How can i tell if nginx is overloaded?
It is E3-1240 server with 32 GB Ram.

Ram is about 3% used.
CPU is about 20-30% used.

User avatar
avij
Forum Moderator
Posts: 2141
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Nginx Server : How do i know if my nginx is overload?

Postby avij » 2017/10/17 17:37:41

You did not say that "server is trying to reduce the users", only that the number of users varies. The latter does not mean that there would be problems, it may also be natural.

Are you seeing failed requests or slow processing of requests? If not, I'm not sure I see the problem.

mahesh2150
Posts: 15
Joined: 2017/10/17 17:15:47

Re: Nginx Server : How do i know if my nginx is overload?

Postby mahesh2150 » 2017/10/17 17:50:15

No sir,
It continuously happening.

Though it is normal, please guide me. How can i check the nginx for overloading?
Learning this might be helpful in future.

User avatar
avij
Forum Moderator
Posts: 2141
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Nginx Server : How do i know if my nginx is overload?

Postby avij » 2017/10/17 17:55:46

At this point it might be appropriate to state that CentOS does not ship nginx. Perhaps the Nginx forum would be a better place to ask.

mahesh2150
Posts: 15
Joined: 2017/10/17 17:15:47

Re: Nginx Server : How do i know if my nginx is overload?

Postby mahesh2150 » 2017/10/17 18:01:35

Yes sir. I know that.
I thought to extend the discussion to optimizing sysctl values from centos 7.

mahesh2150
Posts: 15
Joined: 2017/10/17 17:15:47

Re: Nginx Server : How do i know if my nginx is overload?

Postby mahesh2150 » 2017/10/17 18:38:57

Just wonder

Did you ask me
"Where is the problem?"
"Are you seeing failed requests or slow processing of requests?"

these questions to tell me that "At this point it might be appropriate to state that CentOS does not ship nginx. Perhaps the Nginx forum would be a better place to ask."