CN112667337A - Method for modifying Kafka cluster parameters on cloud management platform - Google Patents
Method for modifying Kafka cluster parameters on cloud management platform Download PDFInfo
- Publication number
- CN112667337A CN112667337A CN202011587251.6A CN202011587251A CN112667337A CN 112667337 A CN112667337 A CN 112667337A CN 202011587251 A CN202011587251 A CN 202011587251A CN 112667337 A CN112667337 A CN 112667337A
- Authority
- CN
- China
- Prior art keywords
- interface
- parameters
- modifying
- modification
- abnormal
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 230000004048 modification Effects 0.000 claims abstract description 39
- 238000012986 modification Methods 0.000 claims abstract description 39
- 230000002159 abnormal effect Effects 0.000 claims abstract description 32
- 230000002452 interceptive effect Effects 0.000 claims description 5
- 230000007547 defect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides a method for modifying Kafka cluster parameters on a cloud management platform, which comprises the following steps: s1, defining an interface for modifying parameters, adding an optional parameter in the interface, wherein the name is 'forced modification'; s2, the user clicks a modification parameter interface on the UI interface, the UI calls the interface defined in the step S1, and the parameter of 'forced modification' is not transmitted in the interface; and S3, processing the interface according to the internal logic of the interface after receiving the request, directly modifying the parameters if no abnormal machine exists, returning to the step of successful modification, finishing the operation, and returning to the step of failed modification if the abnormal machine exists, and prompting the abnormal state. The method for modifying Kafka cluster parameters on the cloud management platform provided by the invention realizes that a user determines whether to modify the cluster parameters according to the actual situation of the user under the condition that the cluster state is abnormal.
Description
Technical Field
The invention belongs to the technical field of cloud platform resource management, and particularly relates to a method for modifying Kafka cluster parameters on a cloud management platform.
Background
On the cloud service platform, a service selling Kafka middleware clusters is provided for users, and meanwhile, a function of modifying cluster parameters is also provided. A cluster is composed of multiple machines, and modifying the parameters of the cluster, in fact, each machine, is accompanied by a problem of modifying or not modifying if, while modifying the parameters, one or more machines in the cluster are in a failure state or for some reason are not accessible to them? If the parameters of the machines in normal state can only be modified if the parameters are modified, the problem that the parameters of a part of machines in a cluster are not synchronous occurs after the fault machines are repaired.
Thus, no matter which scheme is adopted, all users can not be satisfied.
The existing technical schemes include the following two types:
first, parameters can be modified only if the cluster state is normal, and modification is not permitted if one or more machines are not normal.
Second, when the parameters are modified, only the state of the normal machine is modified, and the machine with abnormal state is ignored.
The prior technical scheme has the following defects:
for the first scheme, the fault of several machines in a general cluster does not affect the use of a user, and the user is not allowed to modify parameters reasonably. There may be some user dissatisfaction.
According to the second scheme, when parameters are modified, only the state of a normal machine is modified, and machines with abnormal states are ignored. Thus, after the failed machine is recovered, the problem that the parameters of all the machines in a cluster are inconsistent is caused. The normal use of the cluster may be affected or the user may be confused and dissatisfied.
Disclosure of Invention
In view of the above, to overcome the above drawbacks, the present invention is directed to a method for modifying Kafka cluster parameters on a cloud management platform.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method for modifying Kafka cluster parameters on a cloud management platform comprises the following steps:
s1, defining an interface for modifying parameters, adding an optional parameter in the interface, wherein the name is 'forced modification';
s2, the user clicks a modification parameter interface on the UI interface, the UI calls the interface defined in the step S1, and the parameter of 'forced modification' is not transmitted in the interface;
and S3, processing the interface according to the internal logic of the interface after receiving the request, directly modifying the parameters if no abnormal machine exists, returning to the step of successful modification, finishing the operation, and returning to the step of failed modification if the abnormal machine exists, and prompting the abnormal state.
In step S1, the logic in the interface is as follows;
s101, if the parameter of 'forced modification' is not transmitted, judging the state of each node, if one is not in a normal state, ending the program, and returning that the node is in an abnormal state
S102, modifying parameters of all normal nodes, and ignoring the nodes in abnormal states.
Further, in step S3, after the UI receives the result of "modify successfully", the UI prompts the user that the modification is successful, and the operation is ended.
Further, in step S3, after receiving the result of "failure to modify, prompting that the state is abnormal", the UI pops up a prompt to the user that "whether the current cluster has abnormal node state, and only modifies the parameters of the normal nodes";
after seeing the prompt of whether the current cluster has abnormal node state and only modifies the parameters of normal nodes, the user selects to continue modifying or cancel according to the condition of the user;
if the user selects to cancel the interactive operation, the interactive operation is completed;
if the user selects 'continue modification', the UI continues to call an interface for modifying the parameters, and adds a 'forcibly modified' parameter in the interface;
and after receiving the request of forced modification, the background service interface modifies the parameters of the normal state of all the instances for the user.
Compared with the prior art, the method for modifying the Kafka cluster parameters on the cloud management platform has the following advantages:
the method for modifying Kafka cluster parameters on the cloud management platform provided by the invention realizes that a user determines whether to modify the cluster parameters according to the actual situation of the user under the condition that the cluster state is abnormal.
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 flowchart of a method for modifying Kafka cluster parameters on a cloud management platform according to 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.
The embodiment provides a method for modifying Kafka middleware cluster parameter configuration on a cloud service platform, as shown in fig. 1, the specific technical scheme is as follows:
1. an interface for modifying parameters is defined, and an optional parameter is added into the interface, wherein the name of the optional parameter is 'forced modification'.
The logic in the interface is as follows;
the first step is as follows: if the parameter of 'forced modification' is not transmitted, judging the state of each node, if one is not in a normal state, ending the program, and returning to the abnormal state of the node;
the second step is that: modifying parameters of all normal nodes, and ignoring nodes with abnormal states;
2. the user clicks the interface for modifying the parameters on the UI interface, the UI calls the interface defined above, and the parameter of 'forced modification' is not transmitted in the interface.
3. After receiving the request, the interface processes according to the internal logic of the interface, if there is no abnormal machine, the parameters are directly modified, the modification is returned successfully, the operation is finished, if there is abnormal machine, the modification is returned failed, and the abnormal state is prompted.
4. And after the UI receives the result of 'successful modification', the UI prompts the user that the modification is successful, and the operation is finished.
5. After the UI receives the result of ' failure in modification and abnormal prompt state ', a prompt is popped up to the user to indicate whether the current cluster has abnormal node state and only modifies the parameters of normal nodes '
6. After seeing the prompt of whether the current cluster has abnormal node state and only modifies the parameters of normal nodes, the user selects to continue modifying or cancel according to the condition of the user.
7. If the user selects "cancel". And finishing the interactive operation.
8. If the user selects the 'continue modification' UI, the interface for modifying the parameters is called continuously, and the parameters of 'forced modification' are added in the interface.
9. And after receiving the request of forced modification, the background service interface modifies the parameters of the normal state of all the instances for the user.
The above flow is what the patent wishes to protect, and defines a set of ways to modify Kafka middleware cluster parameters on the solution cloud platform, by adding a "mandatory modification" parameter in the interface.
The method and the device realize that the user can determine whether to modify the cluster parameters according to the actual situation of the user under the condition that the cluster state is abnormal.
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 (4)
1. A method for modifying Kafka cluster parameters on a cloud management platform is characterized by comprising the following steps:
s1, defining an interface for modifying parameters, adding an optional parameter in the interface, wherein the name is 'forced modification';
s2, the user clicks a modification parameter interface on the UI interface, the UI calls the interface defined in the step S1, and the parameter of 'forced modification' is not transmitted in the interface;
and S3, processing the interface according to the internal logic of the interface after receiving the request, directly modifying the parameters if no abnormal machine exists, returning to the step of successful modification, finishing the operation, and returning to the step of failed modification if the abnormal machine exists, and prompting the abnormal state.
2. The method for modifying Kafka cluster parameters on a cloud management platform according to claim 1, wherein: in step S1, the logic in the interface is as follows;
s101, if the parameter of 'forced modification' is not transmitted, judging the state of each node, if one is not in a normal state, ending the program, and returning that the node is in an abnormal state
S102, modifying parameters of all normal nodes, and ignoring the nodes in abnormal states.
3. The method for modifying Kafka cluster parameters on a cloud management platform according to claim 1, wherein: in step S3, after receiving the result of "successful modification", the UI prompts the user that the modification is successful, and the operation is ended.
4. The method for modifying Kafka cluster parameters on a cloud management platform according to claim 1, wherein: in step S3, after receiving the result of "failure to modify, abnormal state is prompted", the UI pops up a prompt to the user that "whether the current cluster has abnormal node state, and only modifies the parameters of the normal nodes";
after seeing the prompt of whether the current cluster has abnormal node state and only modifies the parameters of normal nodes, the user selects to continue modifying or cancel according to the condition of the user;
if the user selects to cancel the interactive operation, the interactive operation is completed;
if the user selects 'continue modification', the UI continues to call an interface for modifying the parameters, and adds a 'forcibly modified' parameter in the interface;
and after receiving the request of forced modification, the background service interface modifies the parameters of the normal state of all the instances for the user.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011587251.6A CN112667337A (en) | 2020-12-28 | 2020-12-28 | Method for modifying Kafka cluster parameters on cloud management platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011587251.6A CN112667337A (en) | 2020-12-28 | 2020-12-28 | Method for modifying Kafka cluster parameters on cloud management platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112667337A true CN112667337A (en) | 2021-04-16 |
Family
ID=75411554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011587251.6A Pending CN112667337A (en) | 2020-12-28 | 2020-12-28 | Method for modifying Kafka cluster parameters on cloud management platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112667337A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114168221A (en) * | 2021-11-30 | 2022-03-11 | 紫光云(南京)数字技术有限公司 | Method for restarting mongodb cluster on cloud management platform |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679717A (en) * | 2015-02-15 | 2015-06-03 | 北京京东尚科信息技术有限公司 | Method and management system of elastic cluster deployment |
CN110134564A (en) * | 2019-03-29 | 2019-08-16 | 山东浪潮云信息技术有限公司 | A kind of visual Kafka cluster monitoring method |
CN111125219A (en) * | 2019-12-18 | 2020-05-08 | 紫光云(南京)数字技术有限公司 | Method for modifying Redis cluster parameters on cloud platform |
CN111835563A (en) * | 2020-07-03 | 2020-10-27 | 紫光云技术有限公司 | Method for modifying configuration of mongodb database cluster parameters on cloud service platform |
-
2020
- 2020-12-28 CN CN202011587251.6A patent/CN112667337A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104679717A (en) * | 2015-02-15 | 2015-06-03 | 北京京东尚科信息技术有限公司 | Method and management system of elastic cluster deployment |
CN110134564A (en) * | 2019-03-29 | 2019-08-16 | 山东浪潮云信息技术有限公司 | A kind of visual Kafka cluster monitoring method |
CN111125219A (en) * | 2019-12-18 | 2020-05-08 | 紫光云(南京)数字技术有限公司 | Method for modifying Redis cluster parameters on cloud platform |
CN111835563A (en) * | 2020-07-03 | 2020-10-27 | 紫光云技术有限公司 | Method for modifying configuration of mongodb database cluster parameters on cloud service platform |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114168221A (en) * | 2021-11-30 | 2022-03-11 | 紫光云(南京)数字技术有限公司 | Method for restarting mongodb cluster on cloud management platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3800926B1 (en) | Alarm method and device | |
JP4806357B2 (en) | Method, system, and program for identifying, reserving, and logically provisioning resources in a provisioning data processing system | |
CN107222324B (en) | Service configuration method and device of network service | |
EP1962538B1 (en) | Method for managing terminal device | |
CN111125219A (en) | Method for modifying Redis cluster parameters on cloud platform | |
CN111587601A (en) | Network slice provisioning and operation | |
JP2020510384A (en) | Network slice management method, unit, and system | |
CN106874089B (en) | A kind of processing method, device and the mobile terminal of application program self-starting | |
CN106843977B (en) | A kind of processing method, device and the mobile terminal of application program self-starting | |
WO2019141089A1 (en) | Network alarm method, device, system and terminal | |
US20070174446A1 (en) | Device management scheduling method and apparatus thereof | |
CN107241201B (en) | Work order processing method and device | |
CN112667337A (en) | Method for modifying Kafka cluster parameters on cloud management platform | |
CN111835563A (en) | Method for modifying configuration of mongodb database cluster parameters on cloud service platform | |
CN113553139A (en) | Hybrid multi-cloud management method, system, device and medium in container cloud environment | |
CN112446714A (en) | Server upgrading method, device and equipment for express after-sale work order processing system | |
CN106330513A (en) | Processing method and apparatus for tr069 protocol information | |
EP2385726A1 (en) | Apparatus and method for controlling amount of concurrent calls | |
WO2021093079A1 (en) | Service data processing method and system | |
CN110851166A (en) | User-unaware application program updating method and device and computer equipment | |
CN107566475B (en) | Session failover method and device | |
CN106874088B (en) | A kind of processing method, device and the mobile terminal of application program self-starting | |
CN107203461B (en) | Compatibility testing method and device | |
CN100388206C (en) | Method with management of an opaque user identifier for checking complete delivery of a service using a set of servers | |
CN112199104B (en) | Software upgrading method and device, electronic equipment and storage medium |
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: 20210416 |
|
RJ01 | Rejection of invention patent application after publication |