Comments (3)
@kshpytsya Well, for now I would like to avoid this to avoid over complexifying the codebase as it would break the existing templates (aka, a way to specify a particular instance of a given cluster).
Furthermore, having one single agent allow to be broken when the while cluster is down (and to have a particular behavior in that case), but what if 1 cluster is broken and not the other ones, mixing several clusters in a single template?
So, unless you come with a nice PR dealing with those issues, I would say it is probably not a priority on our side :-)
We are already doing in very large production what you describe, but we try - as much as possible - to have clear separation between datacenters for instance to reduce the risk of a big resilience issue (you might have a look to https://medium.com/criteo-labs/mixing-observability-with-service-discovery-2bb8909e8530 on how we are doing this).
As a side note, as you already noticed, it is still possible to mix several instances of consul-templaterb on a single machine (and ask your prometheus - if you want to do so - to use several files and use all those files to have a single instance fetching data from various clusters). It is even possible to have a single template source using different parameters (see https://github.com/criteo/consul-templaterb/#generate-multiple-templates )
from consul-templaterb.
Thank you for your elaborate answer. It looks I am just going to implement the functionality I need in my language of choice, namely Python using Consul's http API.
from consul-templaterb.
Hello @kshpytsya,
After some thinking, and a in depth look at the code, the patch to achieve what you wanted to do is not that difficult, so I implemented it in Release 1.26.0.
There is an advanced example on how doing it here:
https://github.com/criteo/consul-templaterb/blob/master/samples/all_services_multi_agents.txt.erb
I hope it will help you, but most methods do now support to add agent: http://address_of_consul_or_vaul:port
, so you can federate multiple clusters if you want.
See https://github.com/criteo/consul-templaterb/blob/master/TemplateAPI.md for more information.
from consul-templaterb.
Related Issues (20)
- Createing multiple files from one template
- Throttle EM requests to max/sec or max parallel? HOT 3
- Cannot see nodes/services/any in the UI HOT 4
- Improve Docker image builld HOT 2
- Getting timestamp in templates HOT 5
- Executing command on each change HOT 2
- Get checks by state HOT 6
- Trying to auth to vault with certs HOT 3
- Signal Handling from Orchestrator HOT 9
- Expose list of templates objects being generated HOT 3
- undefined method `[]' for #<Consul::Async::ConsulTemplateNodes:0x000055744a631640> HOT 10
- inactivity_timeout for the vault endpoint isn't configurable/too short HOT 2
- [FEATURE] Prometheus Endpoint for Template Rendering Times HOT 2
- `ready?` method for remote_resource.as_json is always true HOT 2
- Eventmachine Seg Fault When Using Vault HOT 5
- [Q] AIX 7.1 Support HOT 1
- Potential Memory Leak HOT 13
- consul_templaterb uses deprecated methods HOT 3
- Correct usage of --wait-signal option HOT 2
- Question: How can we dynamically generate different templates from a consul K/V JSON object ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consul-templaterb.