From c96778b354ea82943442aab158adbb854ca43a52 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Sun, 23 Sep 2018 23:53:39 +0530 Subject: rpc: make binding to port 0 as the default if no option is provided Right now, if no option is provided, the default port is assumed, which is 24007. Ideally, for 'glusterfsd' processes, it is better to not assume there are any ports given, so it can start listening on any port which is available. This helps us to cleanup the dependencies on glusterd from glusterfsd at the moment. No changes would be done to glusterd code, but making the right defaults helps to make glusterfsd more independent process later. NOTE: This patch is a reduced version of below set of patches: * https://review.gluster.org/14613/ & * https://review.gluster.org/14670/ & * https://review.gluster.org/14671/ Credits: Prasanna Kumar Kalever updates: bz#1343926 Change-Id: Ib874e10505e7366dc56ba754458252b67052e653 Signed-off-by: Amar Tumballi --- extras/glusterd.vol.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'extras/glusterd.vol.in') diff --git a/extras/glusterd.vol.in b/extras/glusterd.vol.in index fe413a9b4ab..e59b17efcac 100644 --- a/extras/glusterd.vol.in +++ b/extras/glusterd.vol.in @@ -5,6 +5,8 @@ volume management option transport.socket.keepalive-time 10 option transport.socket.keepalive-interval 2 option transport.socket.read-fail-log off + option transport.socket.listen-port 24007 + option transport.rdma.listen-port 24008 option ping-timeout 0 option event-threads 1 # option lock-timer 180 -- cgit