summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd.c
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2011-05-29 08:11:22 +0000
committerAnand Avati <avati@gluster.com>2011-05-30 01:49:29 -0700
commitfdf3bd3e548c380820219b135e16e9731e31c7c6 (patch)
treeb5f8b37f0da820f272d0bfaf01309773b157edf1 /xlators/mgmt/glusterd/src/glusterd.c
parentb4fc412a46d8a71cf02d847b0e359b6668e218f2 (diff)
mgmt/glusterd: Set option listen-backlog to 128
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2941 (glusterd breaks when starting ~100 volumes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2941
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index 15894b32cbb..2ee56c0f602 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -220,12 +220,28 @@ int
glusterd_rpcsvc_options_build (dict_t *options)
{
int ret = 0;
+ uint32_t backlog = 0;
if (!dict_get (options, "rpc-auth-allow-insecure")) {
ret = dict_set_str (options, "rpc-auth-allow-insecure", "on");
if (ret)
goto out;
}
+
+ ret = dict_get_uint32 (options, "transport.socket.listen-backlog",
+ &backlog);
+
+ if (ret) {
+ backlog = GLUSTERD_SOCKET_LISTEN_BACKLOG;
+ ret = dict_set_uint32 (options,
+ "transport.socket.listen-backlog",
+ backlog);
+ if (ret)
+ goto out;
+ }
+
+ gf_log ("", GF_LOG_DEBUG, "listen-backlog value: %d", backlog);
+
out:
return ret;
}