question

Srikar M. avatar image
Srikar M. asked ·

Managing Collector Instances

Hi,

I had questions with regards to managing multiple instances of collector services on a linux host.

Say we have the "main" collector running (name = mycollector1) and we want to create a 2nd instance on the same box, the command is:

./dtcollector -instance mycollector2 -listen :UNIQUE_PORT -server mydynatraceserver

Q1) If for some reason we want to delete / uninstall the second instance (mycollector2), what are the necessary steps?

Q2) Now given that we have 2 collector services running on the same host (mycollector1 and mycollector2), what command do we use to start the service for 1 of the 2 collectors. F.E if we want to start mycollector2 service?

Thank you for your time.

Srikar

10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Srikar M. avatar image
Srikar M. answered ·

Thanks Roman.

For Q2, I was wondering if we had to manually start the process then how would we do that (I stopped the collector service from client instead of a restart).

If we had just the 1 service then ./dtcollector & would do it but how to specify start mycollector2 (2nd instance) service?

Thanks.

1 comment Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Hi Srikar,

Just take a look at the init.d scripts we deliver with the product. They should have a nice example on how the instance name is used for starting, I suspect it is just the same command you have above: dtcollector -instance <name>...

Best, Roman

0 Likes 0 · ·
Roman S. avatar image
Roman S. answered ·

Q1 - to "remove" the collector just remove the folders created under instances, where the log files and cache are stored.
Q2 - that depends, are you using the init.d script that comes with the product for starting/stopping on Linux? The documentation contains an example on what needs to be changed (basically create a 2nd init.d script and adjust the instance variable in the script).

Best, Roman

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.