Solr 主从操作命令参考

来源:互联网 发布:怎样卸载苹果软件 编辑:程序博客网 时间:2024/05/21 19:52
可以通过以下 HTTP 命令来控制 
ReplicationHandler 的操作

http://master_host:port/solr/replication?command=enablereplication 使主服务器的复制可用      

http://master_host:port/solr/replication?command=disablereplication 使主服务器的复制不可用 

http://host:port/solr/replication?command=indexversion 获得主服务器或从服务器最新的索引版本 

http://slave_host:port/solr/replication?command=fetchindex 强制从服务器从主服务器拉取索引,该过程可以传递  下的参数,如主服务的url、压缩参数等



http://slave_host:port/solr/replication?command=abortfetch 让某从服务器不再从主服务器拉取索引 

http://slave_host:port/solr/replication?command=enablepoll 使某从服务器可以从主服务器拉取修改的索引 

http://slave_host:port/solr/replication?command=details 返回配置和当前状态 

http://host:port/solr/replication?command=filelist&indexversion= 返回指定主机的索引文件列表,可以指定版本号 

http://master_host:port/solr/replication?command=backup 如果有新的commit,将备份索引库,该命令在阶段备份索引时很有用

原创粉丝点击