JIRA Data center cache data replication

SyedAhmedKabeer December 3, 2024

When the cache data replication occurs between nodes ?

example : we have 2 nodes (node 1 and node 2)

 

If we store any data in node 1 cache, will it automatically replicate to node 2 ?

 

Could you please explain?

4 answers

0 votes
SyedAhmedKabeer December 5, 2024

Hi @Tuncay Senturk 

 

Yes, I am using groovy script to invoke REST API Call in JIRA escalation service job.

and I have written the atlassian-cache logic in REST

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 5, 2024

Is this escalation service job your own script? If yes, are you using Atlassian cache in that code/script? If not they cannot replicate data between nodes.

0 votes
SyedAhmedKabeer December 4, 2024

Hi @Tuncay Senturk 

Thanks a lot for your comment.

Could you please check my usecase below?

 

We have 2 nodes (node A and node B)

1. JIRA escalation service job will be executed every night to cache the huge data.

2. Job will be executed on any node (node A or node B)

3. Assume, the job is executed on node A. Then all the data is cached properly (works fine)

if we open the page (customized page via ) on node A , loads fastly

sample code:

using replicateViaInvalidation

 

new CacheSettingsBuilder().replicateViaInvalidation().expireAfterAccess(6, TimeUnit.DAYS).build()

5. But the data sync is not working on node B

 

Note: No modifications

if we open the page on node B , not loads fastly

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 4, 2024

Hi @SyedAhmedKabeer 

Yes, it will automatically be replicated to node 2. Cache data replication between nodes is managed asynchronously. It means that, when data is stored in the cache on Node 1, the modification is replicated to Node 2 with a possible slight delay.

Here is the official documentation regarding the cache replication.

 

Suggest an answer

Log in or Sign up to answer