Skip to content

HA - Load balance ceph-mon with HAProxy - Cloudstack v4.17 #7336

@tuanhoangth1603

Description

@tuanhoangth1603

Hello,

When integrating with CEPH RBD, because multiple monitor hosts are supported in version 4.18 as the issue #6792.

So on Cloudstack 4.17, I configured a HAProxy node to load balance the CEPH monitor service endpoint, but Cloudstack cannot connect when adding a new primary storage. Cloudstack agent host raises an error in agent.log:

"Failed to create RBD storage pool: org.libvirt.LibvirtException: failed to connect to the RADOS monitor at MON_IP:6789: No such file or directory."

Here is my HaProxy configuration:

frontend ceph-mon
    bind *:6789
    mode tcp
    default_backend ceph-mon-backend

backend ceph-mon-backend
    mode tcp
    balance roundrobin
    server ceph-mon-1 MON_IP:6789 check

frontend ceph-mon33
    bind *:6789
    mode tcp
    default_backend ceph-mon-backend33
backend ceph-mon-backend33
    mode tcp
    balance roundrobin
    server ceph-mon-1 MON_IP:3300 check

Moreover, is there any way to load balance ceph-mon instead of using HAProxy?
Thanks for your help !!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions