{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/mcrouter/issues/264","repository_url":"https://api.github.com/repos/facebook/mcrouter","labels_url":"https://api.github.com/repos/facebook/mcrouter/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/facebook/mcrouter/issues/264/comments","events_url":"https://api.github.com/repos/facebook/mcrouter/issues/264/events","html_url":"https://github.com/facebook/mcrouter/issues/264","id":346493503,"node_id":"MDU6SXNzdWUzNDY0OTM1MDM=","number":264,"title":"Setting mcrouter port.","user":{"login":"chilumbugeorge","id":15921658,"node_id":"MDQ6VXNlcjE1OTIxNjU4","avatar_url":"https://avatars3.githubusercontent.com/u/15921658?v=4","gravatar_id":"","url":"https://api.github.com/users/chilumbugeorge","html_url":"https://github.com/chilumbugeorge","followers_url":"https://api.github.com/users/chilumbugeorge/followers","following_url":"https://api.github.com/users/chilumbugeorge/following{/other_user}","gists_url":"https://api.github.com/users/chilumbugeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/chilumbugeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chilumbugeorge/subscriptions","organizations_url":"https://api.github.com/users/chilumbugeorge/orgs","repos_url":"https://api.github.com/users/chilumbugeorge/repos","events_url":"https://api.github.com/users/chilumbugeorge/events{/privacy}","received_events_url":"https://api.github.com/users/chilumbugeorge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-01T08:12:07Z","updated_at":"2018-08-01T08:17:12Z","closed_at":null,"author_association":"NONE","body":"When i start mcrouter on Ubuntu 16.04 using \r\n`sudo service mcrouter start`\r\n\r\nI 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:\r\n\r\n`/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 &`\r\n\r\nI 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?"},"comment":{"url":"https://api.github.com/repos/facebook/mcrouter/issues/comments/409491168","html_url":"https://github.com/facebook/mcrouter/issues/264#issuecomment-409491168","issue_url":"https://api.github.com/repos/facebook/mcrouter/issues/264","id":409491168,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTQ5MTE2OA==","user":{"login":"chilumbugeorge","id":15921658,"node_id":"MDQ6VXNlcjE1OTIxNjU4","avatar_url":"https://avatars3.githubusercontent.com/u/15921658?v=4","gravatar_id":"","url":"https://api.github.com/users/chilumbugeorge","html_url":"https://github.com/chilumbugeorge","followers_url":"https://api.github.com/users/chilumbugeorge/followers","following_url":"https://api.github.com/users/chilumbugeorge/following{/other_user}","gists_url":"https://api.github.com/users/chilumbugeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/chilumbugeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chilumbugeorge/subscriptions","organizations_url":"https://api.github.com/users/chilumbugeorge/orgs","repos_url":"https://api.github.com/users/chilumbugeorge/repos","events_url":"https://api.github.com/users/chilumbugeorge/events{/privacy}","received_events_url":"https://api.github.com/users/chilumbugeorge/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T08:17:12Z","updated_at":"2018-08-01T08:17:12Z","author_association":"NONE","body":"FYI, my mcrouter config looks like this:\r\n\r\n`{\r\n   \"pools\": {\r\n      \"session\": {\r\n         \"servers\": [\r\n           \"10.1.5.100:11211\",\r\n           \"10.1.5.102:11211\"\r\n         ]\r\n      }\r\n   },\r\n   \"route\": {\r\n     \"type\": \"OperationSelectorRoute\",\r\n     \"operation_policies\": {\r\n       \"add\": \"AllSyncRoute|Pool|session\",\r\n       \"delete\": \"AllSyncRoute|Pool|session\",\r\n       \"get\": \"LatestRoute|Pool|session\",\r\n       \"set\": \"AllSyncRoute|Pool|session\"\r\n     }\r\n   }\r\n }`"}}
{"actor":{"display_login":"chilumbugeorge"}}