bundles/nginx: determine worker processes by cpu count by default
This commit is contained in:
parent
768bad7b77
commit
b24253a64b
1 changed files with 10 additions and 2 deletions
|
@ -17,8 +17,16 @@ defaults = {
|
|||
},
|
||||
},
|
||||
'nginx': {
|
||||
'worker_processes': 4,
|
||||
'worker_connections': 1000,
|
||||
'worker_connections': 768,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor
|
||||
def worker_processes(metadata):
|
||||
return {
|
||||
'nginx': {
|
||||
'worker_processes': metadata.get('vm/cpu', 2),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue