CN113867923B - Method and device for migrating container application across CPU (Central processing Unit) architecture - Google Patents

Method and device for migrating container application across CPU (Central processing Unit) architecture Download PDF

Info

Publication number
CN113867923B
CN113867923B CN202111461500.1A CN202111461500A CN113867923B CN 113867923 B CN113867923 B CN 113867923B CN 202111461500 A CN202111461500 A CN 202111461500A CN 113867923 B CN113867923 B CN 113867923B
Authority
CN
China
Prior art keywords
container application
cpu architecture
migration
architecture server
qps
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.)
Active
Application number
CN202111461500.1A
Other languages
Chinese (zh)
Other versions
CN113867923A (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111461500.1A priority Critical patent/CN113867923B/en
Publication of CN113867923A publication Critical patent/CN113867923A/en
Application granted granted Critical
Publication of CN113867923B publication Critical patent/CN113867923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and a device for migrating a container application across a CPU (Central processing Unit) architecture, which can be applied to the field of cloud computing and comprise the following steps: acquiring a QPS of the migrated CPU architecture server after the container application runs for a preset period, determining whether the QPS of the migrated CPU architecture server is consistent with the QPS of the CPU architecture server before the migration, if not, determining a copy expansion coefficient to be adjusted according to the QPS of the container application of the migrated CPU architecture server and the QPS of the container application of the CPU architecture server before the migration, and adjusting the number of the copy of the container application of the migrated CPU architecture server. According to the invention, the number of the container application copies is adaptively adjusted, so that the QPS of the container application in the running process of the CPU architecture server after the migration is kept consistent with the QPS of the container application in the running process of the CPU architecture server before the migration, the operation is simple, and the consistent access experience can be ensured to be provided.

Description

Method and device for migrating container application across CPU (Central processing Unit) architecture
Technical Field
The invention relates to the technical field of servers, in particular to a method and a device for migrating container applications across a CPU (Central processing Unit) architecture.
Background
In the cloud computing era, a large number of applications are deployed on a container basis, and kubernets (an open source platform for automatic deployment, capacity expansion and operation and maintenance of container clusters) becomes a de facto container application orchestration standard. At present, as servers of the domestic CPU architecture become more stable, a large number of container applications are migrated from the x86 architecture to the domestic architecture. The server stability and performance limited by the domestic CPU and the operating system are somewhat deficient relative to the x86 server, and in order to ensure that the application has a QPS (Query Per Second) equivalent to the x86 architecture, when the container application migrates to the domestic CPU architecture server, a certain number of copies must be added to ensure that a consistent access experience is provided.
In the prior art, when container application cross-architecture migration is performed, a migration tool is generally adopted for overall migration, and after the migration is finished, the number of copies is increased on a domestic CPU architecture in a manner of manually setting copy expansion coefficients to ensure consistency with the QPS of the original X86 framework. According to the method, each application needs to be operated after the migration is completed, and the operation process is complicated; moreover, the manually set copy expansion coefficient is too dependent on the empirical value, and cannot be adjusted according to the actual situation, thereby causing the problem of poor user experience.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a method and a device for migrating a container application across a CPU (central processing unit) architecture, which can effectively solve the problems that the operation flow is complex and the adjustment cannot be carried out according to the actual situation when a copy coefficient is manually set in the prior art.
In order to achieve the purpose, the invention is realized by the following technical scheme:
in a first aspect, the present invention provides a method for migrating a container application across a CPU architecture, comprising:
after the container application is migrated across the CPU architecture, collecting a QPS after the container application of the migrated CPU architecture server runs for a preset time period;
determining whether the QPS of the container application of the CPU architecture server after the migration is consistent with the QPS of the container application of the CPU architecture server before the migration;
if not, determining a copy expansion coefficient to be adjusted according to the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration;
and adjusting the container application copy number of the container application of the migrated CPU architecture server according to the copy expansion coefficient to be adjusted.
Further, before the container application migrates across the CPU architecture, the method further comprises:
obtaining configuration parameters, wherein the configuration parameters comprise a preset application copy number proportion;
determining the number of container application copies of the CPU architecture server after the migration according to the preset application copy number proportion and the number of container application copies of the CPU architecture server before the migration;
and when the container application is migrated from the CPU architecture server before the migration to the CPU architecture server after the migration, setting the container application copy of the CPU architecture server after the migration by using the container application copy number of the CPU architecture server after the migration.
Further, after the adjusting the number of container application copies of the container application of the migrated CPU architecture server, the method further includes:
collecting the QPS of the container application of the migrated CPU architecture server by taking preset time as a period;
when it is determined that the collected QPS of the container application of the CPU architecture server after migration is inconsistent with the QPS of the container application of the CPU architecture server before migration, the expansion coefficient of the copy to be adjusted is re-determined, and the number of the container application copies of the container application of the CPU architecture server after migration is adjusted according to the re-determined expansion coefficient of the copy to be adjusted.
Further, determining the replica expansion coefficient to be adjusted by formula (1);
the formula (1) is:
Figure 86782DEST_PATH_IMAGE001
formula (1)
Wherein α represents a copy expansion coefficient to be adjusted, QPSsrc represents a QPS of the container application of the CPU architecture server before migration, and QPSdst represents a QPS of the container application of the CPU architecture server after migration.
In a second aspect, the present invention provides an apparatus for migrating a container application across a CPU architecture, comprising:
the acquisition unit is used for acquiring the QPS of the migrated CPU architecture server after the container application runs for a preset time period after the container application is migrated across the CPU architecture;
a processing unit, configured to determine whether a QPS of the container application of the CPU architecture server after the migration is consistent with a QPS of the container application of the CPU architecture server before the migration; if not, determining a copy expansion coefficient to be adjusted according to the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration; and adjusting the container application copy number of the container application of the migrated CPU architecture server according to the copy expansion coefficient to be adjusted.
Further, the processing unit is further configured to:
before container application is migrated across a CPU architecture, obtaining configuration parameters, wherein the configuration parameters comprise application copy number proportion;
determining the number of container application copies of the CPU architecture server after the migration according to the preset application copy number proportion and the number of container application copies of the CPU architecture server before the migration;
and when the container application is migrated from the CPU architecture server before the migration to the CPU architecture server after the migration, setting the container application copy of the CPU architecture server after the migration by using the container application copy number of the CPU architecture server after the migration.
Further, the processing unit is further configured to:
after the adjustment of the number of the container application copies of the container application of the migrated CPU architecture server, collecting a QPS of the container application of the migrated CPU architecture server with a preset time as a period;
when it is determined that the collected QPS of the container application of the CPU architecture server after migration is inconsistent with the QPS of the container application of the CPU architecture server before migration, the expansion coefficient of the copy to be adjusted is re-determined, and the number of the container application copies of the container application of the CPU architecture server after migration is adjusted according to the re-determined expansion coefficient of the copy to be adjusted.
Further, the processing unit is specifically configured to:
determining the copy expansion coefficient to be adjusted through formula (1);
the formula (1) is:
Figure 950833DEST_PATH_IMAGE001
formula (1)
Wherein α represents a copy expansion coefficient to be adjusted, QPSsrc represents a QPS of the container application of the CPU architecture server before migration, and QPSdst represents a QPS of the container application of the CPU architecture server after migration.
In a third aspect, the present invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for migrating the container application across a CPU architecture when executing the program.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for migration of container applications across a CPU architecture.
Compared with the known public technology, the technical scheme provided by the invention has the following beneficial effects:
the method comprises the steps of collecting QPS after the container application of the CPU architecture server after migration of the container application across the CPU architecture is operated for a preset period, determining whether the QPS of the container application of the CPU architecture server after migration is consistent with the QPS of the container application of the CPU architecture server before migration, if not, determining a copy expansion coefficient to be adjusted according to the QPS of the container application of the CPU architecture server after migration and the QPS of the container application of the CPU architecture server before migration, and adjusting the number of the container application copies of the container application of the CPU architecture server after migration according to the copy expansion coefficient to be adjusted. Therefore, before and after the container application is migrated, the copy coefficient does not need to be set manually, the copy adjustment is finished in a self-adaptive mode, the consistency of the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration is ensured, and therefore the usability of a service system and the use experience of a terminal user are ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
FIG. 1 is a flow diagram illustrating a method for migrating a container application across a CPU architecture in one embodiment of the invention;
fig. 2 is a schematic structural diagram of an apparatus for migrating a container application across a CPU architecture according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The present invention will be further described with reference to the following examples.
Fig. 1 illustrates a flow of a method for migrating a container application across a CPU architecture, which may be performed by an apparatus for migrating a container application across a CPU architecture.
As shown in fig. 1, the specific steps of the process include:
step S101: after the container application is migrated across the CPU architecture, acquiring a query rate per second QPS after the container application of the migrated CPU architecture server runs for a preset time period;
step S102: determining whether the QPS of the container application of the CPU architecture server after the migration is consistent with the QPS of the container application of the CPU architecture server before the migration;
step S10: if not, determining a copy expansion coefficient to be adjusted according to the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration;
step S104: and adjusting the container application copy number of the container application of the migrated CPU architecture server according to the copy expansion coefficient to be adjusted.
In the embodiment of the present invention, in order to make a QPS run on a CPU architecture server after migration of a container application and a QPS run on a CPU architecture server before migration as consistent as possible before and after the container application is migrated across CPU architectures, an empirical value needs to be first set to set a container application copy of the container application of the CPU architecture server after migration. Specifically, before the container application is migrated across the CPU architecture, configuration parameters may be obtained, where the configuration parameters may include a preset application copy number ratio. And then determining the number of the container application copies of the CPU architecture server after the migration according to the preset application copy number proportion and the number of the container application copies of the CPU architecture server before the migration. And finally, when the container application is migrated from the CPU architecture server before migration to the CPU architecture server, setting the container application copy of the CPU architecture server after migration by using the container application copy number of the CPU architecture server after migration.
For example, if the number of container application copies of the CPU architecture server before migration is a, and the ratio of the number of preset application copies included in the configuration parameters is 2.5, a × 2.5 container application copies need to be set for the container application on the CPU architecture server after migration.
By the method, before migration, it can be ensured that the QPS which can be run on the server of the CPU architecture after migration of the container application is completed is consistent with the QPS which can be run on the server of the CPU architecture before migration according to experience.
Specifically, the configuration parameters may further include: the CPU architecture chip manufacturer before the migration, the CPU chip manufacturer after the migration, the primary key ID used for avoiding data duplication, and the description used for remark information.
The configuration parameters may be set through a UI interface, for example, the specific setting of the preset application copy number ratio of the partially-homed CPU architecture server may be as follows:
migrating from the X86 architecture to the arm (first brand) architecture, the preset application copy ratio is set to 2.
Migrating from the X86 architecture to the arm (second brand) architecture, the preset application copy number ratio is set to 1.5.
Migrating from the X86 architecture to the mips (third brand) architecture, the preset application copy number ratio is set to 3.
After the migration of the container application across the CPU architecture is completed, in order to prevent a QPS run on the CPU architecture server after the migration of the container application from being different from a QPS run on the CPU architecture server before the migration, it is necessary to acquire a QPS after a preset period of time of the container application running on the CPU architecture server after the migration. The preset time period may be set empirically.
And then, inquiring the QPS of the container application when the container application runs on the CPU architecture server before migration in the database table, comparing the QPS with the database table, and comparing whether the QPS is consistent with the CPU architecture server before migration, wherein if so, the QPS does not need to be processed. If the difference is not consistent, the copy expansion coefficient to be adjusted needs to be determined according to the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration.
That is, after the migration is completed, there is a possibility that the QPS generated after the running of the container application copy number of the container application of the CPU architecture server after the migration set according to the empirical value may be inconsistent with the QPS of the container application of the CPU architecture server before the migration, and therefore, here, it is necessary to compare the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration with each other, and when it is determined that the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration are inconsistent, the copy expansion coefficient to be adjusted is calculated.
Specifically, the replica expansion coefficient to be adjusted may be determined according to formula (1):
the formula (1) may be:
Figure 624259DEST_PATH_IMAGE001
formula (1)
Wherein α represents a copy expansion coefficient to be adjusted, QPSsrc represents a QPS of the container application of the CPU architecture server before migration, and QPSdst represents a QPS of the container application of the CPU architecture server after migration.
It should be noted that, the QPS of the container application of the CPU architecture server before migration here is an average value of QPS of the container application of the CPU architecture server before migration counted by the system before migration within a preset time period, and is stored in the database for invocation. The preset time period may be set empirically, and may be, for example, 3 months.
After the copy expansion coefficient to be adjusted is obtained, a kubernets standard interface can be called according to the adjusted copy expansion coefficient, and the number of the container application copies can be automatically adjusted.
It should be noted that the CPU architecture server before migration and the CPU architecture server after migration are two different CPU architectures, for example, the CPU architecture before migration may be an X86 architecture, and the CPU architecture after migration may be a localization architecture.
In order to better optimize the above scheme, after the number of container application copies of the container application of the migrated CPU architecture server is adjusted, the number of container application copies may be further finely adjusted, which may specifically be as follows:
firstly, a QPS of the container application of the migrated CPU architecture server may be collected at a preset time period, and then when it is determined that the collected QPS of the container application of the migrated CPU architecture server is inconsistent with the QPS of the container application of the CPU architecture server before migration, the copy expansion coefficient to be adjusted is re-determined, and the number of container application copies of the container application of the migrated CPU architecture server is adjusted according to the re-determined copy expansion coefficient to be adjusted.
The preset time may be set empirically, for example, may be set to 3 months, 6 months, 12 months, etc.
The embodiment of the invention shows that after the container application is migrated across the CPU architecture, the QPS of the migrated CPU architecture server after the container application runs for the preset time period is collected, whether the QPS of the container application of the migrated CPU architecture server is consistent with the QPS of the container application of the CPU architecture server before the migration is determined, if not, the copy expansion coefficient to be adjusted is determined according to the QPS of the container application of the migrated CPU architecture server and the QPS of the container application of the CPU architecture server before the migration, and the number of the container application copies of the container application of the migrated CPU architecture server is adjusted according to the copy expansion coefficient to be adjusted. Therefore, before and after the container application is migrated, the copy coefficient does not need to be set manually, the copy adjustment is finished in a self-adaptive mode, the consistency of the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration is ensured, and therefore the usability of a service system and the use experience of a terminal user are ensured.
Based on the same technical concept, fig. 2 illustrates an apparatus for migrating a container application across a CPU architecture, which may execute a flow of migrating the container application across the CPU architecture.
As shown in fig. 2, the apparatus specifically includes:
the acquisition unit 201 is configured to acquire, after the container application is migrated across the CPU architecture, a QPS after the container application of the migrated CPU architecture server runs for a preset time period;
a processing unit 202, configured to determine whether a QPS of the container application of the CPU architecture server after the migration is consistent with a QPS of the container application of the CPU architecture server before the migration; if not, determining a copy expansion coefficient to be adjusted according to the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration; and adjusting the container application copy number of the container application of the migrated CPU architecture server according to the copy expansion coefficient to be adjusted.
In one embodiment, the processing unit 202 is further configured to:
before the container application is migrated across the CPU architecture, obtaining configuration parameters, wherein the configuration parameters comprise a preset application copy number proportion;
determining the number of container application copies of the CPU architecture server after the migration according to the preset application copy number proportion and the number of container application copies of the CPU architecture server before the migration;
and when the container application is migrated from the CPU architecture server before the migration to the CPU architecture server after the migration, setting the container application copy of the CPU architecture server after the migration by using the container application copy number of the CPU architecture server after the migration.
In one embodiment, the processing unit 202 is further configured to:
after the adjustment of the number of the container application copies of the container application of the migrated CPU architecture server, collecting a QPS of the container application of the migrated CPU architecture server with a preset time as a period;
when it is determined that the collected QPS of the container application of the CPU architecture server after migration is inconsistent with the QPS of the container application of the CPU architecture server before migration, the expansion coefficient of the copy to be adjusted is re-determined, and the number of the container application copies of the container application of the CPU architecture server after migration is adjusted according to the re-determined expansion coefficient of the copy to be adjusted.
In an embodiment, the processing unit 202 is specifically configured to:
determining the copy expansion coefficient to be adjusted through formula (1);
the formula (1) is:
Figure 181143DEST_PATH_IMAGE001
formula (1)
Wherein α represents a copy expansion coefficient to be adjusted, QPSsrc represents a QPS of the container application of the CPU architecture server before migration, and QPSdst represents a QPS of the container application of the CPU architecture server after migration.
From a hardware level, the present invention provides an embodiment of an electronic device for implementing all or part of contents in a method for migrating a container application across a CPU architecture, where the electronic device specifically includes the following contents: a memory, a processor, and a computer program stored on the memory and executable on the processor.
The embodiments of the present application further provide a computer-readable storage medium capable of implementing all steps in the application container multi-cluster migration method whose execution subject is the server or the client in the above embodiments, where the computer-readable storage medium stores thereon a computer program, and when the computer program is executed by a processor, the computer program implements all steps of the method for migrating the container application whose execution subject is the server or the client across the CPU architecture in the above embodiments.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not cause the essence of the corresponding technical solutions to depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method of container application migration across a CPU architecture, the method comprising:
after the container application is migrated across the CPU architecture, acquiring a query rate per second QPS after the container application of the migrated CPU architecture server runs for a preset time period;
determining whether the QPS of the container application of the CPU architecture server after the migration is consistent with the QPS of the container application of the CPU architecture server before the migration;
if not, determining a copy expansion coefficient to be adjusted according to the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration;
adjusting the container application copy number of the container application of the migrated CPU architecture server according to the copy expansion coefficient to be adjusted;
wherein the replica expansion coefficient to be adjusted is determined by equation (1);
the formula (1) is:
Figure 298550DEST_PATH_IMAGE001
formula (1)
Wherein α represents a copy expansion coefficient to be adjusted, QPSsrc represents a QPS of the container application of the CPU architecture server before migration, and QPSdst represents a QPS of the container application of the CPU architecture server after migration.
2. The method of claim 1, prior to the container application migrating across the CPU architecture, further comprising:
obtaining configuration parameters, wherein the configuration parameters comprise a preset application copy number proportion;
determining the number of container application copies of the CPU architecture server after the migration according to the preset application copy number proportion and the number of container application copies of the CPU architecture server before the migration;
and when the container application is migrated from the CPU architecture server before the migration to the CPU architecture server after the migration, setting the container application copy of the CPU architecture server after the migration by using the container application copy number of the CPU architecture server after the migration.
3. The method of claim 1, further comprising, after the adjusting the number of container application copies of the container application of the migrated CPU architecture server:
collecting the QPS of the container application of the migrated CPU architecture server by taking preset time as a period;
when it is determined that the collected QPS of the container application of the CPU architecture server after migration is inconsistent with the QPS of the container application of the CPU architecture server before migration, the expansion coefficient of the copy to be adjusted is re-determined, and the number of the container application copies of the container application of the CPU architecture server after migration is adjusted according to the re-determined expansion coefficient of the copy to be adjusted.
4. An apparatus for container application migration across a CPU architecture, the apparatus comprising:
the acquisition unit is used for acquiring the query rate per second QPS after the container application of the CPU architecture server after the container application is migrated across the CPU architecture and runs for a preset time period;
a processing unit, configured to determine whether a QPS of the container application of the CPU architecture server after the migration is consistent with a QPS of the container application of the CPU architecture server before the migration; if not, determining a copy expansion coefficient to be adjusted according to the QPS of the container application of the CPU architecture server after the migration and the QPS of the container application of the CPU architecture server before the migration; adjusting the container application copy number of the container application of the migrated CPU architecture server according to the copy expansion coefficient to be adjusted;
wherein the processing unit is specifically configured to:
determining the copy expansion coefficient to be adjusted through formula (1);
the formula (1) is:
Figure 684532DEST_PATH_IMAGE002
formula (1)
Wherein α represents a copy expansion coefficient to be adjusted, QPSsrc represents a QPS of the container application of the CPU architecture server before the migration, and QPSdst represents a QPS of the container application of the CPU architecture server after the migration after the preset period of operation.
5. The apparatus of claim 4, wherein the processing unit is further configured to:
before the container application is migrated across the CPU architecture, obtaining configuration parameters, wherein the configuration parameters comprise a preset application copy number proportion;
determining the number of container application copies of the CPU architecture server after the migration according to the preset application copy number proportion and the number of container application copies of the CPU architecture server before the migration;
and when the container application is migrated from the CPU architecture server before the migration to the CPU architecture server after the migration, setting the container application copy of the CPU architecture server after the migration by using the container application copy number of the CPU architecture server after the migration.
6. The apparatus of claim 4, wherein the processing unit is further configured to:
after the adjustment of the number of the container application copies of the container application of the migrated CPU architecture server, collecting a QPS of the container application of the migrated CPU architecture server with a preset time as a period;
when it is determined that the collected QPS of the container application of the CPU architecture server after migration is inconsistent with the QPS of the container application of the CPU architecture server before migration, the expansion coefficient of the copy to be adjusted is re-determined, and the number of the container application copies of the container application of the CPU architecture server after migration is adjusted according to the re-determined expansion coefficient of the copy to be adjusted.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 3 when executing the program.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 3.
CN202111461500.1A 2021-12-02 2021-12-02 Method and device for migrating container application across CPU (Central processing Unit) architecture Active CN113867923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111461500.1A CN113867923B (en) 2021-12-02 2021-12-02 Method and device for migrating container application across CPU (Central processing Unit) architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111461500.1A CN113867923B (en) 2021-12-02 2021-12-02 Method and device for migrating container application across CPU (Central processing Unit) architecture

Publications (2)

Publication Number Publication Date
CN113867923A CN113867923A (en) 2021-12-31
CN113867923B true CN113867923B (en) 2022-03-08

Family

ID=78985588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111461500.1A Active CN113867923B (en) 2021-12-02 2021-12-02 Method and device for migrating container application across CPU (Central processing Unit) architecture

Country Status (1)

Country Link
CN (1) CN113867923B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301864A (en) * 2015-06-11 2017-01-04 腾讯科技(深圳)有限公司 A kind of server system expansion method, device and dilatation processing equipment
CN106843755A (en) * 2017-01-04 2017-06-13 北京百度网讯科技有限公司 For the data balancing method and device of server cluster
CN108924213A (en) * 2018-06-27 2018-11-30 北京金山安全软件有限公司 QPS control method and device for server and electronic equipment
CN111241070A (en) * 2020-02-14 2020-06-05 苏州浪潮智能科技有限公司 Data migration device, method, system and storage medium of cross-CPU architecture
CN112487093A (en) * 2020-12-07 2021-03-12 浪潮云信息技术股份公司 Decentralized copy control method for distributed database
CN112988398A (en) * 2021-04-26 2021-06-18 北京邮电大学 Micro-service dynamic scaling and migration method and device
US11057314B1 (en) * 2014-04-16 2021-07-06 Google Llc Method for automatic management of capacity and placement for global services

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11057314B1 (en) * 2014-04-16 2021-07-06 Google Llc Method for automatic management of capacity and placement for global services
CN106301864A (en) * 2015-06-11 2017-01-04 腾讯科技(深圳)有限公司 A kind of server system expansion method, device and dilatation processing equipment
CN106843755A (en) * 2017-01-04 2017-06-13 北京百度网讯科技有限公司 For the data balancing method and device of server cluster
CN108924213A (en) * 2018-06-27 2018-11-30 北京金山安全软件有限公司 QPS control method and device for server and electronic equipment
CN111241070A (en) * 2020-02-14 2020-06-05 苏州浪潮智能科技有限公司 Data migration device, method, system and storage medium of cross-CPU architecture
CN112487093A (en) * 2020-12-07 2021-03-12 浪潮云信息技术股份公司 Decentralized copy control method for distributed database
CN112988398A (en) * 2021-04-26 2021-06-18 北京邮电大学 Micro-service dynamic scaling and migration method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
mysql qps 简书_终于成功部署 Kubernetes HPA 基于 QPS 进行自动伸缩;aniKuso;《https://blog.csdn.net/weixin_42452892/article/details/113910126》;20210207;全文 *
从 x86 到 ARM 平台软件迁移实战;孙浩;《https://www.infoq.cn/article/rotfIOXcZPo2WwaKSddO?utm_source=related_read&utm_medium=article》;20200717;全文 *

Also Published As

Publication number Publication date
CN113867923A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
TWI622933B (en) Client update method and device
CN108287708B (en) Data processing method and device, server and computer readable storage medium
CN106874100B (en) Computing resource allocation method and device
US10467106B2 (en) Data processing method, data processing system, and non-transitory computer program product for controlling a workload delay time
CN112862112A (en) Federal learning method, storage medium, terminal, server, and federal learning system
CN109960579B (en) Method and device for adjusting service container
US11934665B2 (en) Systems and methods for ephemeral storage snapshotting
US20210064571A1 (en) Information processing apparatus, information processing system, and non-transitory computer readable medium storing program
US8910189B2 (en) Methods and systems for automatically determining configuration parameters
CN113867923B (en) Method and device for migrating container application across CPU (Central processing Unit) architecture
CN113608765A (en) Data processing method, device, equipment and storage medium
CN116560803B (en) Resource management method and related device based on SR-IOV
CN117056132A (en) MySQL database switching method and device in Docker container, computer equipment and medium
US10387887B2 (en) Bloom filter driven data synchronization
CN113655846A (en) OpenPOWER server time synchronization method and system
CN112015551A (en) Coroutine pool management method and coroutine pool management device
CN110286732A (en) High-availability cluster power down automatic recovery method, device, equipment and storage medium
CN112579189A (en) Configuration file updating method and device
US10776036B2 (en) System and method for efficient restore
WO2024011896A1 (en) Data processing method and device and storage medium
WO2023051582A1 (en) Virtual resource information synchronization method, orchestrator, electronic device, and readable medium
US11797287B1 (en) Automatically terminating deployment of containerized applications
CN115357194A (en) Online migration method, device, equipment and storage medium for cloud host
CN115373894A (en) Data recovery method and device, electronic equipment and computer readable medium
CN118245196A (en) Application switching method, device, equipment, storage medium and computer program product

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
GR01 Patent grant
GR01 Patent grant