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

[Feature] Opensearch Replication Plugin - Proxy mode connection setup #371

Closed
Firdaus1 opened this issue Apr 12, 2022 · 14 comments
Closed
Assignees
Labels
backlog enhancement New feature or request v2.7.0

Comments

@Firdaus1
Copy link

Hello Opensearch community,

Is there a way to setup opensearch replication across 2 different kubernetes clusters?

Currently, the /_cluster/settings?pretty API accepts the following body:
{
"persistent": {
"cluster": {
"remote": {
"opensearch-cluster-alias": {
"seeds": ["0.0.0.0:9300"]
}
}
}
}
}
where “seeds” is the elastic discovery service name or IP address.
What I am trying to accomplish is use kubernetes ingress to route traffic to port 9300.

Any suggestions ?
Is replication plugin meant to be implemented across different kubernetes clusters ?

Thank you in advance,
Firdaus

@Firdaus1 Firdaus1 added enhancement New feature or request untriaged labels Apr 12, 2022
@anasalkouz anasalkouz transferred this issue from opensearch-project/OpenSearch Apr 19, 2022
@soosinha
Copy link
Member

I have not tried setting up replication using kubernetes clusters.

Other than the remote cluster setup you mentioned, you can also setup a connection using a proxy address which forwards to the OpenSearch cluster LB.
The remote connection can be created using the proxy mode like below.

_cluster/settings?pretty -d '
{
  "persistent": {
    "cluster": {
      "remote": {
        "opensearch-cluster-alias": {
          "mode": "proxy",
          "proxy_address": "<proxy IP:proxy port>"
        }
      }
    }
  }
}'

Let us know if this works for you.

@peace-tree
Copy link

@soosinha I could not find remote connection creation using proxy mode in the documentation.
Is it officially supported? If yes, then are there plans to include it in documentation?

@maksym-sereda
Copy link

@Firdaus1 , @namrataa-p did you configure it? Please let me know how? Because the solution mentioned by @soosinha doesn't work for me

@draemi
Copy link

draemi commented Oct 3, 2022

We do have also this use-case when we need to perform CCR between 2 k8s clusters.
When using proxy mode, CCR is not working even if remote connection is established.

Is there any limitation regarding using proxy mode? Couldn't find anything in the documentation.
Also is there any plan supporting this model?

@saikaranam-amazon
Copy link
Member

Currently, We don't have support for replication with proxy mode for remote cluster connection.
I will let this issue remain open to track this feature request.

@saikaranam-amazon saikaranam-amazon changed the title Opensearch Replication Plugin [Feature] Opensearch Replication Plugin - Proxy mode connection setup Oct 31, 2022
@mrudrego
Copy link

Hi,
We are facing the same issue in deploying CCR across Kubernetes cluster and got to know from the ticket that CCR is not currently supported across Kubernetes Clusters. Please let us know when this enhancement is planned.

Thanks,

@saikaranam-amazon
Copy link
Member

We are tracking v2.5.0 for this issue.

@saikaranam-amazon saikaranam-amazon added the v2.5.0 'Issues and PRs related to version v2.5.0' label Nov 25, 2022
@ankitkala ankitkala added v2.7.0 and removed v2.5.0 'Issues and PRs related to version v2.5.0' labels Jan 9, 2023
@Gitwiththewind
Copy link

I noticed that this feature is not marked as part of the 2.7.0 release on the opensearch roadmap. Is this because this CCR capability is being classified as a bug and not a feature?

@mrudrego
Copy link

Hi,
Can you please confirm if this enhancement is on track for v2.7.0 release which is planned for April ?

Thanks,

@saikaranam-amazon
Copy link
Member

@mrudrego we are finalizing the tasks under cross cluster replication for v2.7.0.
Yes, Currently, we are tracking for v2.7.0

@mrudrego
Copy link

@saikaranam-amazon, good to hear that and thanks for the response .

@mrudrego
Copy link

Hi,
Is CCR supported across 2 kubernetes cluster is 2.7 version of OpenSearch ?
If so, can you please share the configuration could not find anything specific to proxy based which i believe is required for configuring CCR across K8s cluster.

Thanks,

@ishankka
Copy link
Contributor

Hi @mrudrego,
I havent tried CCR between 2 k8s, but we do support 2.7 with proxy mode connection.

Can you try this configuration
The remote connection can be created using the proxy mode like below.

_cluster/settings?pretty -d '
{
  "persistent": {
    "cluster": {
      "remote": {
        "opensearch-cluster-alias": {
          "mode": "proxy",
          "proxy_address": "<proxy IP:proxy port>"
        }
      }
    }
  }
}'

@monusingh-1
Copy link
Collaborator

Addressed here #786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request v2.7.0
Projects
None yet
Development

No branches or pull requests