Create and manage clusters

Prev Next

Available in VPC

Creating and managing clusters describes how to create, manage and delete a cluster and how to view cluster information on the list of created clusters.

Creating a cluster

To create a cluster:

  1. In the VPC environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Application Services > Ncloud Simple RabbitMQ.
  2. Click [Create Cluster].
  3. When the Create Cluster interface appears, perform the next steps:

1. Server settings

Set up the RabbitMQ server and click [Next].

  • MQ cluster name: Enter a name of 3-20 characters to identify and manage the cluster.
  • MQ engine version: Select the RabbitMQ version.
    • For RabbitMQ license, use an MPL license released by GoPivotal.
  • MQ server type: Select type of the server on which to install the RabbitMQ server.
  • Number of MQ nodes: Select the number of nodes in the RabbitMQ cluster.
    • You can select 2 or 3 nodes for a cluster.
  • VPC: Select a VPC on which to install RabbitMQ.
    • Click i-nsr_refresh to refresh the drop-down list of VPCs.
    • [Create VPC]: Click to create a new VPC.
  • Server Subnet: Select a server subnet on which to install RabbitMQ.
    • Click i-nsr_refresh to refresh the drop-down list of subnets.
    • [Create Subnet ]: Click to create a new subnet.
  • Load Balancer Subnet: Select a dedicated subnet for the load balancer.
    • Click i-nsr_refresh to refresh the drop-down list of Load Balancer subnets.
    • [Create Load Balancer Subnet]: Click to create a new Load Balancer.
  • Load Balancer Network: Select the load balancer network.
    • If you set it as Private IP, you can’t access any external networks.
  • ACG settings: This is information needed to access the RabbitMQ server and can be viewed after creation is complete.

2. Configure the MQ

To set up the main administrator account for connecting to RabbitMQ and the Management UI, Click [Next].

  • Default User ID: Enter a main administrator ID 4-16 characters long.
  • Default User Password: Enter a password 4-16 characters long for the main administrator ID.
  • MQ connection port: Port used to connect to RabbitMQ
  • Network Partition Response Policy: Policy for handling network partition events
    Note

    The network partition response policy is set as follows according to the number of nodes:

    Number of nodes Network partition response policy Description
    2 autoheal When a network partition occurs, a specific node is selected as the representative node and the other nodes are rerun.
    3 pause-minority When a network partition occurs, a small number of nodes are paused after other nodes are confirmed to have stopped.

3. Conduct final review

Check the settings and click [Create].

  • The created cluster is added to the list with the Being generated status and becomes available for use once the status changes to Operating.

Viewing a cluster list

To view the cluster list in detail:

Note
  • If there are more than 1 generated clusters, you can view the cluster list. If there is no operating cluster, no list appears on the Ncloud Simple RabbitMQ interface.
  • Information is available only of the clusters that have the status Operating.
  1. In the VPC environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Application Services > Ncloud Simple RabbitMQ.
  2. Check the summary information in the cluster list, or click a cluster to see the details.
    nsr-cluster-vpc_detail_ko
    • MQ Cluster Name (Instance ID): Data used for cluster management
    • MQ version: RabbitMQ version of the cluster
    • Number of MQ nodes: Number of nodes that make up the cluster
    • Status: Cluster status
      • Creating: Cluster being generated
      • Updating: Cluster settings being changed
      • Running: Cluster available for use
      • [View details]: Click to view, copy, or download status information.
    • Management UI: Click i-nsr_setting_2 to connect to the Management UI where you can manage RabbitMQ.
    • Creation date and time: Date and time when the cluster was created
    • Edit time: Date and time of the latest editing of the cluster information
    • Endpoints: Click i-nsr_setting_1 to view the address and port for connecting to the RabbitMQ cluster.
    • ACG: ACG for accessing the RabbitMQ server
      • Click i-nsr_setting_2.
    • Plugins: Click [Edit] to set up plugins.
    • Monitoring: Click i-nsr_setting_2 to move to the Grafana page where you can monitor the RabbitMQ node status.
    • Subnet name: Name of the subnet where RabbitMQ is installed
    • MQ server type: Server type where RabbitMQ is installed
    • VPC name: Name of the VPC where RabbitMQ is installed

Manage a cluster

You can view the status and logs of the nodes making up a cluster or reboot the nodes with problems. Also, you can set up plugins.

Viewing a node status

To view the status of a node:

  1. In the VPC environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Application Services > Ncloud Simple RabbitMQ.
  2. Click the cluster containing the node whose status you wish to view.
  3. In Number of MQ Nodes, click i-nsr_setting_1.
    • On the Nodes popup, you can view the node status.
      nsr-cluster-vpc_node status_ko

Viewing node log

To view the log of each node:

  1. In the VPC environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Application Services > Ncloud Simple RabbitMQ.
  2. Click the cluster containing the nodes whose logs you wish to view.
  3. In Number of MQ Nodes, click i-nsr_setting_1.
  4. When the Nodes popup appears, click [Log] for the node whose log you wish to view.
    • On the Log popup that appears, you can enter the number of lines to view the log.

Rebooting a node

To reboot a node with problems:

  1. In the VPC environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Application Services > Ncloud Simple RabbitMQ.
  2. Click the cluster containing the node to reboot.
  3. In Number of MQ Nodes, click i-nsr_setting_1.
  4. Click [Restart] for the node to reboot.
  5. When the Restart popup appears, click [OK].
    • While the node is rebooting, its status shows Working. When reboot is completed, the status changes to Operating.

Setting up plugins

You can activate plugins to use expanded features or deactivate them.
To set up a plugin:

  1. In the VPC environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Application Services > Ncloud Simple RabbitMQ.
  2. Click the cluster for which to set up the plugin.
  3. In Plugins, click [Edit].
  4. When the Plugins popup appears, toggle the button for the plugin you wish to activate or deactivate.
    • Click i-nsr_setting_2 to view the guide on plugins.
    Note

    Ncloud Simple RabbitMQ provides the following plugins.

    • rabbitmq_delayed_message_exchange: Used to implement a waiting time between when a message reaches the exchange and when it is delivered to the queue, with an offset (in milliseconds) configurable for each message publication.
    • rabbitmq_stomp: Additional features, such as controlling queue properties, are available when using STOMP.
    • rabbitmq_top: Used to add the UNIX top-tier information of Erlang VM to the Management UI.
    • rabbitmq_web_stomp: You can use STOMP in web applications through a WebSocket connection.
  5. On the Set up Plugins popup, click [OK].
    • While the changed plugin settings are applied, the status shows Working. Once the settings are applied, the status changes to Operating.

Deleting a cluster

To delete a cluster:

  1. In the VPC environment of the NAVER Cloud Platform console, navigate to i_menu > Services > Application Services > Ncloud Simple RabbitMQ.
  2. Click and select the cluster to delete and click [Delete].
  3. When the Delete RabbitMQ Cluster popup appears, enter the name of the cluster to delete.
  4. Click [Yes].
    • The deleted cluster disappears from the list.