SOLR Cloud(8)Deployment and Backup Cloud

309 篇文章 0 订阅
SOLR Cloud(8)Deployment and Backup Cloud

Since we already have EFS on the old cluster, we stop consumer and back up the data first
>http://alljobs1.us-east-1.elasticbeanstalk.com/solr/admin/collections?action=BACKUP&name=allJobsBackup18-01-17-16-39-00&collection=allJobs&location=/efs&async=123

Status check to make sure we already success on backing up
>http://alljobs1.us-east-1.elasticbeanstalk.com/solr/admin/collections?action=REQUESTSTATUS&requestid=123

You can also check the size in /efs directory
>du -h

Build the latest settings
>make ZK_ROOT=/solr/allJobsTest clean build

Push the latest Docker Image to Repository
>make push

Create a new cluster, and ask this cluster to join the same cloud as the previous cluster
>cd elasticbeanstalk/
>make ENVIRONMENT=allJobs2 ZK_ROOT=/solr/allJobs create

It the new machines did not join the cloud, we add replica
>curl "http://allJobsTest.us-east-1.elasticbeanstalk.com/solr/admin/collections?action=ADDREPLICA&collection=allJobs&shard=shard1"

After that the new cluster will copy the data from leader from the old cluster

Do Cname swap on AWS for the 2 clusters

After stable for 1 week, shutdown the old Cluster

References:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值