Hello I am using OpenSearch 1.2.4.
I am trying to build bidirectional replication. I have 2 clusters, first on-prem, and second as EC2 in AWS. I want to auto-follow every index without a system index and long-term index reindexed index, which I think can make by:
POST /_plugins/_replication/_autofollow?pretty
{
“leader_alias” : “connection-to-on-prem”,
“name”: “on-prem-to-aws”,
“pattern”: “index*”,
“use_roles”:{
“leader_cluster_role”: “all_access”,
“follower_cluster_role”: “all_access”
}}
1) My first question is if I can make pattern like * and exclude some index.
Bcs I want to replicate all new indexes that I am making by rollover, but not to replicate the one that is long-term and where I reindex all older indexes.
2) Point is that I have many errors in my log.
Everyone looks like this:
[WARN ][o.o.r.t.s.ShardReplicationTask] [aplogdb-node1] [stp-int-000003][0] Encountered a failure while executing in org.opensearch.replication.action.changes.GetChangesRequest@3dbe2036. Retrying in 10 seconds.
Jun 29 14:19:01 aplogdb01-aws-spc aplogdb-node1-elastic: org.opensearch.OpenSearchTimeoutException: 1m
Jun 29 14:19:01 aplogdb01-aws-spc aplogdb-node1-elastic: #011at org.opensearch.replication.util.CoroutinesKt$waitForGlobalCheckpoint$2$listener$1.accept(Coroutines.kt:113) ~[?:?]
Jun 29 14:19:01 aplogdb01-aws-spc aplogdb-node1-elastic: #011at org.opensearch.index.shard.GlobalCheckpointListeners.lambda$notifyListener$3(GlobalCheckpointListeners.java:240) ~[opensearch-1.2.4.jar:1.2.4]
Jun 29 14:19:01 aplogdb01-aws-spc aplogdb-node1-elastic: #011at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95) ~[?:?]
Jun 29 14:19:01 aplogdb01-aws-spc aplogdb-node1-elastic: #011at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) ~[?:?]
Jun 29 14:19:01 aplogdb01-aws-spc aplogdb-node1-elastic: #011at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738) ~[?:?]
Jun 29 14:19:01 aplogdb01-aws-spc aplogdb-node1-elastic: #011at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) ~[?:?]
Jun 29 14:19:01 aplogdb01-aws-spc aplogdb-node1-elastic: #011at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) ~[?:?]
3)
When I create auto-follow and run I cant stop that real-time or pause.
I tried to stop and that made affect but after last index got rollovered
And when I try to stop, looks like I didn’t find API to do that.
stop replication API operation.
I started auto-follow by:
POST /_plugins/_replication/_autofollow?pretty
{
“leader_alias” : “connection-to-on-prem”,
“name”: “on-prem-to-aws”,
“pattern”: “stp-a*”,
“use_roles”:{
“leader_cluster_role”: “all_access”,
“follower_cluster_role”: “all_access”
}}
and want to pause it by:
POST /_plugins/_replication/_autofollow/_pause
{}
or
POST /_plugins/_replication/stp-acc-‘actual-index’/_stop
{}
but I get error that replica is running and cant be stopped
Thank you very much.