I have installed 2 instances of cache channel micro servive for Staging and Live environment. I have left with default port. How can I find, which port my second instance is using? Also how can I register it as a capability with discovery service?
2 Answers
You can't have two instances of the service listen on the same port. One will fail.
One option is to configure the services to run on separate ports like this: Is it possible to specify your own port number for the cache microservice
You could also consider running the instances on separate servers.
-
Thanks for your answer. As suggested in your question, I am able to setup the port. I am wondering why server.port parameter suggested in SDL docs is not working. Is there anything missing? Commented Aug 29, 2017 at 18:09
I have looked at the readme.md file available with the Cache channel service installation for the default port
in both cases (windows and linux) the service will be reachable on port:`1099`.
-
As 1099 is already in use by staging cache channel service, I am wondering how can live also use that? Commented Aug 29, 2017 at 15:04