6

Is it possible to use the same database for 3 different Discovery Services on the same server?

I Hope it registers all capabilities configured in 3 different Discovery Services, when I run discovery-registrations jar.

6

It's not I'm afraid.

If your Discovery Services (and associated Microservices) were on three separate servers, then you could use the 'localhost' workaround described by Quirijn here: USING SDL’S MICROSERVICES IN A WEB FARM

However, the URL of the Content Service is stored in the Discovery Database just once (i.e. the last one that was registered), so you won't be able to differentiate them.

|improve this answer|||||
  • I'm using different ports for each discovery service e.g. http://<servername>:8088 – afreen Mar 14 '17 at 17:23
  • Although your Discovery Services (and presumably Content Services) will all use separate ports, the Discovery Database will only store the URL of one of your Content Services (i.e. the last one that was registered). This will result in all three of your Discovery Services pointing at the one Content Service when they start up. Unfortunately, I think you're going to need three Discovery Databases in this scenario. – Jonathan Williams Mar 14 '17 at 17:27
  • Thanks Jonathan. Actually I don't want to increase number of databases so want to register all discovery services capabilities into single database. & later use this discovery for deployer capability – afreen Mar 14 '17 at 17:34
  • Yes...Discovery DB can contain only one entry for each Capability at any point of time. If registered again pointing to same DB, it will be overwritten. – vinayknl Mar 14 '17 at 20:43
  • As i have multiple deployers, so i have to create multiple discovery services. Can you guide me to the script to create new discovery database? Is database structure similar to broker DB ? – afreen Mar 15 '17 at 9:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.