ecchronos icon indicating copy to clipboard operation
ecchronos copied to clipboard

Create JMXAgentConfig to add Hosts in JMX Session Through ecc.yml

Open VictorCavichioli opened this issue 8 months ago • 2 comments

Story Description: Create new object in package com.ericsson.bss.cassandra.ecchronos.application.config.connection called DatacenterAwareConfig(If it not exists), it must represent the below configuration in ecc.yml:

jmx:
    datacenterAware:
      enabled: false
      datacenters:
      - name: datacenter1
        hosts:
        - host: 127.0.0.1
          port: 7100
        - host: 127.0.0.2
          port: 7200
        - host: 127.0.0.3
          port: 7300
        - host: 127.0.0.4
          port: 7400

connection.jmx.datacenterAware.enabled must be false by default to avoid breaking the sidecar functionality; these described hosts will be added in the JmxConnection on the application startup; in the a future task we'll create a new JmxConnectionProvider specific for the agent, which will be activated by the connection.jmx.datacenterAware.enabled=true and connection.jmx.provider=DatacenterJMXConnectionProvider.java, so to avoid future problems, expose the DatacenterAwareConfig in the JmxConnection.java class.

Acceptance Criteria:

  • [ ] DatacenterAwareConfig Designed as Described;
  • [ ] New TestConfig class created to specific Agent tests, also is proposed to change the old name of TestConfig to TestDefaultConfig or TestSidecarConfig;
  • [ ] Architecture documentation updated with new topics.

Definition of Done:

Code tested and approved by maintainers.

Notes:

Related to #652

VictorCavichioli avatar Jun 17 '24 15:06 VictorCavichioli