-
Notifications
You must be signed in to change notification settings - Fork 604
Run nginx as a worker #11334
Run nginx as a worker #11334
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,12 @@ module.exports = (KONFIG, options, credentials) -> | |
| nodeProgram = if options.watchNode then './watch-node' else 'node' | ||
|
|
||
| workers = | ||
| nginx: | ||
| group: 'webserver' | ||
| supervisord: | ||
| command: 'nginx -c %(ENV_KONFIG_PROJECTROOT)s/nginx.conf' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/nginx.conf/deployment/generated_files/nginx.conf also could you remove the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you also change the "stopsignal" to QUIT for supervisord conf of this worker? we will make sure that nginx is restarted/stopped gracefully.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't recall. I suppose it was just to have a shorter path. Stop signal is a good catch. Also, that reminded me an old observation. I think
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll remove redundant configuration output files in a separate pull request. |
||
| stopsignal: 'QUIT' | ||
|
|
||
| bucketproxies : | ||
| group : 'bucket' | ||
| nginx : | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,7 @@ generateWorkerSection = (app, options = {}) -> | |
| autorestart : yes | ||
| startsecs : 10 | ||
| startretries : 5 | ||
| stopsignal : 'TERM' | ||
| stopsignal : options.stopsignal or 'TERM' | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is not needed, line 65 already handles those |
||
| stopwaitsecs : 10 | ||
| stopasgroup : yes | ||
| killasgroup : yes | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
old files might stay during updates if machine is not get recycled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should add current file names to overrides configuration.