CN112783611A - Universal configurable method for preparing cloud database Redis instance resources - Google Patents

Universal configurable method for preparing cloud database Redis instance resources Download PDF

Info

Publication number
CN112783611A
CN112783611A CN202110141008.XA CN202110141008A CN112783611A CN 112783611 A CN112783611 A CN 112783611A CN 202110141008 A CN202110141008 A CN 202110141008A CN 112783611 A CN112783611 A CN 112783611A
Authority
CN
China
Prior art keywords
processor
cloud database
modifying
server
resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110141008.XA
Other languages
Chinese (zh)
Inventor
王爽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unicloud Technology Co Ltd
Original Assignee
Unicloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unicloud Technology Co Ltd filed Critical Unicloud Technology Co Ltd
Priority to CN202110141008.XA priority Critical patent/CN112783611A/en
Publication of CN112783611A publication Critical patent/CN112783611A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a universal configurable method for preparing cloud database Redis instance resources, which comprises the following steps: s1, obtaining IAAS resources through PAAS platform management service; s2, after obtaining the IAAS server resource, carrying out initialization preparation work of the server resource according to the current node type; and S3, after the server resources are prepared, installing and deploying the redis instance. The invention has the beneficial effects that: the PAAS platform management service can freely combine the modification work of the server corresponding to the node according to the node type of the current product, so that the modification of the server can be carried out by adopting an isomorphic processing mode for node types of different products of redis, and the modification can be realized by selecting different task combinations according to the node type.

Description

Universal configurable method for preparing cloud database Redis instance resources
Technical Field
The invention belongs to the technical field of databases, and particularly relates to a universal configurable method for preparing cloud database Redis instance resources.
Background
The method comprises the steps that a cloud database redis product instance firstly acquires server resources from an IAAS layer of a cloud computing platform in a creating process, and the redis product instance is installed and deployed in a server after the server resources are taken. The re-deployment instance process often does not prepare the server resources for processing, even if there is processing on the server resources, it is coupled in the deployment process of the redis product instance.
The modification of the server resources is coupled in the process of deploying the cloud database redis, so that the modification of the server resources, such as the operation of initializing a server disk, is considered in the process of reloading and deploying the redis, the coupling degree is high, the efficient installation and deployment of the redis are not facilitated, the whole process is not configurable and flexible, for example, sentinel nodes of the redis do not need to be newly added and initialize the disk, special processing needs to be carried out on the sentinel nodes, and the installation and deployment process is complicated.
Disclosure of Invention
In view of the above, the present invention is directed to a universal configurable method for preparing cloud database Redis instance resources, so as to solve the above-mentioned disadvantages.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention discloses a universal configurable method for preparing cloud database Redis instance resources, which is characterized by comprising the following steps:
s1, obtaining IAAS resources through PAAS platform management service;
s2, after obtaining the IAAS server resource, carrying out initialization preparation work of the server resource according to the current node type;
and S3, after the server resources are prepared, installing and deploying the redis instance.
Further, the initialization preparation in step S2 includes modifying the hostname, configuring the inter-cluster trust, modifying/etc/host mapping, and initializing the disk.
And further, the method is also used for realizing modification work on the server through free combination of node types.
Furthermore, the method is also used for modifying the redis service node by modifying the hostname, configuring cluster mutual trust, modifying the host mapping and initializing the disk.
And further, the method is also used for modifying the redis sentinel node by modifying the hostname, configuring cluster mutual trust and modifying the host mapping.
In a second aspect, the present invention discloses an electronic device, including a processor and a memory communicatively connected to the processor and configured to store executable instructions of the processor, where the processor is configured to execute a method for universal configurable preparation of cloud database Redis instance resources according to any one of the above first aspects.
In a third aspect, the present invention discloses a server, comprising at least one processor, and a memory communicatively connected to the processor, the memory storing instructions executable by the at least one processor, the instructions being executable by the processor to cause the at least one processor to perform a method for universal configurable preparation of cloud database Redis instance resources according to any of the first aspects.
In a fourth aspect, the present invention discloses a computer-readable storage medium storing a computer program, which when executed by a processor implements a method for universal configurable preparation of cloud database Redis instance resources according to any one of the first aspects.
Compared with the prior art, the universal configurable method for preparing the cloud database Redis instance resources has the following advantages:
(1) the PAAS platform management service can freely combine the modification work of the server corresponding to the node according to the node type of the current product, so that the modification of the server can be carried out by adopting an isomorphic processing mode for node types of different products of redis, and the modification can be realized by selecting different task combinations according to the node type;
(2) the universal configurable method for preparing the Redis instance resources of the cloud database, provided by the invention, has the advantages that the modification of the server in the process of deploying the Redis server is eliminated, and the installation and deployment efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic diagram of a general configurable method for preparing a cloud database Redis instance resource according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
As shown in fig. 1, a general configurable method for preparing cloud database Redis instance resources includes the following steps:
s1, obtaining IAAS resources through PAAS platform management service;
s2, after obtaining the IAAS server resource, carrying out initialization preparation work of the server resource according to the current node type;
and S3, after the server resources are prepared, installing and deploying the redis instance.
The initialization preparation work in step S2 includes modifying hostname, configuring inter-cluster trust, modifying/etc/host mapping, and initializing a disk.
And the method is also used for realizing modification work on the server through free combination of node types.
And the method is also used for modifying the redis service node by modifying the hostname, configuring cluster mutual trust, modifying the host mapping and initializing the disk.
And the method is also used for modifying the redis sentinel nodes by modifying the hostname, configuring cluster mutual trust and modifying the host mapping.
An electronic device comprising a processor and a memory communicatively coupled to the processor and configured to store processor-executable instructions, the processor configured to perform a universal configurable method of preparing cloud database Redis instance resources.
A server comprising at least one processor, and a memory communicatively coupled to the processor, the memory storing instructions executable by the at least one processor, the instructions being executable by the processor to cause the at least one processor to perform a universal configurable method of preparing cloud database Redis instance resources.
A computer-readable storage medium storing a computer program which, when executed by a processor, implements a universal configurable method of preparing cloud database Redis instance resources.
It should be noted that, the hardware part of the above electronic device, the server and the computer readable storage medium uses the prior art, and the software part executes a general configurable method for preparing the cloud database Redis instance resource according to the present invention.
In the specific implementation process, the implementation scheme is as follows:
1) the IAAS resources are first acquired, again through the PAAS platform management service.
2) After the IAAS server resources are acquired, initialization preparation work of the server resources is carried out according to the current node type, such as modification of hostname, configuration of inter-cluster mutual trust, modification/etc/host mapping, disk initialization and the like.
3) And after the server resources are prepared, installing and deploying the redis instance.
According to the scheme, modification work can be obtained on the server according to free combination of node types, for example, a redis service node, PAAS platform management can perform combination of all tasks (modifying hostname, configuring cluster mutual trust, modifying host mapping and initializing a disk), if the node is a redis sentinel node, the following task combination (modifying hostname, configuring cluster mutual trust and modifying host mapping) can be performed, and the redis sentinel does not need to initialize the disk.
Those of ordinary skill in the art will appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of clearly illustrating the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed method and system may be implemented in other ways. For example, the above described division of elements is merely a logical division, and other divisions may be realized, for example, multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not executed. The units may or may not be physically separate, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (8)

1. A universal configurable method for preparing cloud database Redis instance resources is characterized by comprising the following steps:
s1, obtaining IAAS resources through PAAS platform management service;
s2, after obtaining the IAAS server resource, carrying out initialization preparation work of the server resource according to the current node type;
and S3, after the server resources are prepared, installing and deploying the redis instance.
2. A generic, configurable method for preparing cloud database Redis instance resources according to claim 1, characterized by: the initialization preparation work in step S2 includes modifying hostname, configuring inter-cluster trust, modifying/etc/host mapping, and initializing a disk.
3. A generic, configurable method for preparing cloud database Redis instance resources according to claim 1, characterized by: and the method is also used for realizing modification work on the server through free combination of node types.
4. A generic, configurable method for preparing cloud database Redis instance resources according to claim 1, characterized by: and the method is also used for modifying the redis service node by modifying the hostname, configuring cluster mutual trust, modifying the host mapping and initializing the disk.
5. A generic, configurable method for preparing cloud database Redis instance resources according to claim 1, characterized by: and the method is also used for modifying the redis sentinel nodes by modifying the hostname, configuring cluster mutual trust and modifying the host mapping.
6. An electronic device comprising a processor and a memory communicatively coupled to the processor and configured to store processor-executable instructions, wherein: the processor is used for executing a universal configurable method for preparing cloud database Redis instance resources as set forth in any one of the preceding claims 1-5.
7. A server, characterized by: comprising at least one processor, and a memory communicatively coupled to the processor, the memory storing instructions executable by the at least one processor, the instructions being executable by the processor to cause the at least one processor to perform a method of universal configurable preparation of cloud database Redis instance resources as recited in any one of claims 1-5.
8. A computer-readable storage medium storing a computer program, characterized in that: the computer program, when executed by a processor, implements a universal configurable method of preparing cloud database Redis instance resources as claimed in any one of claims 1 to 5.
CN202110141008.XA 2021-01-29 2021-01-29 Universal configurable method for preparing cloud database Redis instance resources Pending CN112783611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110141008.XA CN112783611A (en) 2021-01-29 2021-01-29 Universal configurable method for preparing cloud database Redis instance resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110141008.XA CN112783611A (en) 2021-01-29 2021-01-29 Universal configurable method for preparing cloud database Redis instance resources

Publications (1)

Publication Number Publication Date
CN112783611A true CN112783611A (en) 2021-05-11

Family

ID=75760431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110141008.XA Pending CN112783611A (en) 2021-01-29 2021-01-29 Universal configurable method for preparing cloud database Redis instance resources

Country Status (1)

Country Link
CN (1) CN112783611A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506191A (en) * 2016-09-23 2017-03-15 郑州云海信息技术有限公司 The automatically dispose serviced based on virtual platform Redis and maintaining method
US20180113896A1 (en) * 2016-10-20 2018-04-26 International Business Machines Corporation Synchronizing data across multiple instances of an application in a cloud
CN109522029A (en) * 2018-11-22 2019-03-26 山东浪潮云信息技术有限公司 A kind of method and device for disposing cloud platform technology component
CN111045802A (en) * 2019-11-22 2020-04-21 中国联合网络通信集团有限公司 Redis cluster component scheduling system and method and platform device
CN112100005A (en) * 2020-08-20 2020-12-18 紫光云(南京)数字技术有限公司 Redis copy set implementation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506191A (en) * 2016-09-23 2017-03-15 郑州云海信息技术有限公司 The automatically dispose serviced based on virtual platform Redis and maintaining method
US20180113896A1 (en) * 2016-10-20 2018-04-26 International Business Machines Corporation Synchronizing data across multiple instances of an application in a cloud
CN109522029A (en) * 2018-11-22 2019-03-26 山东浪潮云信息技术有限公司 A kind of method and device for disposing cloud platform technology component
CN111045802A (en) * 2019-11-22 2020-04-21 中国联合网络通信集团有限公司 Redis cluster component scheduling system and method and platform device
CN112100005A (en) * 2020-08-20 2020-12-18 紫光云(南京)数字技术有限公司 Redis copy set implementation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
韩景倜,何杰: "《云经纪基础知识》", 31 January 2015 *

Similar Documents

Publication Publication Date Title
US8185624B2 (en) Efficient on-demand provisioning of servers for specific software sets
US9996333B2 (en) Apparatus and method for automating the installation and configuration of infrastructure
US8266616B1 (en) Computer system provisioning using templates
US9164782B2 (en) Virtual machine administration for data center resource managers
US10956143B2 (en) Server updates
CN109451088A (en) A kind of data access method and device
US20100274877A1 (en) Method and system for creation of operating system partition table
US9213676B2 (en) Hardware device name resolution for deterministic configuration in a network appliance
US10425287B2 (en) Systems and methods for network topology discovery
US7882232B2 (en) Rapid resource provisioning with automated throttling
CN111367618A (en) Code management method, system, terminal and medium based on docker
CN108737499A (en) server configuration method and device
CN115145695B (en) Resource scheduling method and device, computer equipment and storage medium
CN112470119B (en) Service upgrading method and device in distributed system and distributed system
CN107463390B (en) Software upgrading method and upgrading server
CN111124437A (en) Bare computer resource configuration information acquisition method, system and equipment based on OpenStack
CN110597613A (en) Task processing method, device, equipment and computer readable storage medium
CN112783611A (en) Universal configurable method for preparing cloud database Redis instance resources
US10379780B2 (en) Statistics management for scale-out storage
US10019272B1 (en) Virtual appliance manager
EP3837807A1 (en) Modular system framework for software network function automation
CN107329804B (en) Method for automatically creating and upgrading virtual machine according to configuration
CN116107694A (en) Deployment method and device of k8s sub-cluster and storage medium
CN115576565A (en) Application program deployment method and device, electronic equipment and storage medium
CN112860379A (en) Method for installing and deploying high availability of redis on cloud platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210511

RJ01 Rejection of invention patent application after publication