diff options
author | Erik Johnston <erik@matrix.org> | 2015-02-19 11:50:49 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-02-19 11:50:49 +0000 |
commit | c3eb7dd9c572cfcea831e4d5f41b5a34cb3c57e8 (patch) | |
tree | ae74b0ccd88dca1c355409f8c79b8f30b020fa6a /synapse/config | |
parent | Update release date (diff) | |
download | synapse-c3eb7dd9c572cfcea831e4d5f41b5a34cb3c57e8.tar.xz |
Add config option to set the soft fd limit on start
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/server.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index 31e44cc857..a3edf208e9 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -31,6 +31,7 @@ class ServerConfig(Config): self.webclient = True self.manhole = args.manhole self.no_tls = args.no_tls + self.soft_file_limit = args.soft_file_limit if not args.content_addr: host = args.server_name @@ -77,6 +78,12 @@ class ServerConfig(Config): "content repository") server_group.add_argument("--no-tls", action='store_true', help="Don't bind to the https port.") + server_group.add_argument("--soft-file-limit", type=int, default=0, + help="Set the limit on the number of file " + "descriptors synapse can use. Zero " + "is used to indicate synapse should " + "not change the limit from system " + "default.") def read_signing_key(self, signing_key_path): signing_keys = self.read_file(signing_key_path, "signing_key") |