How often I can use USR1 for nginx ? For example if I want rotate logs every minute – is it affect to productivity of nginx server ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a small amount of overhead in reloading the log files. If you have concerns about the performance of the operation, I recommend you test with your own application to confirm it will work fine in production for you. You can observe the memory and and CPU use during repeated use of the USR1 signal, and well as benchmarking the request volume you can handle with and without the rotation happening.