---
title: Heat运行服务提示Unable to connect to AMQP server的解决方法
description: "Heat组件运行时无法连接到rabbit server，并且干扰到其他组件与rabbit server的对接，提示“Unable to connect to AMQP server”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengcpfs/troubleshooting/trouble/kunpengopenstackstein_09_0004_0.html
sourcePath: /source/zh/kunpengcpfs/troubleshooting/trouble/kunpengopenstackstein_09_0004_0.html
indexId: 1837ab3c6559ba035f40b4205dc20661f7cecbb57ed019672b51ad4b9f53b71a83
---
# Heat运行服务提示Unable to connect to AMQP server的解决方法

#### 问题现象描述

Heat组件运行时无法连接到rabbit server，并且干扰到其他组件与rabbit server的对接，提示“Unable to connect to AMQP server”。


#### 关键过程、根本原因分析

在默认配置中，Heat组件过多的进程超过了AMQP server处理的范畴。


#### 结论、解决方案及效果

修改RabbitMQ server以及Heat的配置。

1. 打开文件“/etc/rabbitmq/rabbitmq.config”。

```
vim /etc/rabbitmq/rabbitmq.config
```


  并修改delegate_count配置为如下信息：

```
{delegate_count, 96}
```


2. 打开文件“/etc/heat/heat.conf”。

```
vim /etc/heat/heat.conf
```


  并新增以下配置：

```
[heat_api]
workers = 4
[DEFAULT]
num_engine_workers = 4
```


3. 重启Heat服务。

```
systemctl restart openstack-heat-api.service openstack-heat-api-cfn.service openstack-heat-engine.service
```
