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

Expose vmstorage to vmselect present in another cluster #2778

Closed
nbvishwa opened this issue Jun 23, 2022 · 3 comments
Closed

Expose vmstorage to vmselect present in another cluster #2778

nbvishwa opened this issue Jun 23, 2022 · 3 comments
Labels
enhancement New feature or request question The question issue

Comments

@nbvishwa
Copy link

I'm running a full scale vmselect, vmagent, vminsert, vmstorage in one of the cluster.
Now I have created another K8 cluster. So I want to re-deploy all the components in the new cluster.
But I want my vmselect in new selector to query from vmstorage of the old cluster.

Hence I was looking for exposing the vmstorage (stateful set) by each service for each pod & having ingress for the same.

My question is that is this possible to achieve?

@YuriKravetc YuriKravetc added the question The question issue label Jun 23, 2022
@f41gh7
Copy link
Contributor

f41gh7 commented Jun 27, 2022

Hello,
It seems, that there is no good way for kubernetes based deployments. You have to configure cross-cluster connectivity and make all vmstorage pods accessible for vmselect from new cluster.

But we're working on new feature - vmselect -> vmselect communication.

In this case, you can expose vmselect from old cluster as nodePort and add it to the vmselect at new cluster as storageNode.

It should be available at the next release.

@valyala valyala added the enhancement New feature or request label Jul 14, 2022
@valyala
Copy link
Collaborator

valyala commented Jul 14, 2022

FYI, the upcoming release will contain the ability to query vmselect nodes from another vmselect nodes - see these docs. In the mean time it is possible to build cluster components of VictoriaMetrics from the latest commit in cluster branch according to these docs and test this functionality.

@valyala
Copy link
Collaborator

valyala commented Jul 14, 2022

vmselect can query other vmselect nodes in multi-level setup starting from v1.79.0. Closing this feature request as done.

@valyala valyala closed this as completed Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question The question issue
Projects
None yet
Development

No branches or pull requests

4 participants