Adds --cluster support (#2596)

* Adds --cluster support

* Restart failing child processes
This commit is contained in:
Florent Vilmart
2016-08-29 21:43:35 -04:00
committed by GitHub
parent d65f4a6f75
commit 4d78446cb9
2 changed files with 48 additions and 16 deletions

View File

@@ -221,5 +221,9 @@ export default {
env: "PARSE_SERVER_SCHEMA_CACHE_TTL",
help: "The TTL for caching the schema for optimizing read/write operations. You should put a long TTL when your DB is in production. default to 0; disabled.",
action: numberParser("schemaCacheTTL"),
},
"cluster": {
help: "Run with cluster, optionally set the number of processes default to os.cpus().length",
action: numberParser("cluster"),
}
};