Solace 调整最大连接数

该博客介绍了如何通过命令行界面调整Solace消息平台的最大连接数。首先,通过`servicemsg-backboneshutdown`和`hardwaremessage-spoolshutdown`命令关闭服务,然后使用`systemscalingmax-connections`命令设置新的最大连接数(例如1000),接着确认并重启系统。在系统重启后,使用`showsystem`命令验证参数已更新。整个过程适用于Docker容器中的Solace部署。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Solace 调整最大连接数

命令

enable
configure
service msg-backbone shutdown
hardware message-spool shutdown
system scaling max-connections 1000
# 等待solace重启,重新进入
show system
no service msg-backbone shutdown
no hardware message-spool shutdown

详细

$ docker exec -it solace_name cli -A 
    solace-cli> enable
    solace-cli# configure
    solace-cli(configure)# service msg-backbone shutdown
    All clients will be disconnected.
    Do you want to continue (y/n)? y
    solace-cli(configure)# hardware message-spool shutdown
    All message spooling will be stopped.
    Do you want to continue (y/n)? y

    Increase the scaling parameter value.

    For example, Step 1 shows that the initial value of the client connection limit is 100. To increase the connection limit to 1,000, use the max-connections command.

    solace-cli(configure)# system
    solace-cli(configure/system)# scaling
    solace-cli(configure/system/scaling)# max-connections 1000
    This command causes a reload of the system.
    Do you want to continue (y/n)? y
         
    Moving ADB messages to disk  : 100%
    Backing up ADB config to disk: 100%
        
    Performing database consolidation

    :  Changing the value of system scaling parameters causes the system to reload, stopping the container. In machine images, the container automatically restarts. For container images, you may need to manually restart the container, depending on the restart policy of your container runtime.
    Restart the container if required, then enter the CLI again and confirm the new parameter has been applied. In this example, the maximum number of client connections has been increased to 1,000.

    solace-cli> show system

    System Uptime: 0d 0h 0m 11s
    Last Restart Reason: User request

    Scaling:
       Max Connections: 1000
       Max Queue Messages: 100M

    Topic Routing:
       Subscription Exceptions: Enabled
       Subscription Exceptions Defer: Enabled

    Optionally, repeat the preceding two steps to increase another scaling parameter.
    To resume messaging you must restart the msg-backbone service and message-spool.

    solace-cli> enable
    solace-cli# config
    solace-cli(configure)# no hardware message-spool shutdown
    solace-cli(configure)#
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

十三y

你的鼓励就是我创作最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值