The invention relates to the technical field of distributed artificial intelligence, and provides a node scheduling method and system based on a domain name, a terminal and a storage medium, and the method comprises the following steps: carrying out the initial configuration of nodes in a cluster, and determining a first slave node which comprises a candidate master node and a non-candidate master node; sending a state detection request to non-candidate master nodes to obtain state detection information of each non-candidate master node, and determining the non-candidate master nodes as target master nodes according to the state detection information; constructing according to the target main node to obtain a target access address set, and performing access address allocation on the service request through the target access address set; according to the scheme, when a single node is abnormal, the node can be quickly switched to other nodes, so that the overall high concurrency resistance and risk resistance of the scheme are improved, automatic management of cluster nodes is realized, manual intervention is reduced, the service availability and risk resistance are improved, and the method can be widely applied to the technical field of cloud computing and cloud storage.