No workers after rr reset #1790
Replies: 2 comments 1 reply
-
Hey @stevenbrookes 👋 RR doesn't support symlinks in terms as you described. RR reads configuration once on start and then uses it during resets. So if you move the configuration (or update the symlink), RR won't be able to use this new configuration. It is better to use gree-blue or canary deployment practices to update RR. |
Beta Was this translation helpful? Give feedback.
-
Hi @rustatian Ok that's a shame. I've found a neat way around it though if anybody meets the same issue. Starting rr with -p allowed me to use rr stop in my deploy script. Systemd then restarts it and find the new symlnked directory. Seems to work fine so far. |
Beta Was this translation helpful? Give feedback.
-
Hi
When I redeploy my application using deployer (https://deployer.org/) I have a step that calls rr reset but I don't see any workers after that so I have to restart via systemd.
RR version
rr version 2023.3.6 (build time: 2023-11-23T16:35:33+0000, go1.21.4), OS: linux, arch: arm64
Systemd config - note that the directory /var/www/test-tide/current is a symlink to the currently deployed version. Each time deployer deploys it creates a new directory /var/www/test-tide/release/123 and puts link into current version.
.rr.yaml
Deployer step to reset
After systemd restart
rr -w /var/www/test-tide/current workers
After deployment
systemctl status roadrunner-test-tide
rr -w /var/www/test-tide/current workers
-> nothingSo it seems like RR gets confused, perhaps when the symlink changes to another directory when reset is called.
Happy to run some tests or get debugging if it can help
Thanks
Steve
Beta Was this translation helpful? Give feedback.
All reactions