ClusterLabs / ClusterLabs/resource-agents
nginx resource agent. nginx stopped on failover.
- Dominant language
- Shell
- Stars
- 519
- Forks
- 608
- Avg merge
- 6d 1h
- Merged PRs (30d)
- 7
Description
Is there some way to prevent the nginx resource agent from stopping nginx on a node when a failover occurs?
I am using
Ubuntu 16.04
Corosync Cluster Engine, version '2.3.5'
Pacemaker 1.1.14
Currently if I put a node on standby to test failover corosync will call the hearbeat script with the stop option and stop nginx on that node. The older versions available to Ubuntu 14.04 didn't stop nginx.
I am having trouble finding a way to tweak this behavior. I would prefer a reload instead.
In order to get around this for now I've had to replace everything in the stop_nginx() function with everything in the reload_nginx() function. This is not ideal.
If I am barking up the wrong tree here please let me know where to bark. Thanks!
https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/nginx
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with heartbeat/nginx, especially the stop_nginx() and reload_nginx() functions mentioned in the report. Reproduce the behavior by putting a node on standby with the stated Ubuntu, Corosync, and Pacemaker versions, then compare it with the older Ubuntu 14.04 behavior. Done means failover no longer stops nginx when a reload is the intended behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nginx, shell, ubuntu
- Domain
- devops, distributed-systems, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100