📄 init.so
字号:
m4_comment([$Id: init.so,v 1.6 2005/10/19 19:11:20 bostic Exp $])m4_ref_title(m4_db Replication, Initializing a new site,, rep/mastersync, rep/bulk)m4_p([dnlBy default, adding a new site to a replication group only requires theclient to join. m4_db will automatically perform internalinitialization from the master to the client, bringing the client intosync with the master.])m4_p([dnlHowever, depending on the network and infrastructure, it can beadvantageous in a few instances to use a "hot backup" to initialize aclient into a replication group. Clients not wanting to automaticallyperform internal initialization should call the m4_refT(rep_set_config)with the m4_ref(DB_REP_CONF_NOAUTOINIT) flag. This configuration flagcauses m4_db to return m4_ref(DB_REP_JOIN_FAILURE) to the application'sm4_refT(rep_message) instead of performing internal initialization.])m4_p([dnlTo use a hot backup to initialize a client into a replication group,perform the following steps:])m4_nlistbeginm4_nlist([dnlDo an archival backup of the master's environment, as described inm4_link(M4RELDIR/ref/transapp/archival, [Database and log filearchival]). The backup can either be a conventional backup or a hotbackup.])m4_nlist([dnlCopy the archival backup into a clean environment directory on theclient.])m4_nlist([dnlRun catastrophic recovery on the client's new environment, as describedin m4_link(M4RELDIR/ref/transapp/recovery, [Recovery procedures]).])m4_nlist([dnlReconfigure and reopen the environment as a client member of thereplication group.])m4_nlistendm4_p([dnlIf copying the backup to the client takes a long time relative to thefrequency with which log files are reclaimed using them4_ref(db_archive) utility or the m4_refT(log_archive), it may benecessary to suppress log reclamation until the newly restarted clienthas "caught up" and applied all log records generated during itsdowntime.])m4_p([dnlAs with any m4_db application, the database environment must be in aconsistent state at application startup. This is most easily assuredby running recovery at startup time in one thread or process; it isharmless to do this on both clients and masters even when not strictlynecessary.])m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -