Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replication agent state should be persisted during scale up publish action #33

Open
cliffano opened this issue Oct 27, 2017 · 3 comments

Comments

@cliffano
Copy link
Contributor

On scale up publish action, the replication agent is created for the new pair, but it starts with an empty queue. This means we're losing the state of the replication agent on the originating publish instance.

Replication agent state should be treated just like the publish and publish-dispatcher pair's state, along with the publish instance's repository state (via EBS volume).

@cliffano cliffano changed the title Replication agent state is lost during scale up publish action Replication agent state should be persisted during scale up publish action Dec 20, 2017
@cliffano
Copy link
Contributor Author

First step to this effort is to investigate an AEM endpoint (or perhaps an internal API) which either:

  • copies a replication agent
  • copies queue state from one replication agent to another
  • retrieves queue from one replication agent, sets it on another

Once the API is identified, it should then be added to swagger-aem and published via aem4j.

@cliffano cliffano assigned ahujaankur and unassigned priya-cr Jun 29, 2018
@cliffano cliffano assigned epari113 and unassigned ahujaankur Sep 27, 2018
@cliffano
Copy link
Contributor Author

After further discussions, this ticket will require a capability from AEM side which should solve the problem with copying the state from a source replication agent to a destination replication agent.
So this AEM feature will be looked at by @epari113 .

One that ticket is done, it will then have to be integrated into AEM OpenCloud first, and then the endpoints called by AEM Orchestrator.

@cliffano
Copy link
Contributor Author

Clearing assignees since we're potentially going to switch to a new approach to require healthy publish instance candidate to have an empty replication agent. That way, creating an empty replication agent for the new publish instance during scale up action is the right thing to do.

I will update this ticket with confirmation whether we're definitely going to switch to that approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants