Multi-cluster and multi-cluster index management method and system, electronic equipment and medium
By managing multiple clusters and multi-cluster indexes, the problem of cross-version management is solved, unified management of clusters and indexes is achieved, the upgrade process of large clusters is simplified, and data integrity and rapid maintenance are guaranteed.
Patent Information
- Application Number
- CN202510672822.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2025-10-17
AI Technical Summary
Existing technologies cannot simultaneously achieve cross-version multi-cluster management and multi-index management, resulting in inconsistent data storage and retrieval, affecting data warehousing, and the steps for upgrading large cluster versions are cumbersome and complicated.
Provides a multi-cluster and multi-cluster index management method that determines the type of object to be managed, receives configuration information, verifies and performs management type operations, including creating, updating, closing or deleting indexes, and managing cluster node status and versions.
It implements cross-version multi-cluster management and multi-index management, simplifies the steps for upgrading large cluster versions, and ensures the normal upgrade of cluster nodes and data integrity.
Smart Images

Figure CN120804392A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of servers and relates to a multi-cluster and multi-cluster index management method and system, an electronic device and a medium. BACKGROUND
[0002] In a big data business, a business scenario is stored and retrieved based on an index mode of a search server (elasticsearch), different elasticsearch version functions are applied according to the business scenario, and various clusters of different sizes are deployed.
[0003] Generally, an index of data storage is created according to the type of data when writing, and original data pollution on the business side will cause inconsistency with the type of the index side, affecting data warehousing. Moreover, as the business side develops, it is necessary to continuously increase or update indexes and index fields. In addition, when the business side needs to be changed, the version of the cluster cannot meet the business needs. At this time, the cluster version needs to be upgraded, but in a large cluster, the version upgrade steps are tedious and all nodes of the cluster need to be normally upgraded to ensure the integrity of the original data and the quick start-stop maintenance of the large cluster. Currently, the prior art cannot simultaneously implement multi-cluster management and multi-index management across versions. SUMMARY
[0004] The application provides a multi-cluster and multi-cluster index management method and system, an electronic device and a medium, which are used to simultaneously implement multi-cluster management and multi-index management across versions.
[0005] In a first aspect, the application provides a multi-cluster and multi-cluster index management method, which includes determining a type of an object to be managed; the type of the object to be managed includes a target cluster and / or an index of the target cluster; receiving configuration information and a management type of the object to be managed; verifying whether the configuration information is input, if yes, managing the object to be managed according to the management type, and if not, ending the management.
[0006] In an implementation manner of the first aspect, the configuration information includes index configuration information and cluster configuration information of the cluster; the index configuration information of the cluster includes an index name, a field name and a field type; the cluster configuration information includes a cluster name and node information; and the node information includes a node name and a node prefix.
[0007] In an implementation form of the first aspect, the management types comprise a cluster index management type and a cluster management type; the cluster index management type comprises a cluster template creation type, an index creation type, an index update type, an index closing or deleting type, and an alias marking type; the cluster management type comprises a cluster starting type, a cluster stopping type, a node process state detection type, and a cluster version updating type.
[0008] In an implementation form of the first aspect, the method comprises: verifying whether the cluster name of the target cluster input exists, and if so, managing the index of the target cluster based on at least one of the management types of the cluster template creation type, the index creation type, the index update type, the index closing or deleting type, and the alias marking type.
[0009] In an implementation form of the first aspect, the method comprises: reading a cluster template configuration based on the cluster template creation type to create a cluster or update a template configuration of the target cluster; and / or reading an index creation name rule based on the index creation type to generate a new index name, and if the new index name does not exist in the target cluster, creating an index; and / or obtaining an index name of a target index and reading an index update rule based on the index update type, and if the index name of the target index matches the index update rule, updating a field name or a field type of the target index; and / or detecting whether the target index is in an open state based on the index closing or deleting type, and if so, closing the target index, and if not, deleting the target index; and / or obtaining an alias of the target index and reading an alias update rule based on the alias marking type, and if the alias of the target index matches the alias update rule, updating the alias of the target index.
[0010] In an implementation form of the first aspect, the method comprises: verifying whether node information of the target cluster exists, and if so, managing the target cluster based on at least one of the management types of the cluster starting type, the cluster stopping type, the node process state detection type, and the cluster version updating type.
[0011] In an implementation form of the first aspect, the method comprises: remotely logging into a node server based on the cluster starting type to start the target cluster; and / or remotely logging into a node server based on the cluster stopping type to close the target cluster; and / or remotely logging into a node server based on the node process state detection type to obtain node process information, and if the node process information does not exist, selecting to start the target cluster; and / or remotely logging into a node server based on the cluster version updating type to update a version of the target cluster.
[0012] In a second aspect, the present application provides a multi-cluster and multi-cluster index management system, comprising: a determination module configured to determine a type of an object to be managed, wherein the type of the object to be managed comprises a target cluster and / or an index of the target cluster; a receiving module configured to receive configuration information and a management type of the object to be managed; and a verification and management module configured to verify whether the configuration information is inputted, and if the configuration information is inputted, manage the object to be managed according to the management type, and if the configuration information is not inputted, end the management.
[0013] In a third aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the multi-cluster and multi-cluster index management method of the first aspect of the present application.
[0014] In a fourth aspect, the present application provides an electronic device, comprising: a memory configured to store a computer program; and a processor connected to the memory in communication, wherein the processor is configured to invoke the computer program to execute the multi-cluster and multi-cluster index management method of the first aspect of the present application.
[0015] The multi-cluster and multi-cluster index management method, system, electronic device and medium of the present application have the following beneficial effects: the present application can simultaneously realize multi-cluster management and multi-index management across versions. On the one hand, the indexes and index fields can be managed as the business side develops. On the other hand, the clusters can also be managed, which simplifies the steps of upgrading the version of a large cluster, thereby maintaining the normal upgrade of all nodes of the cluster to ensure the integrity of the original data and the quick start-stop maintenance of the large cluster. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 A scene schematic diagram of an embodiment of the electronic device of the present application is shown.
[0017] Figure 2 A flowchart of an embodiment of the multi-cluster and multi-cluster index management method of the embodiments of the present application is shown.
[0018] Figure 3 A structure schematic diagram of an embodiment of the multi-cluster and multi-cluster index management system of the embodiments of the present application is shown.
[0019] Figure 4 A structure schematic diagram of an embodiment of the electronic device of the present application is shown. DETAILED DESCRIPTION
[0020] The following describes the embodiments of the present application through specific examples. Those skilled in the art can easily understand the other advantages and effects of the present application from the content disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other unless they conflict.
[0021] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. Therefore, the illustrations only show components related to the present application and are not drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component can be changed at will, and the component layout type may also be more complicated.
[0022] In addition, the descriptions of "first", "second", etc. in this application are for descriptive purposes only and should not be understood as indicating or implying their relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of such features. In addition, the technical solutions between the various embodiments can be combined with each other, but this must be based on the fact that they can be implemented by ordinary technicians in this field. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0023] The following embodiments of the present application provide a method for managing multiple clusters and multiple cluster indexes, which can be applied to Figure 1 The electronic device described in this application may include a mobile phone 11 with wireless charging function, a tablet computer 12, a laptop computer 13, a wearable device, an in-vehicle device, an augmented reality (AR) / virtual reality (VR) device, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The embodiments of this application do not impose any restrictions on the specific type of electronic device.
[0024] For example, the electronic device can be a station (STATION, STA) in a WLAN with wireless charging capability, a cellular phone with wireless charging capability, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device with wireless charging capability, a computing device or other processing device, a computer, a laptop, a handheld communications device, a handheld computing device, and / or other devices for communicating over a wireless system and next generation communication systems, e.g., a mobile terminal in a 5G network, a mobile terminal in a future evolved Public Land Mobile Network (PLMN), or a mobile terminal in a future evolved Non-Terrestrial Network (NTN), etc.
[0025] For example, the electronic device can communicate with a network and other devices via wireless communication. The wireless communication can use any communication standards or protocols, including but not limited to Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou navigation satellite system (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).
[0026] The technical solutions in the embodiments of the present application will be described in detail below with reference to the drawings in the embodiments of the present application.
[0027] Please refer to Figure 2 As shown in the figure, the management method of multiple clusters and multiple cluster indexes provided by an embodiment of the present application includes the following steps S1 to S3.
[0028] S1: Determine the type of an object to be managed; the type of the object to be managed includes a target cluster and / or an index of the target cluster.
[0029] Specifically, the indexes in multiple clusters or the indexes of multiple elasticsearch versions can be managed in batches separately, or the clusters of elasticsearch can be managed in batches separately. For example, the indexes in multiple clusters or the indexes of multiple elasticsearch versions, and the clusters of elasticsearch can be managed in batches simultaneously.
[0030] S2: Receive the configuration information and the management type of the object to be managed.
[0031] Specifically, the configuration information includes index configuration information and cluster configuration information of the cluster.
[0032] In some embodiments, the index configuration information of the cluster includes an index name, a field name, and a field type.
[0033] In some embodiments, the cluster configuration information includes a cluster name and node information; the node information includes a node name and a node prefix.
[0034] S3: Verify whether the input configuration information exists, if it exists, manage the object to be managed according to the management type, if it does not exist, end the management.
[0035] In some embodiments, it is verified whether the cluster name of the target cluster exists, if it exists, the index of the target cluster is managed based on at least one of the management types of a cluster template creation type, an index creation type, an index update type, an index closing or deletion type, and a label alias type.
[0036] In some embodiments, when the cluster name of the target cluster exists, the following step contents can be executed separately or simultaneously:
[0037] 1) Read the cluster template configuration based on the cluster template creation type to create a cluster or update the template configuration of the target cluster.
[0038] Specifically, when verifying that the input cluster name exists, the existing cluster template configuration is read to update the existing elasticsearch version cluster or create a cluster according to the cluster template configuration.
[0039] 2) Based on the creation index type, the index creation name rule is read to generate a new index name, and if the new index name does not exist in the target cluster, the index is created.
[0040] Specifically, when verifying that the input cluster name exists, the index creation name rule is read to generate an index name. And check whether the index name exists in the target cluster, if not, create an index; if it exists, stop creating an index.
[0041] 3) Based on the update index type, the index name of the target index is obtained and the index update rule is read, and if the index name of the target index matches the index update rule, the field name or field type of the target index is updated.
[0042] Specifically, when verifying that the input cluster name exists, the index update rule is read, and the index name of the target index is obtained. If the index name matches the update rule, the field information of the target index is obtained, and the field name or field type is updated.
[0043] 4) Based on the close or delete index type, it is detected whether the target index is in an open state, and if it is in an open state, the target index is closed, and if it is not in an open state, the target index is deleted.
[0044] Specifically, when verifying that the input cluster name exists, the target index is located, and it is judged whether the target index is in an open state. If yes, the target index is closed; if not, the target index is deleted.
[0045] 5) Based on the mark alias type, the alias of the target index is obtained and the alias update rule is read, and if the alias of the target index matches the alias update rule, the alias of the target index is updated.
[0046] Specifically, when verifying that the input cluster name exists, the alias of the target index is obtained and the alias update rule is read, and if the alias of the target index matches the alias update rule, the alias of the target index is updated, otherwise the update is stopped.
[0047] It should be noted that the above multi-index management types can be executed simultaneously or individually across versions in batches, and the present application is not limited thereto.
[0048] In other embodiments, it is verified whether the node information of the target cluster exists. If so, the target cluster is managed based on at least one management type of starting the cluster type, stopping the cluster type, node process status detection type, and cluster version update type.
[0049] In other embodiments, when the input node information of the target cluster exists, the following steps can be performed separately or simultaneously:
[0050] (1) Remotely log in to the node server based on the startup cluster type and start the target cluster.
[0051] (2) Remotely log in to the node server based on the stop cluster type and shut down the target cluster.
[0052] (3) Remotely log in to the node server based on the node process status detection type to obtain node process information. If the node process information does not exist, select and start the node of the target cluster.
[0053] (4) Remotely log in to the node server based on the cluster version update type to update the version of the target cluster.
[0054] Specifically, once the node information is verified to exist, the system remotely logs in to the node server, stops the node, locks the cluster, and synchronizes the new version to the stopped node's deployment directory to modify the node configuration file. The system then remotely restarts the node, checks the node process and cluster status, waits for the cluster to resume normal operation, and unlocks the cluster. At this point, the cluster update is complete.
[0055] The scope of protection of the multi-cluster and multi-cluster index management method described in the embodiment of the present application is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, subtracting, or replacing steps in the existing technology based on the principles of the present application are included in the scope of protection of the present application.
[0056] An embodiment of the present application also provides a management system for multiple clusters and multiple cluster indexes, which can implement the management method for multiple clusters and multiple cluster indexes described in the present application. However, the implementation device of the management method for multiple clusters and multiple cluster indexes described in the present application includes but is not limited to the structure of the management system for multiple clusters and multiple cluster indexes listed in this embodiment. All structural deformations and replacements of the existing technology made according to the principles of the present application are included in the scope of protection of the present application.
[0057] like Figure 3 As shown, the multi-cluster and multi-cluster index management system provided by this embodiment includes a determination module 41 , a receiving module 42 and a verification management module 43 .
[0058] The determining module 41 is configured to determine a type of object to be managed, wherein the type of object to be managed comprises a target cluster and / or an index of the target cluster.
[0059] The receiving module 42 is configured to receive configuration information and a management type of the input object to be managed.
[0060] The verifying and managing module 43 is configured to verify whether the input configuration information exists, and if the configuration information exists, manage the object to be managed according to the management type, and if the configuration information does not exist, end the management.
[0061] The determining module 41, the receiving module 42 and the verifying and managing module 43 correspond to the steps of the management method of the multiple clusters and the multiple cluster indexes in structure and principle, and thus will not be described herein.
[0062] In several embodiments provided in the present application, it should be understood that the disclosed system, device or method can be implemented by other manners. For example, the device embodiments described above are only illustrative, for example, the division of the modules / units is only a logical function division, and in actual implementation, another division manner can be used, for example, a plurality of modules or units can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed modules / units can be indirect coupling or communication connection through some interfaces, devices or modules / units, and can be electrical, mechanical or other forms.
[0063] The modules / units described as separate components can be or can not be physically separated, and the components displayed as modules / units can be or can not be physical modules, that is, can be located in one place, or can be distributed on a plurality of network units. According to actual needs, some or all of the modules / units can be selected to achieve the purpose of the embodiments of the present application. For example, the functional modules / units in each embodiment of the present application can be integrated in one processing module, or can be physically separated, or two or more modules / units can be integrated in one module / unit.
[0064] Those skilled in the art should further appreciate that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, various aspects of each example have been described generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the particular application and design constraints imposed on the overall system. Skilled persons can implement the described functionality in varying ways for each particular application, but such implementation should not be interpreted as a departure from the scope of the present application.
[0065] The embodiments of the present application further provide a computer readable storage medium. Those skilled in the art can understand that all or part of the steps of the methods described above can be completed by a program instructing a processor, and the program can be stored in a computer readable storage medium, which is a non-transitory medium, such as a random access memory, a read only memory, a flash memory, a hard disk, a solid state disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, and the like, which includes one or more sets of available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital video disc (DVD)), or a semiconductor medium (for example, a solid state disk (SSD)), and the like.
[0066] The embodiments of the present application further provide an electronic device. The electronic device comprises a processor and a memory.
[0067] The memory is configured to store a computer program.
[0068] The memory comprises a ROM, a RAM, a disk, a U disk, a memory card, an optical disc, and various media capable of storing program codes.
[0069] The processor is connected with the memory, and is configured to execute the computer program stored in the memory, so that the electronic device performs the management method of multiple clusters and multiple cluster indexes.
[0070] Preferably, the processor can be a general processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; also can be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0071] As shown in Figure 4 The electronic device of the present application is in the form of a general computing device. Components of the electronic device can include, but are not limited to, one or more processors or processing units 51, a memory 52, a bus 53 that connects different system components including the memory 52 and the processing unit 51.
[0072] The bus 53 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration bus, a processor or local bus using any of a variety of bus architectures including a Industry Standard Architecture (ISA), Micro Channel Architecture (MAC), Enhanced ISA (EISA), Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0073] The electronic device typically includes a variety of computer system readable media. Such media can be any available media that is accessible by the electronic device and includes both volatile and non-volatile media, removable and non-removable media.
[0074] The memory 52 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 521 and / or cache memory 522. The electronic device can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 523 can be used for reading from and writing to non-removable, non-volatile magnetic media (e.g., a "hard drive"). Figure 4 not shown, is typically provided as residual storage space on the storage system 523. Although not specifically shown, such computer system typically will also include other removable / non-removable, volatile / non-volatile computer system storage media including, but not limited to, a magnetic floppy disk drive (with related flexible disk controller "FDC" (not shown)) for easily reading from and writing to a removable, non-removable, volatile, non-volatile computer system storage medium (e.g., an external hard drive not shown). Figure 4Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 53 via one or more data medium interfaces. The memory 52 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.
[0075] A program / utility 524 having a set (at least one) of program modules 5241 may be stored, for example, in memory 52. Such program modules 5241 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 5241 generally implement the functions and / or methods of the embodiments described herein.
[0076] The electronic device may also communicate with one or more external devices (e.g., keyboards, pointing devices, displays, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via input / output (I / O) interface 54. Furthermore, the electronic device may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 55. Figure 4 As shown, the network adapter 55 communicates with other modules of the electronic device via the bus 53. It should be understood that, although not shown in the figures, other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0077] The embodiment of the present application may also provide a computer program product, the computer program product including one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer or data center to another website, computer or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method.
[0078] The computer program product is executed by a computer, and the computer executes the method of the foregoing method embodiments. The computer program product can be a software installation package, and when the foregoing method needs to be used, the computer program product can be downloaded and executed on the computer.
[0079] The application provides a multi-cluster and multi-cluster index management method and system, electronic equipment and a medium, which can simultaneously realize multi-cluster management and multi-index across versions. On the one hand, the index and index field can be managed along with the development of the business side. On the other hand, the cluster can also be managed, which simplifies the version upgrade steps of the large cluster, thereby maintaining the normal upgrade of all nodes of the cluster, ensuring the integrity of the original data and the quick start-stop maintenance of the large cluster.
[0080] The description of the flow or structure corresponding to each of the above figures has its own emphasis, and the part not described in detail in a certain flow or structure can be referred to the related description of other flows or structures.
[0081] The above embodiments only exemplarily illustrate the principles and effects of the application, and are not used to limit the application. Any person skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the application. Therefore, all equivalent modifications or changes completed by those skilled in the art without departing from the spirit and technical thought of the application should be covered by the claims of the application.
Claims
1. A method for managing multiple clusters and multi-cluster indexes, characterized in that: The method comprises: Determine the type of object to be managed; the type of object to be managed includes a target cluster and / or an index of the target cluster; Receiving input configuration information and management type of the object to be managed; Verify whether the input configuration information exists. If so, manage the object to be managed according to the management type. If not, end the management.
2. The method for managing multiple clusters and multi-cluster indexes according to claim 1, wherein: The configuration information includes cluster index configuration information and cluster configuration information; The cluster's index configuration information includes index name, field name, and field type; The cluster configuration information includes a cluster name and node information; the node information includes a node name and a node prefix.
3. The method for managing multiple clusters and multi-cluster indexes according to claim 2, wherein: The management type includes cluster index management type and cluster management type; The cluster index management types include creating a cluster template type, creating an index type, updating an index type, closing or deleting an index type, and marking an alias type; The cluster management types include cluster start type, cluster stop type, node process status detection type, and cluster version update type.
4. The method for managing multiple clusters and multi-cluster indexes according to claim 3, wherein: The method comprises: Verify whether the input cluster name of the target cluster exists. If so, manage the index of the target cluster based on at least one management type of creating a cluster template type, creating an index type, updating an index type, closing or deleting an index type, and marking an alias type.
5. The method for managing multiple clusters and multi-cluster indexes according to claim 4, wherein: The method comprises: Reading a cluster template configuration based on the cluster template type to create a cluster or update the template configuration of the target cluster; and / or Reading an index creation name rule based on the index creation type to generate a new index name, and creating an index if the new index name does not exist in the target cluster; and / or Obtaining the index name of the target index based on the update index type and reading the index update rule, and if the index name of the target index matches the index update rule, updating the field name or field type of the target index; and / or Detecting whether the target index is in an open state based on the closing or deleting index type, closing the target index if it is in an open state, and deleting the target index if it is not in an open state; and / or The alias of the target index is obtained based on the tag alias type and an alias update rule is read. If the alias of the target index matches the alias update rule, the alias of the target index is updated.
6. The method for managing multiple clusters and multi-cluster indexes according to claim 3, wherein: The method comprises: Verify whether the node information of the target cluster exists. If so, manage the target cluster based on at least one management type of starting a cluster, stopping a cluster, detecting a node process status, or updating a cluster version.
7. The method for managing multiple clusters and multi-cluster indexes according to claim 6, wherein: The method comprises: Remotely log in to the node server based on the startup cluster type and start the target cluster; and / or Remotely log in to the node server based on the stop cluster type and shut down the target cluster; and / or Remotely logging into the node server based on the node process status detection type to obtain node process information, and if the node process information does not exist, selecting to start the target cluster; and / or Remotely log in to the node server based on the cluster version update type to update the version of the target cluster.
8. A multi-cluster and multi-cluster index management system, characterized in that: The system comprises: A determination module, configured to determine a type of an object to be managed; the type of the object to be managed includes a target cluster and / or an index of the target cluster; A receiving module, configured to receive input configuration information and a management type of the object to be managed; The verification management module is used to verify whether the input configuration information exists. If so, the object to be managed is managed according to the management type; if not, the management is terminated.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for managing multiple clusters and a multiple cluster index according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: The electronic device comprises: a memory storing a computer program; A processor is communicatively connected to the memory, and executes the method for managing multiple clusters and multi-cluster indexes according to any one of claims 1 to 7 when calling the computer program.
Citation Information
Patent Citations
Dynamic management method for improving high availability of online clustering group
CN103152416A
Automatic management system for managing elasticsearch cluster in enterprise
CN117235035A
Data source management method
CN119066247A