question

Josep C. avatar image
Josep C. asked ·

Install Extra Collector Instances

Hi all,

I we've multiple collectors in the same machine running and working well but we've installed them running several times the collector installer and configuring them independent (one installation and configuration for each collector in the machine).

In the documentation I see the recommended procedure to install extra collector instances in the same machine is:

  • Install the collector software one time
  • For each instance run the command "./dtcollector -instance collector02..."
  • Configure each instance

So, my question is: was this procedure better than install several times the software? And, in case then response is yes, why?

Thanks in advance.

Josep Maria

configurationappmon 77.1collector
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.

Babar Q. avatar image
Babar Q. answered ·

Hello @Josep Maria C.

I would say this is not the recommended but the actual way to install/add the additional instances and secondly, an easy way to install / configure e.g. in the same code you can mention to connect to the AppMon Server instead of manually change in the collector.config file and then restart.

./dtcollector -instance collector02 -listen :9997 -listenHttp :8044

Regards,

Babar

6 comments 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 Babar,

thanks for your response, so installing several times the collector software is a bad practice? It works fine for us with our installation...

Regards,

0 Likes 0 · ·

Hello @Josep Maria C.

In the below link there is a use case to having multiple installations of the collector on the same server which is new information for me honestly but if this is not the case then you should go with the -instance feature of the collector.

https://answers.dynatrace.com/spaces/148/uem-open-q-a_2/questions/97422/multiple-collector-versions-on-same-server.html

Regards,

Babar

0 Likes 0 · ·

Hi Babar,

ok, but how can I configure different configuration options for the different instances(for example different memory options,-Xmx2G, -Xms2G)?

I see how to configure different listen ports and server connections because there's environment variables in dynaTraceCollector script to do that but these memory parameters are in dtcollector.ini and If we create several instances I only see one dtcollector.ini file...

Regards, Josep Maria

0 Likes 0 · ·

Hello @Josep Maria C.

Basically whatever the value we set in the dtcollector.ini, the same value is apply on all the additional instances.

Regards,

Babar

0 Likes 0 · ·

Hi Babar,

So, if I need to configure different values for the different instances?

Regards,

0 Likes 0 · ·

Hello @Josep Maria C.

Good Question :). I guess in this situation we will have to install the collectors number of time as mentioned in one of the shared post.

Regards,

Babar

0 Likes 0 · ·
Weng T. avatar image
Weng T. answered ·

Hi Josep,

Were you able to configure different heap memory for each instances? I am currently facing the same issue as well. I have tried copying the collector.ini file into each instances' folder or the conf folder for each instances, modified the heap memory setting, restart collector instances. But it still reads the .ini file from the main instance.

Regards,

Brian

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.

Hello @Weng Jie T.

I guess till now the same formula applies e.g. whether you will have to install the number of collectors to control the heap size individually or will have to go with the additional instances to inherit the heap size.

Regards,

Babar

0 Likes 0 · ·