I would like to change the admin port 9100 to 19100 but I was not able to do it.
So I am running 2 couchbase servers community 7 using docker (clustering) and I mounted a volume to change the static_config by adding {indexer_admin_port, 9100}. but after killing/removing the container. The servers are still listening on port 9100 and in the indexer logs, I can see servers are still trying to connect on 9100…
So any idea on how to change the 9100 port to 19100?
So I am running 2 couchbase servers community 7 using docker
I’m not sure I understand your environment - are the servers each in their own docker container? If so, the ports inside the containers need to be mapped to external ports. The couchbase ports inside the containers don’t need to be changed - just mapped to (different) external ports.
I mean I am running 2 servers and each server has its own docker running a couchbase container.
So I need to expose the port 9100 to 9105 (with -p) on each server running the couchbase server cuz they are in a cluster
But I would like to change 9100 port to 19100 ( I know I can expose with -p 19100:9100) because I have already an app that uses the same port… But how can I tell to couchbase to use 19100 instead of 9100 for indexer_admin_port?
In your scenario with setting the hostnames of cb1 and cb2 in the yaml files - if you also set the port to something other than 9100 - such as 39100 - in the static config file, and then mapped with -p 39100:39100, then there would not be a comflict with the index exporter.
From your first post - you set it to the default (unless that was a typo).
Also - I’m not sure why leaving it to 9100 (inside the container) and them mapping it to something different outside the container ( -p 9100:39100 ) wouldn’t work. With the different hostnames, of course.
Oops that was a bad c/c, of course I changed it to 19100
I just tested it with {indexer_admin_port, 19100} but it doesn’t work at all in the container when I am running netstat -altpn, it still using the 9100 port