Comments (3)
- I can't find a way to generate the right YAML.
Weighted records are configured in octoDNS with dyanmic
, see https://github.com/octodns/octodns/blob/main/docs/dynamic_records.md. In this case that'd look something like:
test1:
dynamic:
pools:
main:
values:
- value: 192.169.0.1
weight: 10
- value: 192.169.0.2
weight: 15
rules:
- pool: main
type: A
values:
- 192.169.0.1
- 192.169.0.2
2. I used "octodns-dump" in order to dump the 2 records and shows how the Yaml was generetad but the command nevers dumped the records with "weighted".
octoDNS tries to unify behaviors across providers and thus doesn't support all possible setups so the manually created weighted set won't be imported if it doesn't match how an octoDNS created record would look.
In the case above the dynamic
section tells octoDNS what to create for providers that support the advanced dynamic features (like Route53.) The plain values
sections tells it what to do when pushed to providers that don't support the dynamic features.
from octodns-route53.
Usually, we used only records with weight (as I mentionned it in my first post) and that's all.
I need to check if the result is the same ;)
so long as there are no geo-rules the resulting effect should be roughly the same. You may also want to look at the status configuration options to avoid the need for health checks if you don't care about the health of the IPs.
The documentation says we could use "1 and 255" but if "you want to stop sending traffic to a resource, you can change the weight for that record to 0.".
I've always preferred to drain by disabling the health check for an IP/site rather than making DNS changes for every operational thing like that. So I would use a healthcheck for the site and then add support fo manually causing the healthcheck to fail, even when the site/ip is fine and will serve requests. This will allow a graceful drain form the application rather than with DNS change.
If you'd prefer to make DNS changes then the best bet is to remove the record rather than set it's weight to 0. Not all providers support a 0 weight record so octoDNS doesn't.
from octodns-route53.
Hello Ross,
Thanks a lot for your answer, it helped me!
The way OctoDNS configures R53 is quite different: there is a Routing Policy = Geolocation with Failover Primary / Secondary.
Usually, we used only records with weight (as I mentionned it in my first post) and that's all.
I need to check if the result is the same ;)
Last question: R53 handles weight from 0 but I can't set this value, I received:
- invalid weight "0" in pool "main" value 2
The documentation says we could use "1 and 255" but if "you want to stop sending traffic to a resource, you can change the weight for that record to 0.".
I don't know if this setting (to 0) is available with OctoDNS?
Thanks.
from octodns-route53.
Related Issues (20)
- Route53 pool with health check that doesn't match the cname HOT 1
- Public and Private DNS in Route53 HOT 7
- route53 with healthcheck record sync issue HOT 2
- OctoDNS bug when deleting domainkeys on Route53 HOT 1
- Route 53: Too many values to unpack MX HOT 6
- Single domain that is both public and private in Route53 HOT 4
- Route53: character limit of 32000 exceeded HOT 7
- Handle R53 'Alias' Records HOT 10
- Ability to set FailureThreshold on healthchecks HOT 2
- Updating to 0.0.5 breaks previously existing ALIAS records HOT 7
- Latency Routing Policy HOT 3
- TCP health check failure HOT 1
- Octodns does one change at a time HOT 13
- ALIAS records for Global Accelerator are not supported
- Need to add a space before ";" (semi-colon)? HOT 2
- Regression with `lenient` setting for multi-answer PTR record HOT 5
- ALIAS record dump issue HOT 2
- Is there a way to hide "root NS record supported"? HOT 7
- Feature Request: Add DS record support to octodns-route53 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 octodns-route53.