Start the Master server

Copy the Druid distribution and your changes to the Master server.

If you have modified the configuration on your local computer, you can use it

rsync

To make a copy.

Rsync - az apache - druid - apache - druid - 0.21.1 / MASTER_SERVER: apache - druid - apache - druid - 0.21.1 /Copy the code

The Master does not start Zookeeper

From root of the distribution, run the following command to start the Master server:

bin/start-cluster-master-no-zk-server
Copy the code

The Master starts Zookeeper

If you plan to run ZK on the Master server at the same time, you first need to update the configuration in conf/zoo.cfg to determine how you want to run ZK. You can then choose to start the Master server at the same time as ZK.

Use the following command line to start:

bin/start-cluster-master-with-zk-server
Copy the code

In a production environment, we recommend that you deploy ZooKeeper on a separate cluster.

Start the Data Server

Copy the Druid distribution and your changes to the Data server.

From the root node of the distribution, run the following command to start the Data server:

bin/start-cluster-data-server
Copy the code

You can also add more nodes to your data server if needed.

For more complex application environments and requirements in a clustered environment, you can deploy Historicals and MiddleManagers services separately and scale them up separately. This separate deployment allows the broker Druid to automatically scale up the MiddleManager functionality already built and implemented.

Start the Query server

Copy the Druid distribution and your modified configuration to the Query server.

From the root node of the distribution, run the following command to start the Query server:

bin/start-cluster-query-server
Copy the code

Depending on the load of your query, you can add more nodes to your query server.

If you add more nodes to your query server, be sure to add more connection pools for your Historicals service as well.

For details, see the basic Cluster Tuning Guide.

www.ossez.com/t/druid/136…