Setting mcrouter port.
When i start mcrouter on Ubuntu 16.04 using
sudo service mcrouter start
I noticed that by default, it uses 11211 as port. However, i would like mcrouter to use 5000 as the default port. So to achieve, i currently start mcrouter with the following command:
/usr/bin/mcrouter --debug-fifo-root /var/lib/mcrouter/fifos --stats-root /var/lib/mcrouter/stats -L /var/log/mcrouter/mcrouter.log -p -f /etc/mcrouter.conf -f /etc/mcrouter.conf -L /var/log/mcrouter/mcrouter.log -p 5000 --send-invalid-route-to-default --file-observer-poll-period-ms=1000 --file-observer-sleep-before-update-ms=100 &
I would prefer to start mcrouter with service mcrouter start instead, but could not find a way to configure the port setting to 5000. How can i do this? Is there a config file that i can change?
FYI, my mcrouter config looks like this:
{ "pools": { "session": { "servers": [ "10.1.5.100:11211", "10.1.5.102:11211" ] } }, "route": { "type": "OperationSelectorRoute", "operation_policies": { "add": "AllSyncRoute|Pool|session", "delete": "AllSyncRoute|Pool|session", "get": "LatestRoute|Pool|session", "set": "AllSyncRoute|Pool|session" } } }
Hello chilumbugeorge! There is no /etc/init.d/mcrouter?