Method and device for dynamically creating domain in SolrCloud cluster

The invention discloses a method and a device for dynamically creating a domain in a SolrCloud cluster. The method comprises the steps of acquiring all available SolrServer node identifiers from a zookeeper cluster to form a first list; selecting one node identifier from the first list; sending a fi...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG ZHAO, WANG RENCHONG, YANG QUANWEN, YUE SONGSONG, LI XUJIA
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a method and a device for dynamically creating a domain in a SolrCloud cluster. The method comprises the steps of acquiring all available SolrServer node identifiers from a zookeeper cluster to form a first list; selecting one node identifier from the first list; sending a first request to a first available node corresponding to the currently selected node identifier, for implementing the request of calling a first REST interface provided by the first available node to create a new domain; acquiring a creating state returned by the first available node; when the creating state indicates that the domain is successfully created, displaying a creating success message; and when the creating state indicates that the domain is not successfully created, and that the domain is not successfully created is caused by the first available node, selecting the unselected node identifier from the first lift, and continuing to execute the step of sending the first request to the first available node co