简体   繁体   English

Marklogic 使用云形成模板在 EC2 中按比例缩小

[英]Marklogic Scaling down in EC2 using cloud formation Template

Currently i am using the Marklogic cloud formation template ( https://marklogic-db-template-releases.s3-us-west-2.amazonaws.com/10.0-latest/mlcluster-vpc.template ) given by Marklogic itself and launched a cluster (3 nodes in 1 zone) and later I was trying to get familiar with scaling up and scaling down.目前我正在使用 Marklogic 本身提供并启动的 Marklogic 云形成模板 ( https://marklogic-db-template-releases.s3-us-west-2.amazonaws.com/10.0-latest/mlcluster-vpc.template )一个集群(1 个区域中的 3 个节点),后来我试图熟悉扩大和缩小规模。 For Scaling up I updated my cloud formation stack to 4 which brought up another host and created 2 new databases after scaling up.为了扩大规模,我将我的云形成堆栈更新为 4,这在扩大规模后启动了另一台主机并创建了 2 个新数据库。 I want to scale down the Marklogic to 3 nodes again from cloud formation but i am seeing an error when I try to scale it down.我想从云形成中再次将 Marklogic 缩小到 3 个节点,但是当我尝试缩小它时我看到了一个错误。

Went through the https://docs.marklogic.com/8.0/guide/ec2/managing#id_34435 where it says to remove the forest which exist in the host before scaling it down.浏览https://docs.marklogic.com/8.0/guide/ec2/managing#id_34435 ,它说在缩小主机之前删除主机中存在的林。 Any suggestion how to scale down without loosing on data using cloud formation would be great.任何关于如何在不使用云形成丢失数据的情况下缩小规模的建议都会很棒。 Thanks in advance.提前致谢。

Update:更新:

Error Received: Received response status [FAILED] from custom resource. Message returned: Scaling down the number of nodes per zone by updating the stack is not recommended. Please manually remove unused.network interface收到错误:收到[FAILED] from custom resource. Message returned: Scaling down the number of nodes per zone by updating the stack is not recommended. Please manually remove unused.network interface [FAILED] from custom resource. Message returned: Scaling down the number of nodes per zone by updating the stack is not recommended. Please manually remove unused.network interface

I think the error message quite clearly states that what you're trying to do is not recommended and since the functionality is calling a custom resource, presumably, the functionality just isn't implemented.我认为错误消息非常清楚地表明不建议您尝试执行的操作,并且由于该功能正在调用自定义资源,因此可能只是未实现该功能。

SO you've got the option to create your own custom resource and use that in order to perform the downscaling or to follow the recommendation and downscale manually.因此,您可以选择创建自己的自定义资源并使用它来执行缩减或遵循建议并手动缩减。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从云形成中创建给定 EC2 的 AMI - Create AMI of a given EC2 from cloud formation 如何仅在删除该 Cloud Formation 堆栈之前使用 Cloud Formation 创建 EC2 AMI? - How to create EC2 AMI with Cloud Formation only before deleting that Cloud Formation stack? 使用 aws sdk 命令行在自动缩放中形成云 - Cloud Formation in auto scaling using aws sdk command line 是否可以使用云形成在未过时的 EC2 映像上部署 Cloud9 ide? - Is it possible to use cloud formation to deploy a Cloud9 ide on an EC2 image that is not obsolete? 根据请求计数使用云形成自动缩放 - Auto scaling using cloud formation according to Request count 获取云形成错误属性 InstanceId 的值必须是字符串类型,同时将 eip 附加到 ec2 - Getting cloud formation error Value of property InstanceId must be of type String while attaching eip with ec2 使用云形成模板将新环境变量添加到 Lambda - Add new environment variables to Lambda using Cloud Formation Template 由 auto-scaling 组中的启动模板创建的 ec2 实例未在目标组中注册 - ec2 instances created by a launch template in auto-scaling group are not being registered with the target group 在 AWS Cloud Formation 模板中创建嵌套 If else - Create Nested If else in AWS Cloud Formation Template 使用 cloud-init 和实例标签在 EC2 上设置主机名? - Set hostname on EC2 using cloud-init and instance tags?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM