Welcome! Log In Create A New Profile

Advanced

[nginx] two masters exist

March 02, 2017 11:08AM
Hi!

It's possible that two masters exist at the same time.

kill -USR2 pid;
sleep(2);
if [ -f ${oldbinpidfile} -a -f ${pidfile} ];
# New master doesn't success in two seconds
kill -QUIT oldpid;
fi

We assume that the previous exist master is old,
I want to know which master process the request that's accepted,
maybe I can design the variable $master with value old or new.
Is it possible to implement?

Thanks!
B.R.
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] two masters exist

karton 676 March 02, 2017 11:08AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 167
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready