英文:
How to make the DolphinDB cluster nodes start automatically on server boot or restart?
问题
我在两台服务器上部署了一个DolphinDB集群。一台服务器上部署了1个控制器、1个代理和2个数据节点,另一台服务器上部署了1个代理和2个数据节点。我的操作系统是CentOS 8。
我想在服务器启动或重新启动时让集群中的节点自动启动。我该如何做呢?
英文:
I have deployed a DolphinDB cluster on two servers. The one server is deployed with 1 controller, 1 agent and 2 data nodes, and the other is deployed with 1 agent and 2 data nodes. My operating system is CentOS 8.
I want to make the nodes in the cluster start automatically when the servers are booted up or restarted. How can I do this?
答案1
得分: 1
控制器和代理可以通过使用systemd命令自动启动。
有关详细说明,请参阅https://github.com/dolphindb/Tutorials_EN/blob/master/multi_machine_cluster_deployment.md#q2-use-the-systemd-command-to-start-dolphindb-cluster
对于数据节点和计算节点,请在controller.cfg中配置参数datanodeRestartInterval,或通过Web界面进行配置,如下所示:
英文:
The controller and agents can be set to start automatically using the systemd command.
For detailed instructions, refer to https://github.com/dolphindb/Tutorials_EN/blob/master/multi_machine_cluster_deployment.md#q2-use-the-systemd-command-to-start-dolphindb-cluster
For the data nodes and compute nodes, configure the parameter datanodeRestartInterval in controller.cfg or via the Web interface shown as follows:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论