📄 newsite.so
字号:
m4_comment([$Id: newsite.so,v 1.7 2006/08/24 17:58:53 bostic Exp $])m4_ref_title(m4_db Replication, Connecting to a new site,, rep/comm, rep/elect)m4_p([dnlTo add a new site to the replication group all that is neededis for the client member to join. m4_db will perform aninternal initialization from the master to the client automaticallyand will run recovery on the client to bring it up to datewith the master.])m4_p([dnlFor applications that use the Base replication API, connecting to anew site in the replication group happens whenever them4_refT(rep_message) returns m4_ref(DB_REP_NEWSITE). The applicationshould assign the new site a local environment ID number, and all futuremessages from the site passed to m4_ref(rep_message) should include thatenvironment ID number. It is possible, of course, for the applicationto be aware of a new site before the return of m4_ref(rep_message) (forexample, applications using connection-oriented protocols are likely todetect new sites immediately, while applications using broadcastprotocols may not).])m4_p([dnlRegardless, in applications supporting the dynamic addition of databaseenvironments to replication groups, environments joining an existingreplication group may need to provide contact information. (Forexample, in an application using TCP/IP sockets, a DNS name or IPaddress might be a reasonable value to provide.) This can be done usingthe m4_arg(cdata) parameter to the m4_refT(rep_start). The informationreferenced by m4_arg(cdata) is wrapped in the initial contact messagesent by the new environment, and is provided to the existing members ofthe group using the m4_arg(rec) parameter returned by m4_ref(rep_message).If no additional information was provided for m4_db to forward to theexisting members of the group, the m4_arg(data) field of the m4_arg(rec)parameter passed to the m4_refT(rep_message) will be NULL afterm4_ref(rep_message) returns m4_ref(DB_REP_NEWSITE).])m4_p([dnlReplication Manager automatically distributes contact information usingthe mechanisms previously described.])m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -