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

Disable anti-entropy for an agent ? #4207

Closed
skurtzemann opened this issue Jun 7, 2018 · 4 comments
Closed

Disable anti-entropy for an agent ? #4207

skurtzemann opened this issue Jun 7, 2018 · 4 comments
Labels
thinking More time is needed to research by the Consul Contributors type/enhancement Proposed improvement or new feature

Comments

@skurtzemann
Copy link

skurtzemann commented Jun 7, 2018

Hi,

Is there a way to disable anti-entropy for a agent (like EnableTagOverride does for a service) in order to avoid the log message agent: Synced node info ?

My usage is the following :

  • I start an agent with some node-meta informations
  • An external process add a new node-meta (for example node-status:busy) in order to use it later to find easily the node using /v1/catalog/service/<service>?node-meta=<my-new-node-meta>
    • But when the agent sync his status the added node-meta is removed...

Thanks
Sébastien

@pearkes pearkes added type/enhancement Proposed improvement or new feature thinking More time is needed to research by the Consul Contributors labels Jul 26, 2018
@pearkes
Copy link
Contributor

pearkes commented Jul 26, 2018

So there is good background on EnableTagOverride here: #1102. I think I understand your use case, in that you want to update the catalog with new or additional node meta and not have the agent node meta be overridden by the sync.

As a workaround, node-meta is reloadable, meaning you can HUP the agents with updated node metadata and without much churn can get what I believe is your desired affect. This is I assume less convenient then using the catalog APIs directly, though.

I'll tag this as a feature request, but I'm not 100% sure that is doable. Hopefully that workaround is appropriate for your use-case for now.

@pearkes
Copy link
Contributor

pearkes commented Jul 27, 2018

Follow-up question...why does this have to be node metadata specifically, and can't be tied to a service via tags that allow this behavior (or service meta, which isn't able to be filtered in the same way, and doesn't have the override behavior)? Would appreciate understanding your use-case a bit more here and why you didn't take an approach focused on the services.

@pearkes
Copy link
Contributor

pearkes commented Oct 26, 2018

Given we haven't heard anything based on our suggestions/questions above I'm going to close this issue, but I encourage you to comment and we can re-open it if you want to pick this up again.

Alternatively, if things have changed dramatically, feel free to create a new issue or PR.

@BarthV
Copy link

BarthV commented Jan 23, 2019

Hi @pearkes !

This feature may be interesting for hashicorp/consul-k8s#40 .
Currently anti-entropy mecanism drops hostNetwork: true services pushed by consul-k8s in a Kubernetes cluster where worker nodes (kubelets) are also running a consul agent using the same name & the same IP.

It may be interesting to prevent consul agent that is running on the host server to remove what is synchronized from k8s ;) , and disabling anti-entropy may be one way to allow this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
thinking More time is needed to research by the Consul Contributors type/enhancement Proposed improvement or new feature
Projects
None yet
Development

No branches or pull requests

3 participants