Cloud Native应用交付

  • 首页
  • 关于本站
  • 个人介绍
  • Downloads
  • Repo
    • Github
    • Container
  • F5
    • F5 Python SDK
    • F5-container
    • F5-LBaaS
  • 社交
    • 联系我
    • 微信/微博
    • 公众号
    • 打赏赞助
行至水穷处 坐看云起时
Cloud Native Application Services: cnadn.net
  1. 首页
  2. F5技术
  3. 正文

3DNS同步机制

2008年06月13日 8455点热度 0人点赞 0条评论

从4.5开始 3DNS同步交由3dnsd进程来负责,同步组中的所有设备通过iquery交换摘要信息来通告时间戳,如果相关文件的时间戳有变化,则3dnsd发出通知,其他设备则到这台设备来上更新同步。

 

3dnsd负责一下文件的同步:

/config/3dns/etc/wideip.conf

/config/3dns/include/*

/etc/named.conf

/config/3dns/namedb/下的区域文件

/config/3dns/namesurfer/db/下的文件

3dns通过调用/usr/local/bin/syncer 来同步wideip.conf以及其他拓扑等配置文件。这里指的是wideip.conf的时间戳变化时。

3dns通过调用/usr/local/bin/rsync 来同步named.conf(假如在wideip.conf里配置容许进行named.conf的同步)和namesurfer的同步。这里指的是named.conf的时间戳变化时。

如果named.conf中的区域信息发生变化,3dns通过调用/usr/local/bin/sync_zones 来从同步组中的主成员那进行同步。

 

Having received these updates, the 3-DNS Controller runs the ndc reload process to restart BIND, and runs the ns_restart process to restart NameSurfer.

 

0---------------

Updated: 8/31/06 12:00 AM
Solution

 

 


 

Sync group operations

Sync group operations have the five following components:

  • Auto-configuration
  • Configuration synchronization
  • Metrics and object status
  • LDNS records
  • Failover pairs

Auto-configuration

If the autoconf process is enabled, 3-DNS polls the BIG-IP system for virtual server changes. However, to save processing bandwidth and reduce conflicts, only the principal 3-DNS Controller does this polling when a sync group is configured. Therefore, when autoconf discovers a virtual server change, the resulting change to the principal 3-DNS Controller's wideip.conf file causes the config sync function to start.

Configuration synchronization

3-DNS Controllers send out digests of their configuration files to all other configured 3-DNS Controllers using big3d over iQuery every 60 seconds. These digests include a timestamp. If a 3-DNS Controller's configuration has been changed, the later timestamp prompts 3-DNS to install the more recent configuration during the next update, causing all other 3-DNS Controllers in the sync group to request updates.

3dnsd requests a copy of the wideip.conf file by way of /usr/local/bin/syncer, in addition to other configuration files, such as topology records and production rules. These are obtained through Secure Copy (scp).

If the named.conf timestamp has changed and sync_named_conf variable is enabled, 3dnsd requests copies of the named.conf and NameSurfer configuration files, by way of the /usr/local/bin/rsync command. If zone information in the named.conf file has changed, 3-DNS requests the changes from the primary member of the synchronization group, by executing the /usr/local/bin/sync_zones command. Having received these updates, the 3-DNS Controller runs the ndc reload process to restart BIND, and runs the ns_restart process to restart NameSurfer.

Note: This functionality allows for zone files with multiple masters, which means that BIND's implementation of master/slave synchronization need not be used.

Each 3-DNS Controller now sends its own periodic digests updated with the new timestamp.

A 3-DNS configuration is considered to change, thereby causing a timestamp change, when any of the following actions occur:

  • Updates are performed in Configuration utility
  • 3dpipe enable/disable commands are run
  • Changes are made to the configuration through iControl
  • The 3ndc reload command is run
  • The config sync process is performed with a peer 3-DNS instance (BIG-IP pair with 3-DNS option)

Note: It is recommended that all changes are performed on the principal 3-DNS Controller.

Metrics and object status

In 3-DNS version 4.5, the big3d daemon also collects metrics and status information for configuration objects. The principal 3-DNS Controller selects one big3d agent per datacenter to collect metrics on paths, hops, or LDNS statistics. The selected big3d agent monitors all other 3-DNS Controllers, including the principal 3-DNS controller, in its sync group and broadcasts collected metrics to all the 3-DNS Controllers directly.

LDNS records

LDNS records contain both metric and persistence information. LDNS records are synchronized at the pool TTL interval, rather than the synchronization interval. 3-DNS Controllers exchange LDNS request sequence numbers and the timestamps of their ldns.gz files. This is accomplished at a time interval determined by pool TTL. If the LDNS request sequence numbers and timestamp information do not match, a copy of the ldns.gz file will be requested using iQuery.

Failover pairs

The 3-DNS instance on a standby BIG-IP system with the 3-DNS option remains operational. Even though a sync group may only show the principal 3-DNS as being active, the synchronization process applies between the primary and secondary units.

Additional troubleshooting suggestions

Following is a list of additional troubleshooting suggestions:

  • Since the 3-DNS synchronization process uses scp, which requires the use of port 22, verify that port 22 is open within firewalls between the 3-DNS systems.
  • Verify that the SSH keys are properly shared between all the 3-DNS systems in the sync group by selecting the Configure SSH communication with remote devices option from the 3dnsmaint menu on the command line.
  • If you edit your zone files manually, run the touch /etc/named.conf command when you are finished. This command modifies the timestamp in the named.conf file, which synchronizes the changes. If you use NameSurfer to edit zone files, this step is not required.
  • If it appears that zone files are not being synchronized properly, it could mean that the wideip.conf file contains an entry to disable named synchronization. To correct this issue, perform the following procedure:
    1. Edit the /config/3dns/etc/wideip.conf file using a text editor, and locate the following line:

      sync_named_conf no

    2. If this line exists, remove it and save the file.
       
    3. Apply the change by typing the following command:

      3ndc reload

 

相关文章

  • 密码保护:F5OS tenant部署后的容器情况、网络接口情况
  • 密码保护:F5OS tenant镜像实例化后信息
  • 密码保护:F5OS docker-compose.yml
  • 密码保护:F5OS 底层容器、网络及k8s状态
  • AI Gateway PII test page - internal only
本作品采用 知识共享署名-非商业性使用 4.0 国际许可协议 进行许可
标签: 3dns sync named.conf namusurfer wideip.conf
最后更新:2008年06月13日

纳米

linjing.io

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。

页面AI聊天助手
文章目录
  • Sync group operations
  • Additional troubleshooting suggestions

纳米

linjing.io

☁️迈向Cloud Native ADC ☁️

认证获得:
TOGAF: ID 152743
Kubernetes: CKA #664
Microsoft: MCSE MCDBA
Cisco: CCNP
Juniper: JNCIS
F5:
F5 Certified Solution Expert, Security
F5 Certified Technology Specialist, LTM/GTM/APM/ASM
F5 Certified BIG-IP Administrator
  • 点击查看本博技术要素列表
  • 归档
    分类
    • AI
    • Automation
    • Avi Networks
    • Cisco ACI
    • CISCO资源
    • F5 with ELK
    • F5-Tech tips
    • F5技术
    • Juniper
    • Linux
    • NGINX
    • SDN
    • ServiceMesh
    • WEB编程
    • WINDOWS相关
    • 业界文章
    • 交换机技术
    • 化云为雨/Openstack
    • 协议原理
    • 容器/k8s
    • 我的工作
    • 我的生活
    • 网站技术
    • 路由器技术
    • 项目案例
    标签聚合
    istio envoy docker flannel DNS F5 irule bigip api gtm nginx k8s network openstack neutron
    最近评论
    汤姆 发布于 10 个月前(09月10日) 嗨,楼主,里面的json怎么下载啊,怎么收费啊?
    汤姆 发布于 10 个月前(09月09日) 大佬,kib的页面可以分享下吗?谢谢
    zhangsha 发布于 1 年前(05月12日) 资料发给我下,谢谢纳米同志!!!!lyx895@qq.com
    李成才 发布于 1 年前(01月02日) 麻烦了,谢谢大佬
    纳米 发布于 1 年前(01月02日) 你好。是的,因为以前下载系统插件在一次升级后将所有的下载生成信息全弄丢了。所以不少文件无法下载。DN...
    浏览次数
    • Downloads - 185,033 views
    • 联系我 - 118,966 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 118,787 views
    • Github - 105,352 views
    • F5常见log日志解释 - 80,496 views
    • 从传统ADC迈向CLOUD NATIVE ADC - 下载 - 77,204 views
    • Sniffer Pro 4 70 530抓包软件 中文版+视频教程 - 74,320 views
    • 迄今为止最全最深入的BIGIP-DNS/GTM原理及培训资料 - 67,770 views
    • 关于本站 - 62,126 views
    • 这篇文档您是否感兴趣 - 56,034 views
    链接表
    • F5SE创新
    • Jimmy Song‘s Blog
    • SDNlab
    • Service Mesh社区
    • 三斗室
    • 个人profile
    • 云原生社区

    COPYRIGHT © 2023 Cloud Native 应用交付. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang

    京ICP备14048088号-1

    京公网安备 11010502041506号