基础设施变更日志¶
变更日志¶
2022年03月13日¶
已完成的工作
重建了 Opensearch 集群
将存储空间从 50GB 调整为 1TB
将 CloudFormation 堆栈名称从 opensearchteststack 更改为 opensearchstack,
添加了安全规则,允许 logscraper01.openstack.org 将日志推送到 Logstash 服务,
将 Logstash 容器服务部署从 pre-prod-Cluster 重命名为 production-Cluster。
执行的命令
# Delete stacks if they exist
echo "Deleting Logstash stack..."
aws cloudformation delete-stack --stack-name logstashstack
echo "Waiting 60 minutes (press enter to continue)..."
read -t 3600 NullVariable
echo "Deleting Opensearch stack..."
aws cloudformation delete-stack --stack-name opensearchteststack
echo "Waiting 60 minutes (press enter to continue)..."
read -t 3600 NullVariable
# Create OpenSearch Cluster stack
echo ""
echo "Creating Opensearch stack..."
aws cloudformation create-stack --stack-name opensearchstack --template-body file://opensearch.yaml --parameters ParameterKey=SSHKey,ParameterValue=my-keypair --capabilities CAPABILITY_NAMED_IAM
echo "Waiting 60 minutes (press enter to continue)..."
read -t 3600 NullVariable
# Create Logstash Cluster stack
aws cloudformation create-stack --stack-name logstashstack --template-body file://logstash_cluster.yaml --capabilities CAPABILITY_NAMED_IAM
不同的 CloudFormatino 模板更改具有不同的“更新行为”。例如,更改 OpenSearch 集群的 EBS 配置需要“不中断” (来源)。其他更改(例如更改 CloudFormation 堆栈或负载均衡器的名称)需要完全替换。这些更新行为记录在 此处。如果您正在部署不需要资源替换的更改,则可以运行“update-stack”命令
aws cloudformation update-stack --stack-name opensearchstack --template-body file://opensearch.yaml --parameters ParameterKey=SSHKey,ParameterValue=my-keypair --capabilities CAPABILITY_NAMED_IAM
aws cloudformation update-stack --stack-name logstashstack --template-body file://logstash_cluster.yaml --capabilities CAPABILITY_NAMED_IAM
2021年12月15日¶
已完成的工作
创建了 Logstash 的 CloudFormation 堆栈,
创建了 Opensearch 集群,
创建了只读用户和只读角色,
在 logscraper01.openstack.org 上部署了 logscraper、loggearman-client 和 loggearman-worker 服务。
配置已描述 此处 <https://review.opendev.org/c/openstack/ci-log-processing/+/826405>__。