Automate/add dynamic value in OSGI

Avatar

Avatar

rajeshs28932860

Avatar

rajeshs28932860

rajeshs28932860

08-08-2019

Hi

I am trying to automate the OSGI config for sling distribution in author. the configuration is "Apache Sling Distribution Agent - Sync Agents Factory" which holds hardcoded values of publisher IP's. In a failover scenario, while bringing up new publisher this config has to be changed with new publisher ip added and exisiting ip removed.

is there a better way to dynamically update this OSGI value?

through CURL or to make a placeholder to read currently connected publisher instance, get the IP and update it here. Not wanting any java codes. But want to try it either in CURL or with any better approach.

Replies

Highlighted

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

08-08-2019

you can go with repository based configuration and create/update nodes with curl

Highlighted

Avatar

Avatar

rajeshs28932860

Avatar

rajeshs28932860

rajeshs28932860

09-08-2019

in this case for a default configuration like "Apache Sling Distribution Agent - Sync Agents Factory" Is it ok to put under repo based or run mode based configuration and keep checking or updating say every 30mins ? Will that configuration reflect immediately ?

Highlighted

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

09-08-2019

Hi,

I should work.

You can try for logger factory config.