Access method and device of cloud computer, storage medium and electronic equipment
By dynamically selecting server clusters and image files during cloud computer access, the problem of low access efficiency in cloud computers is solved, resulting in a more efficient and flexible access experience.
Patent Information
- Application Number
- CN202411208001.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2026-03-10
AI Technical Summary
In existing technologies, cloud computing access methods are fixed and singular, resulting in low access efficiency and frequent failures when the physical distance between the user and the server cluster is far, and there is a lack of effective solutions.
By determining the current location and historical operation data of the terminal device, the target server cluster that meets the access conditions is dynamically selected, and the cloud computer is started using the image file synchronized with the reference server cluster, thus realizing a flexible access path.
It improves the access efficiency and flexibility of cloud computers, avoids the inefficiency caused by fixed access paths, and provides faster access speeds and a better user experience.
Smart Images

Figure CN121644575A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the computer field, in particular to a cloud computer access method and device, a storage medium and an electronic device. BACKGROUND
[0002] When running some large-scale applications, due to the limited hardware resources of local computers, it may cause running lag or even unable to run normally. In contrast, cloud computers are usually supported by powerful servers, which have high-performance CPUs, large amounts of RAM and high-speed storage systems, and can handle resource-intensive applications. Therefore, more and more users choose to use cloud computers to run these large-scale applications.
[0003] At present, in the case that a request of a user accessing a cloud computer through a cloud computer platform client for managing the cloud computer is received in the background, a server cluster bound with the cloud computer is usually fixedly accessed to utilize the server cluster to access the cloud computer. However, if the distance between the physical location of the server cluster currently bound with the cloud computer and the physical location of the user is too far, the time-consuming of accessing the cloud computer will be increased or even the access will fail, and the user needs to access the cloud computer again once the access fails.
[0004] In other words, the cloud computer access method adopted in the related art still has the technical problem of low access efficiency due to the fixed and single access method.
[0005] At present, there is no effective solution to the above problems. SUMMARY
[0006] The embodiments of the present application provide a cloud computer access method and device, a storage medium and an electronic device, which at least solve the technical problem of low access efficiency of the cloud computer.
[0007] According to an aspect of the embodiments of the present application, a cloud computer access method is provided, comprising: in response to a first access request sent by a terminal device, determining a first location where the terminal device is currently located, and determining a second location where the terminal device was located when performing a last operation in a cloud computer platform client from historical operation data of the terminal device, wherein the first access request is used to request to log in to the cloud computer platform client in the terminal device using a target account; in the case where the first location is different from the second location, determining a target server cluster that meets an access condition based on the first location, and notifying the terminal device to access a target cloud computer through the target server cluster based on the cloud computer platform client; in response to a second access request sent by the terminal device, controlling the target server cluster to start the target cloud computer through a stored target image file, wherein the second access request is used to request to access the target cloud computer through the target server cluster, the target image file is synchronized to the target server cluster from a reference server cluster, the target image file is created in the reference server cluster, and the target server cluster is a server cluster that meets an image synchronization condition in a target server cluster group to which the reference server cluster belongs.
[0008] According to an aspect of the embodiments of the present application, a cloud computer update method is provided, comprising: receiving an update request sent by a terminal device, and determining a third location where the terminal device is currently located; obtaining historical operation data in a historical image file stored in a reference server cluster located at the third location, wherein the update request is used to request to update a performance parameter of a target cloud computer logged in by a target cloud account; generating a candidate image file based on a target performance parameter set carried in the update request; importing the historical operation data into the candidate image file to obtain a target image file, and binding the target image file with the target cloud account; in the case where an object server cluster that meets an image synchronization condition is determined in a target server cluster group to which the reference server cluster belongs, synchronizing the target image file stored in the reference server cluster to the object server cluster.
[0009] According to another aspect of the embodiments of the present application, there is also provided an access apparatus of a cloud computer, applied to a server side, comprising: a first determining unit configured to determine a first location where a terminal device is currently located in response to a first access request sent by the terminal device, and determine a second location where the terminal device was located when performing a last operation in a cloud computer platform client according to historical operation data of the terminal device, wherein the first access request is used to request to log in the cloud computer platform client in the terminal device by using a target account; a second determining unit configured to determine a target server cluster satisfying an access condition based on the first location in a case that the first location is different from the second location, and notify the terminal device to access a target cloud computer through the target server cluster based on the cloud computer platform client; and a starting unit configured to control the target server cluster to start the target cloud computer through a stored target image file in response to a second access request sent by the terminal device, wherein the second access request is used to request to access the target cloud computer through the target server cluster, the target image file is synchronized to the target server cluster from a reference server cluster, the target image file is created in the reference server cluster, and the target server cluster is a server cluster satisfying an image synchronization condition in a target server cluster group to which the reference server cluster belongs.
[0010] Optionally, in the embodiment, the apparatus further comprises: a third determining unit configured to determine a length of a target access queue of the target server, wherein the target access queue comprises request information of the terminal device requesting to access the target server cluster; and a first notifying unit configured to notify the terminal device to display a queuing access prompt information in a case that the length of the target access queue reaches a queuing length threshold.
[0011] Optionally, in the embodiment, the apparatus further comprises: a fourth determining unit configured to determine an account level of a target cloud account used to log in the target cloud computer; a fifth determining unit configured to determine, in a case that the account level reaches a target level, an access sub-queue with a shortest queuing waiting time of the terminal device from at least two access sub-queues in the target access queue as a target access sub-queue; and an adding unit configured to add the request information of the terminal device into the target access sub-queue.
[0012] Optionally, in the embodiment, the second determining unit comprises: a first determining module, configured to determine a server cluster located at the first location in the target server cluster group as the target server cluster satisfying the access condition; and a second determining module, configured to obtain N transmission measurement results determined based on the first location, and determine a target transmission measurement result satisfying the measurement condition from the N transmission measurement results, wherein the i th transmission measurement result is used to indicate a transmission measurement result between the terminal device at the first location and an i th cluster proxy server in the N cluster proxy servers, and each cluster proxy server manages a server cluster in which the target mirror image file is stored, i is greater than or equal to 1 and less than or equal to N, and N is a positive integer; and the server cluster managed by the cluster proxy server corresponding to the target transmission measurement result is determined as the target server cluster satisfying the access condition.
[0013] Optionally, in the embodiment, the second determining module is further configured to: sort data transmission speeds respectively indicated by the N transmission measurement results; determine, as the target transmission measurement result satisfying the measurement condition, a transmission measurement result corresponding to a maximum value of the data transmission speeds in the sorted result; sort terminal access amounts respectively indicated by the N transmission measurement results; determine, as the target transmission measurement result satisfying the measurement condition, a transmission measurement result corresponding to a minimum value of the terminal access amounts in the sorted result; sort data transmission bandwidths respectively indicated by the N transmission measurement results; and determine, as the target transmission measurement result satisfying the measurement condition, a transmission measurement result corresponding to a maximum value of the data transmission bandwidths in the sorted result, wherein the data transmission bandwidth indicated by the i th transmission measurement result in the N transmission measurement results is used to represent a bandwidth of a data transmission channel between the i th cluster proxy server and the terminal device.
[0014] Optionally, in the embodiment, the apparatus further comprises: an obtaining unit, configured to obtain an access queue corresponding to the target server cluster in response to a third access request sent by the terminal device, wherein the access queue includes request information of the terminal device requesting to access the target server cluster, and the third access request is used to request to log in to the cloud computer platform client by using the target account; a sixth determining unit, configured to determine M transmission measurement results based on the first location in a case where a queue length of the access queue is greater than a length threshold, wherein the j th transmission measurement result is used to indicate a transmission measurement result between the terminal device at the first location and a j th cluster proxy server in the j cluster proxy servers; a seventh determining unit, configured to determine an updated first transmission measurement result satisfying the measurement condition from the M transmission measurement results; and a second notifying unit, configured to notify the terminal device to access the target cloud computer by using a first server managed by a cluster proxy server corresponding to the first transmission measurement result.
[0015] According to another aspect of the embodiments of the present application, an updating apparatus of a cloud computer is also provided, applied to a server side, comprising: a receiving unit configured to receive an updating request sent by a terminal device, the updating request being used to request updating of performance parameters of a target cloud computer logged in by a target cloud account; a obtaining unit configured to obtain historical operation data in a historical image file stored in a reference server cluster located at a third location; a generating unit configured to generate a candidate image file based on a target performance parameter set carried in the updating request; an importing unit configured to import the historical operation data into the candidate image file to obtain a target image file, and bind the target image file with the target cloud account; and a synchronizing unit configured to, in a case that an object server cluster satisfying an image synchronization condition is determined in a target server cluster group to which the reference server cluster belongs, synchronize the target image file stored in the reference server cluster to the object server cluster.
[0016] Optionally, in the embodiment, the apparatus further comprises a first determining unit configured to determine, as the object server cluster satisfying the image synchronization condition, a server cluster in the target server cluster group having an idle state as an access state.
[0017] Optionally, in the embodiment, the synchronizing unit comprises: a first synchronization module configured to create a backup image file corresponding to the target image file in the reference server cluster, and migrate the backup image file to the object server cluster; and a second synchronization module configured to migrate the target image file stored in the reference server cluster to the object server cluster.
[0018] According to another aspect of the embodiments of the present application, another updating apparatus of a cloud computer is also provided, applied to a terminal device, comprising: a display unit configured to display a configuration interface of a cloud computer platform client; an obtaining unit configured to, in response to an editing operation performed on a target cloud account displayed in the configuration interface, obtain a target performance parameter set of a target cloud computer logged in by the target cloud account; and a sending unit configured to send an updating request carrying the target performance parameter set to a cloud server, the cloud server being configured to update the target cloud computer by using historical operation data of the target cloud computer and the target performance parameter set.
[0019] According to still another aspect of the embodiments of the present application, a computer readable storage medium is also provided, the computer readable storage medium storing a computer program, the computer program being configured to execute the cloud computer access method and the cloud computer updating method when running.
[0020] According to still another aspect of the embodiments of the present application, a computer program product or computer program is provided, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to perform the access method of the cloud computer and the update method of the cloud computer.
[0021] According to still another aspect of the embodiments of the present application, an electronic device is also provided, which comprises a memory and a processor. The memory stores a computer program, and the processor is configured to execute the access method of the cloud computer and the update method of the cloud computer by using the computer program.
[0022] In the embodiments of the present application, in response to a first access request sent by a terminal device, a first location where the terminal device is currently located is determined, and a second location where the terminal device was located when performing a last operation in a cloud computer platform client is determined from historical operation data of the terminal device, wherein the first access request is used to request to log in to the cloud computer platform client in the terminal device by using a target account. Then, in a case where the first location is different from the second location, a target server cluster that satisfies an access condition is determined based on the first location, and the terminal device is notified to access a target cloud computer through the target server cluster based on the cloud computer platform client. Further, in response to a second access request sent by the terminal device, the target cloud computer is started by the target server cluster through a stored target image file, wherein the second access request is used to request to access the target cloud computer through the target server cluster, the target image file is synchronized to the target server cluster from a reference server cluster, the target image file is created in the reference server cluster, and the target server cluster is a server cluster that satisfies an image synchronization condition in a target server cluster group to which the reference server cluster belongs. In other words, by using the embodiments of the present application, in a case where a location of a user changes, a server cluster to be accessed is flexibly determined based on a new location of the user, and the cloud computer to be accessed by the user is run through the server cluster, so as to enable the user to access the cloud computer, thereby avoiding the technical problem of low access efficiency caused by fixedly accessing the same server cluster in the related art, and achieving the technical effects of improving the access efficiency of the cloud computer and improving the flexibility of cloud computer access. BRIEF DESCRIPTION OF DRAWINGS
[0023] The accompanying drawings, which are included to provide a further understanding of the present application and are incorporated in and constitute a part of this application, illustrate embodiments of the present application and serve to explain the present application. In the drawings:
[0024] Figure 1is a schematic diagram of an application environment of an optional cloud computer access method according to an embodiment of the application;
[0025] Figure 2 is a flowchart of an optional cloud computer access method according to an embodiment of the application;
[0026] Figure 3 is a flowchart of an optional cloud computer access method according to an embodiment of the application;
[0027] Figure 4 is a schematic diagram of another optional cloud computer access method according to an embodiment of the application;
[0028] Figure 5 is a schematic diagram of yet another optional cloud computer access method according to an embodiment of the application;
[0029] Figure 6 is a schematic diagram of yet another optional cloud computer access method according to an embodiment of the application;
[0030] Figure 7 is a schematic diagram of yet another optional cloud computer access method according to an embodiment of the application;
[0031] Figure 8 is a schematic diagram of yet another optional cloud computer access method according to an embodiment of the application;
[0032] Figure 9 is a schematic diagram of yet another optional cloud computer access method according to an embodiment of the application;
[0033] Figure 10 is a schematic diagram of yet another optional cloud computer access method according to an embodiment of the application;
[0034] Figure 11 is a schematic diagram of yet another optional cloud computer access method according to an embodiment of the application;
[0035] Figure 12 is a schematic diagram of an optional cloud computer access method according to an embodiment of the application;
[0036] Figure 13 is a structural schematic diagram of an optional cloud computer access device according to an embodiment of the application;
[0037] Figure 14 is a structural schematic diagram of an optional cloud computer update device according to an embodiment of the application;
[0038] Figure 15 is a structural schematic diagram of an optional electronic device according to an embodiment of the application.
[0039] Figure 16 This is a schematic diagram of the structure of another optional electronic device according to an embodiment of this application. Detailed Implementation
[0040] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0041] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0042] According to one aspect of the embodiments of this application, a method for accessing a cloud computer is provided. Optionally, as an optional implementation, the above-mentioned access to the cloud computer can be applied to, but is not limited to, methods such as... Figure 1 In the environment shown. For example... Figure 1 As shown, terminal device 102 includes a memory 104 for storing various data generated during its operation, a processor 106 for processing and calculating the aforementioned data, and a display 108. Terminal device 102 can interact with server 112 via network 110. Server 112 is connected to database 114, which stores various data. Terminal device 102 can run a cloud computing platform client.
[0043] Furthermore, the above method in Figure 1 The specific application process in the environment shown is as follows:
[0044] In step S102, terminal device 102 sends a first access request to server 112 via network 110, wherein the first access request is used to request to log in to the cloud computer platform client in the terminal device using the target account.
[0045] In step S104, server 112 responds to the first access request sent by the terminal device, determines the first location where the terminal device is currently located, and determines the second location where the terminal device was when it performed the last operation in the cloud computer platform client from the historical operation data of the terminal device.
[0046] In step S106, if the first position and the second position are different, the server 112 determines the target server cluster that meets the access conditions based on the first position.
[0047] In step S108, server 112 sends a prompt message to terminal device 102 via network 110, prompting the cloud computer platform client to access the target cloud computer through the target server cluster.
[0048] In step S110, terminal device 102 sends a second access request to server 112 through network 110, wherein the second access request is used to request access to the target cloud computer through the target server cluster.
[0049] In step S112, server 112 responds to the second access request sent by the terminal device and controls the target server cluster to start the target cloud computer through the stored target image file. The target image file is synchronized from the reference server cluster to the target server cluster. The target image file is created in the reference server cluster. The target server cluster is a server cluster in the target server cluster group to which the reference server cluster belongs that meets the image synchronization conditions.
[0050] In this embodiment, in response to a first access request sent by a terminal device, the current first location of the terminal device is determined, and the second location where the terminal device was when it performed the last operation in the cloud computing platform client is determined from the terminal device's historical operation data. The first access request is used to request login to the cloud computing platform client on the terminal device using a target account. Then, if the first and second locations differ, a target server cluster that meets the access conditions is determined based on the first location, and the terminal device is notified to access the target cloud computer through the target server cluster via the cloud computing platform client. Furthermore, in response to a second access request sent by the terminal device, the target server cluster is controlled to start the target cloud computer through a stored target image file. The second access request is used to request access to the target cloud computer through the target server cluster. The target image file is synchronized from a reference server cluster to the target server cluster, and the target image file is created within the reference server cluster. The target server cluster is a server cluster within the target server cluster group to which the reference server cluster belongs that meets the image synchronization conditions. In other words, by adopting the embodiments of this application, the server cluster to be accessed can be flexibly determined based on the user's new location when the user's location changes, and the cloud computer to be accessed by the user can be run through the server cluster, so that the user can access the cloud computer. This avoids the technical problem of low access efficiency caused by fixed access to the same server cluster in related technologies, and achieves the technical effect of improving the access efficiency and flexibility of cloud computers.
[0051] Optionally, in this embodiment, the terminal device can be a terminal device configured with a target client, which may include, but is not limited to, at least one of the following: mobile phone (such as Android phone, iOS phone, etc.), laptop computer, tablet computer, PDA, MID (Mobile Internet Devices), PAD, desktop computer, smart TV, etc. The target client may be a video client, instant messaging client, browser client, educational client, etc. The network may include, but is not limited to, wired network and wireless network, wherein the wired network includes: local area network, metropolitan area network and wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that enable wireless communication. The server may be a single server, a server cluster composed of multiple servers, or a cloud server. The above is only an example, and no limitation is made in this embodiment.
[0052] Alternatively, as an alternative solution, such as Figure 2 As shown, the methods for accessing the aforementioned cloud computer include:
[0053] S202, in response to the first access request sent by the terminal device, determine the first location where the terminal device is currently located, and determine the second location where the terminal device was when it performed the last operation in the cloud computer platform client from the historical operation data of the terminal device. The first access request is used to request to log in to the cloud computer platform client in the terminal device using the target account.
[0054] It should be noted that the above-mentioned methods for accessing cloud computers can be applied, but are not limited to, cloud computer access scenarios. Here, "cloud computer" refers to a virtualized computer service based on cloud computing technology. It allows users to access remote computing resources via the internet without the need for significant hardware investment and maintenance on local devices. The core advantages of cloud computers lie in their flexibility, scalability, and cost-effectiveness.
[0055] Optionally, in some embodiments, the aforementioned cloud computing platform client may be used, but is not limited to, to instruct a platform for managing cloud computers. Specifically, it may be used to create, remove, update, and maintain cloud computers for logged-in accounts. The aforementioned cloud computing platform client may manage cloud computers via a webpage or as an application; this embodiment does not impose any limitations on this.
[0056] S204, if the first position and the second position are different, determine the target server cluster that meets the access conditions based on the first position, and notify the terminal device to access the target cloud computer through the target server cluster based on the cloud computer platform client;
[0057] Optionally, the target server cluster that meets the access conditions, as determined above based on the first location, may include, but is not limited to:
[0058] The server cluster located at the first position in the target server cluster group is identified as the target server cluster that meets the access conditions; or, N transmission measurement results determined based on the first position are obtained, and the target transmission measurement result that meets the measurement conditions is determined from the N transmission measurement results, wherein the i-th transmission measurement result is used to indicate the transmission measurement result between the terminal device at the first position and the i-th cluster proxy server among the N cluster proxy servers, and each cluster proxy server stores the target image file in the server cluster it manages, i is greater than or equal to 1 and less than or equal to N, and N is a positive integer; the server cluster managed by the cluster proxy server corresponding to the target transmission measurement result is identified as the target server cluster that meets the access conditions.
[0059] In other words, in this embodiment, the server cluster in the first position can be directly identified as the target server cluster to start the target cloud computer, or the data transmission effect between each server cluster included in the target server cluster group and the terminal device can be measured based on the first position, and the server cluster with the best data transmission effect can be identified as the above-mentioned target server cluster. This embodiment does not limit this.
[0060] Optionally, in some embodiments, after the server notifies the terminal device to access the target cloud computer through the target server cluster based on the cloud computer platform client, the terminal device, upon detecting the access operation performed by the user to access the target computer, will send a second access request to the server to request access to the target cloud computer through the target server cluster.
[0061] S206, in response to the second access request sent by the terminal device, control the target server cluster to start the target cloud computer through the stored target image file. The second access request is used to request access to the target cloud computer through the target server cluster. The target image file is synchronized from the reference server cluster to the target server cluster. The target image file is created in the reference server cluster. The target server cluster is a server cluster in the target server cluster group to which the reference server cluster belongs that meets the image synchronization conditions.
[0062] It should be noted that, in this embodiment, the terminal device can access the target cloud computer through the target cloud account. The aforementioned target cloud account is a cloud account created by the user in the cloud computer platform client, which has a binding relationship with the target cloud computer and can be used to log in and uniquely identify the aforementioned target cloud computer.
[0063] Furthermore, the target image file includes files containing the virtual machine operating system, applications, configuration, and user data of the target cloud computer, used to run the target cloud computer. The target image file is backed up in each server cluster within the target server cluster group to facilitate the running of the target cloud computer on each server cluster. It should be noted that the server cluster here consists of multiple high-performance servers that collaborate to provide the computing resources, storage space, and network connectivity required to run the cloud computer.
[0064] It should be noted that, in some embodiments, the aforementioned target server cluster group may include, but is not limited to, multiple server clusters, which may be located in different regions and are uniformly managed by a cluster management server. Specifically, the cluster management server may include, but is not limited to, at least the following functions: assigning tasks to each server cluster in the target server cluster group to achieve load balancing and performance optimization; monitoring the status of each server cluster in the target server cluster group, including the usage of resources such as CPU, memory, disk, and network; and managing the configuration information of each server cluster in the target server cluster group, including operations such as adding, deleting, and updating resources.
[0065] Optionally, in some embodiments, before determining the current first location of the terminal device in response to the first access request sent by the terminal device, the following steps may be included, but are not limited to:
[0066] S1, receive the update request sent by the terminal device, determine the current third location of the terminal device, wherein the update request is used to request an update of the performance parameters of the target cloud computer logged in by the target cloud account;
[0067] S2, retrieve historical operation data from the historical image files stored in the reference server cluster located in the third position;
[0068] S3, generate candidate image files based on the set of target performance parameters carried in the update request;
[0069] S4. Import historical operation data into the candidate image file to obtain the target image file, and bind the target image file to the target cloud account;
[0070] S5, if an object server cluster that meets the mirror synchronization conditions is identified in the target server cluster group to which the reference server cluster belongs, the target image file stored in the reference server cluster is synchronized to the object server cluster.
[0071] It should be noted that the above synchronization conditions may be used, but are limited to, indicating that the current terminal access volume is less than the access volume threshold. The above object server cluster includes the above target server cluster. That is to say, the above target image file may be, but is not limited to, created in the reference server cluster and synchronized to the above target server cluster by the reference server cluster when the access volume of the above target server cluster is low.
[0072] Optionally, as an optional example, it may be based on, but is not limited to, such as Figure 3 The following steps illustrate the method for accessing the cloud computer described above:
[0073] In step S302, the terminal device 302 sends an update request to the server 304 to request an update of the performance parameters of the target cloud computer logged in by the target cloud account.
[0074] In step S304, server 304 determines the current third location of the terminal device and obtains historical operation data from the historical image file stored in the reference server cluster located at the third location.
[0075] In step S306, server 304 generates candidate image files based on the set of target performance parameters carried in the update request.
[0076] In step S308, server 304 imports historical operation data into the candidate image file to obtain the target image file, and binds the target image file to the target cloud account.
[0077] In step S310, if the server 304 determines a target server cluster that meets the mirror synchronization conditions in the target server cluster group to which the reference server cluster belongs, the server 304 will synchronize the target image file stored in the reference server cluster to the target server cluster.
[0078] In step S312, the terminal device 302 sends a first access request to the server 304, wherein the first access request is used to request to log in to the cloud computer platform client in the terminal device using the target account.
[0079] In step S314, server 304 responds to the first access request sent by the terminal device, determines the current first location of the terminal device, and determines the second location of the terminal device when it performed the last operation in the cloud computer platform client from the historical operation data of the terminal device.
[0080] In step S316, if the first position and the second position are different, the server 304 determines the target server cluster that meets the access conditions based on the first position.
[0081] In step S318, server 304 sends a prompt message to terminal device 302 to prompt the cloud computer platform client to access the target cloud computer through the target server cluster.
[0082] In step S320, terminal device 302 sends a second access request to server 304, wherein the second access request is used to request access to the target cloud computer through the target server cluster.
[0083] In step S322, server 304 responds to the second access request sent by the terminal device and controls the target server cluster to start the target cloud computer through the stored target image file. The target image file is synchronized from the reference server cluster to the target server cluster. The target image file is created in the reference server cluster. The target server cluster is a server cluster in the target server cluster group to which the reference server cluster belongs that meets the image synchronization conditions.
[0084] It should be noted that the above example is an optional example provided to facilitate the explanation of the above cloud computer access method, and there is no limitation on the specific implementation of the above cloud computer access method.
[0085] In this embodiment, in response to a first access request sent by a terminal device, the current first location of the terminal device is determined, and the second location where the terminal device was when it performed the last operation in the cloud computing platform client is determined from the terminal device's historical operation data. The first access request is used to request login to the cloud computing platform client on the terminal device using a target account. Then, if the first and second locations differ, a target server cluster that meets the access conditions is determined based on the first location, and the terminal device is notified to access the target cloud computer through the target server cluster via the cloud computing platform client. Furthermore, in response to a second access request sent by the terminal device, the target server cluster is controlled to start the target cloud computer through a stored target image file. The second access request is used to request access to the target cloud computer through the target server cluster. The target image file is synchronized from a reference server cluster to the target server cluster, and the target image file is created within the reference server cluster. The target server cluster is a server cluster within the target server cluster group to which the reference server cluster belongs that meets the image synchronization conditions. In other words, by adopting the embodiments of this application, the server cluster to be accessed can be flexibly determined based on the user's new location when the user's location changes, and the cloud computer to be accessed by the user can be run through the server cluster, so that the user can access the cloud computer. This avoids the technical problem of low access efficiency caused by fixed access to the same server cluster in related technologies, and achieves the technical effect of improving the access efficiency and flexibility of cloud computers.
[0086] Optionally, as an alternative approach, before controlling the target server cluster to boot the target cloud computer using the stored target image file, the following steps are also included:
[0087] S1, determine the length of the target access queue of the target server, wherein the target access queue includes request information of terminal devices that are requesting access to the target server cluster.
[0088] Optionally, in this implementation, the target access queue may include, but is not limited to, multiple access sub-queues, with different queuing times for each sub-queue. Furthermore, the cloud accounts associated with cloud computers corresponding to different performance configuration parameters have different levels, and request information corresponding to different cloud account levels will be added to different access sub-queues.
[0089] Furthermore, the aforementioned queuing access prompt information may include, but is not limited to, information such as the current queuing position and the corresponding access subqueue type. In this embodiment, no limitation is imposed on this.
[0090] For example, suppose the target access queue includes a normal access queue and a fast access queue, where the number of request messages in the fast access queue is less than the number of request messages in the normal access queue. Taking the access queue matched to the account level of the target cloud account as an example, after the notification terminal device displays the queuing access prompt information, the queuing access prompt information displayed by the terminal device may, but is not limited to, refer to... Figure 4 ,like Figure 4 As shown, the queuing prompt interface displays the corresponding access sub-queue type 402, the current sorting order of the terminal device in the queue 404, and a switching control 406 for switching to the fast access sub-queue.
[0091] It should be noted that the above example is an optional example provided to facilitate the explanation of the above cloud computer access method, and there is no limitation on the specific implementation of the above cloud computer access method.
[0092] S2, when the length of the target access queue reaches the queue length threshold, notify the terminal device to display a queue access prompt message.
[0093] In this embodiment, by monitoring the length of the target access queue, which includes request information from terminal devices requesting access to the target server cluster, and then notifying the terminal devices to display queuing access prompts when the length of the target access queue reaches a queuing length threshold, users can predict in a timely manner how long they will be able to use the target cloud computer based on the queuing access prompts displayed on the terminal devices. This helps reduce users' anxiety and uncertainty, thereby achieving the technical effect of improving user experience.
[0094] Optionally, as an alternative approach, before notifying the terminal device to display the queuing access prompt information, the following may also be included:
[0095] S1, determine the account level of the target cloud account used to log in to the target cloud computer.
[0096] S2, if the account level reaches the target level, determine the access subqueue with the shortest queuing time for the terminal device from the target access queue, which includes at least two access subqueues, and use it as the target access subqueue.
[0097] S3 adds the terminal device's request information to the target access sub-queue.
[0098] For example, suppose the target access queue includes a normal access queue and a fast access queue, wherein the number of request messages in the fast access queue is less than the number of request messages in the normal access queue. Taking the target access sub-queue matched with the account level of the target cloud account as the fast access queue as an example, after the notification terminal device displays the queuing access prompt information, the queuing access prompt information displayed by the terminal device may, but is not limited to, refer to... Figure 5 ,like Figure 5 As shown, the queuing prompt interface displays the corresponding access sub-queue type 502 and the current sorting order of the terminal device in the queue 504.
[0099] It should be noted that the above example is an optional example provided to facilitate the explanation of the above cloud computer access method, and there is no limitation on the specific implementation of the above cloud computer access method.
[0100] By adopting the embodiments of this application, since cloud accounts of different levels have different resource requirements and usage patterns for cloud computers, computing resources can be allocated more effectively by assigning them to different queues, ensuring that each user can obtain an appropriate level of service, thereby achieving the technical effect of reasonable allocation of cloud resources.
[0101] Alternatively, as an optional approach, the target server cluster that meets the access conditions, determined based on the first location, includes one of the following:
[0102] Method 1: Determine the server cluster that is in the first position in the target server cluster group as the target server cluster that meets the access conditions.
[0103] For example, suppose the terminal device was located at location D when it last accessed the target cloud computer, and the terminal device previously accessed the target cloud computer based on the server cluster set up at location D. However, this time, the terminal device is located at location E when logging into the cloud computer platform client, which is different from the previous location. If it still accesses the target cloud computer based on the server cluster set up at location D, the distance of data interaction will be relatively large, resulting in slower data transmission speed. Using the first method described above, given that the current location is location E, the server cluster set up at location E is designated as the server cluster to be used to access the target cloud computer. This ensures that the distance between the server cluster used to access the target cloud computer and the terminal device is closer, thereby improving the efficiency of accessing the target cloud computer.
[0104] Method 2: Obtain N transmission measurement results determined based on the first location, and determine the target transmission measurement result that meets the measurement conditions from the N transmission measurement results. The i-th transmission measurement result is used to indicate the transmission measurement result between the terminal device at the first location and the i-th cluster proxy server among the N cluster proxy servers. Each cluster proxy server manages a server cluster that stores the target image file. i is greater than or equal to 1 and less than or equal to N, where N is a positive integer. The server cluster managed by the cluster proxy server corresponding to the target transmission measurement result is determined as the target server cluster that meets the access conditions.
[0105] For example, suppose the terminal device was located at location D when it last accessed the target cloud computer, and the terminal device also accessed the target cloud computer from the server cluster set up at location D. However, this time, the terminal device is located at location E when logging into the cloud computer platform client, which is different from the previous location. If it still accesses the target cloud computer from the server cluster set up at location D, the distance of data interaction will be relatively large, resulting in slower data transmission speed. Using the second method described above, when the current location is determined to be location E, the transmission measurement results between the cluster proxy servers corresponding to the terminal device's server cluster at location E are obtained to determine the proxy cluster server with the best data transmission effect with the terminal device. The server cluster managed by the proxy cluster server is then determined as the server cluster to be used to access the target cloud computer, thereby achieving faster access to the target cloud computer.
[0106] It should be noted that obtaining the N transmission measurement results determined based on the first location may include, but is not limited to: determining a first location area based on the first location; and obtaining N transmission measurement results between N cluster proxy servers and terminal devices located in the first location area. Specifically, the first location area here can be determined with the aforementioned first location as the center. For example, such as... Figure 6 In (a) the aforementioned first position region can be a circular region 604 defined with the aforementioned first position 602-1 as the center and a predetermined distance as the radius. For example... Figure 6 In (b), the aforementioned first position area can also be a rectangular area 606 centered on the first position 602-2, with a height of a first predetermined distance and a width of a second predetermined distance. It should be noted that the aforementioned first position area can also be a position area of other shapes, and can be flexibly selected according to needs in practical applications. In this embodiment, no limitation is made in this regard.
[0107] It should be noted that all of the aforementioned N cluster proxy servers belong to the aforementioned target server cluster group. These N cluster proxy servers act as intermediary servers between the aforementioned N server clusters and the terminal devices, responsible for data transmission between the terminal devices and the server clusters.
[0108] For example, suppose the cluster proxy server group includes cluster proxy server A located in region A, cluster proxy server B located in region B, and cluster proxy server C located in region C. Then, cluster proxy server A can be used to enable communication between terminal devices and server clusters in region A, cluster proxy server B can be used to enable communication between terminal devices and server clusters in region B, and cluster proxy server C can be used to enable communication between terminal devices and server clusters in region C.
[0109] It should be noted that the above example is an optional example provided to facilitate the explanation of the above cloud computer access method, and there is no limitation on the specific implementation of the above cloud computer access method.
[0110] Optionally, in this embodiment, the above transmission measurement results may be, but are not limited to, the data transmission speed between the corresponding cluster proxy server and the terminal device, or the terminal access volume of the corresponding cluster proxy server, or the data transmission bandwidth of the corresponding cluster proxy server, or other data measurement results used to measure the access quality of the terminal device accessing the cluster proxy server. In the above embodiment, no limitation is made on this.
[0111] It should be noted that the above access conditions are related to the content indicated by the N transmission measurement results. Specifically, when the above N transmission measurement results are used to indicate the data transmission speed, the above access conditions are used to indicate the data transmission speed conditions; when the above N transmission measurement results are used to indicate the data transmission bandwidth, the above access conditions are used to indicate the data transmission bandwidth conditions; when the above N transmission measurement results are used to indicate the terminal access volume, the above access conditions are used to indicate the terminal access volume conditions.
[0112] Furthermore, the data transmission speed condition here is used to indicate the fastest data transmission speed; the terminal access volume condition here is used to indicate the least terminal access volume; and the data transmission bandwidth condition here is used to indicate the maximum data transmission bandwidth.
[0113] Specifically, determining the target transmission measurement result that meets the access conditions from the N transmission measurement results may include, but is not limited to, one of the following: sorting the data transmission speeds indicated by each of the N transmission measurement results; determining the transmission measurement result corresponding to the maximum data transmission speed in the sorted results as the target transmission measurement result that meets the measurement conditions; sorting the terminal access volume indicated by each of the N transmission measurement results; determining the transmission measurement result corresponding to the minimum terminal access volume in the sorted results as the target transmission measurement result that meets the measurement conditions; sorting the data transmission bandwidth indicated by each of the N transmission measurement results; determining the transmission measurement result corresponding to the maximum data transmission bandwidth in the sorted results as the target transmission measurement result that meets the measurement conditions, wherein the data transmission bandwidth indicated by the i-th transmission measurement result among the N transmission measurement results is used to characterize the bandwidth of the data transmission channel between the i-th cluster proxy server and the terminal device.
[0114] To give another example, suppose the aforementioned N cluster proxy servers include cluster proxy server 1 for managing server cluster 1, cluster proxy server 2 for managing server cluster 2, cluster proxy server 3 for managing server cluster 3, and so on, with cluster proxy server N managing server cluster N. The relationship between the terminal device, the cluster proxy servers, and the server clusters can be found by referring to... Figure 7 Among them, such as Figure 7 As shown, the terminal device can access server cluster 1 through cluster proxy server 1, server cluster 2 through cluster proxy server 2, server cluster 3 through cluster proxy server 3, and so on. This will not be elaborated further in this example.
[0115] It should be noted that the above example is an optional example provided to facilitate the explanation of the above cloud computer access method, and there is no limitation on the specific implementation of the above cloud computer access method.
[0116] In this embodiment of the application, the server cluster configured at the current location of the terminal device is determined as the target server cluster to run the target cloud computer. Since the physical distance between the terminal device and the target server cluster is relatively short, the latency of the terminal device when interacting with the target cloud computer through the target server cluster is lower and the data transmission speed is faster, thereby achieving the technical effect of improving the efficiency of accessing the cloud computer.
[0117] Furthermore, in this embodiment of the application, the above-mentioned method two is adopted, and the server cluster corresponding to the target transmission measurement result that meets the measurement conditions among the N transmission measurement results determined based on the first position is determined as the target server cluster used to run the target cloud computer. In other words, the above-mentioned method two is adopted, and the server cluster with the best data transmission effect among the terminal device and each server cluster is determined as the above-mentioned target server cluster, thereby ensuring the data transmission speed and data transmission stability when the terminal device interacts with the target cloud computer through the target server cluster, thereby achieving the technical effect of improving the efficiency and stability of accessing the cloud computer.
[0118] Optionally, as an alternative approach, the target transmission measurement result that satisfies the measurement conditions among the N transmission measurement results includes one of the following:
[0119] Method 1: Sort the data transmission speeds indicated by each of the N transmission measurement results; determine the transmission measurement result corresponding to the maximum data transmission speed in the sorted results as the target transmission measurement result that meets the measurement conditions.
[0120] It should be noted that, in some embodiments, when the transmission measurement results are used to indicate the data transmission speed, the above N transmission measurement results may be determined based on, but are not limited to, one of the following:
[0121] The terminal devices are notified to send the same test data to each of the N cluster proxy servers, and the transmission speed value of the test data between the terminal data and each of the N cluster proxy servers is determined. The N transmission speed values corresponding to the N cluster proxy servers are then defined as the N transmission measurement results. Alternatively, the terminal devices are notified to send the same test data to each of the N cluster proxy servers, and the transmission time of the test data between the terminal data and each of the N cluster proxy servers is determined. The reciprocal of the transmission time is then calculated, and the N cluster proxy servers are defined as the N transmission measurement results. The reciprocals of the N transmission times corresponding to the proxy server are used to determine the aforementioned N transmission measurement results; or, if the aforementioned terminal device accesses the aforementioned N cluster proxy servers, its position in the access queue of the aforementioned N cluster proxy servers is determined, and the reciprocal of the aforementioned position is obtained, and the reciprocals of the N positions corresponding to the aforementioned N cluster proxy servers are used to determine the aforementioned N transmission measurement results; or, the length of the access queue corresponding to each of the aforementioned N cluster proxy servers is determined, and the reciprocal of the queue length is obtained, and the reciprocals of the N queue lengths corresponding to the aforementioned N cluster proxy servers are used to determine the aforementioned N transmission measurement results.
[0122] Method 2: Sort the terminal access volume indicated by each of the N transmission measurement results; determine the transmission measurement result corresponding to the minimum value of terminal access volume in the sorted results as the target transmission measurement result that meets the measurement conditions.
[0123] It should be noted that the terminal access volume indicated by the i-th transmission measurement result among the above N transmission measurement results is used to characterize the number of terminal devices accessing the i-th cluster proxy server.
[0124] Method 3: Sort the data transmission bandwidth indicated by each of the N transmission measurement results; determine the transmission measurement result corresponding to the maximum value of the data transmission bandwidth in the sorted results as the target transmission measurement result that meets the measurement conditions. Among the N transmission measurement results, the data transmission bandwidth indicated by the i-th transmission measurement result is used to characterize the bandwidth of the data transmission channel between the i-th cluster agent server and the terminal device.
[0125] In this embodiment of the application, the above-mentioned method one is adopted: the server cluster with the fastest transmission speed between the terminal device is determined as the server cluster to be accessed, which can reduce the latency in the data transmission process, thereby achieving the technical effect of improving the access efficiency of cloud computers and improving the user experience.
[0126] Using the second method described above: the server cluster with the lowest data access volume is identified as the server cluster to be accessed. Selecting the server cluster with the lowest access volume can achieve more effective load balancing, so as to avoid the situation where some servers are overloaded while other servers are idle.
[0127] Method 3 above: The server cluster with the largest data transmission bandwidth is identified as the server cluster to be accessed. High-bandwidth server clusters usually have better hardware and network facilities, thereby improving the access reliability and stability of cloud computers.
[0128] Optionally, as an optional solution, after starting the target cloud computer via the target image file stored in the target server cluster in response to the second access request sent by the terminal device, the following steps are also included:
[0129] S1, in response to the third access request sent by the terminal device, obtain the access queue corresponding to the target server cluster. The access queue includes the request information of the terminal device that is requesting access to the target server cluster. The third access request is used to request to log in to the cloud computer platform client using the target account.
[0130] In some embodiments, if the service resources of the target server cluster are insufficient to run the cloud computer that the new terminal device wants to access, the access requests of these new terminal devices will be stored in the access queue of the target cluster proxy server, so that the terminal device corresponding to the request information in the access queue can access the target server cluster after the service resources of the target server cluster are released.
[0131] S2, when the queue length of the access queue is greater than the length threshold, M transmission measurement results are determined based on the first position, wherein the j-th transmission measurement result is used to indicate the transmission measurement result between the terminal device at the first position and the j-th cluster proxy server among the j cluster proxy servers.
[0132] In some embodiments, the queue length of the access queue may be used, but is not limited to, to indicate the number of request messages included in the access queue; this embodiment does not impose any limitation on this.
[0133] It should be noted that the above determination of M transmission measurement results based on the first location may include, but is not limited to: determining a second location area based on the first location; and obtaining M transmission measurement results between M cluster proxy servers and terminal devices located in the second location area.
[0134] Optionally, each of the M transmission measurement results mentioned above may, but is not limited to, indicating the data transmission speed between the corresponding cluster proxy server and the terminal device, or the terminal access volume of the corresponding cluster proxy server, or the data transmission bandwidth of the corresponding cluster proxy server, or other data measurement results used to measure the access quality of the terminal device accessing the cluster proxy server. In the above embodiments, no limitations are imposed on this. It should be noted that all M cluster proxy servers mentioned above belong to the aforementioned target server cluster group.
[0135] It should be noted that the above access conditions are related to the content indicated by the M transmission measurement results. Specifically, when the above M transmission measurement results are used to indicate the data transmission speed, the above access conditions are used to indicate the data transmission speed conditions; when the above M transmission measurement results are used to indicate the data transmission bandwidth, the above access conditions are used to indicate the data transmission bandwidth conditions; and when the above M transmission measurement results are used to indicate the terminal access volume, the above access conditions are used to indicate the terminal access volume conditions.
[0136] Furthermore, the data transmission speed condition here is used to indicate the fastest data transmission speed; the data transmission distance here is used to indicate the shortest data transmission distance; the terminal access volume condition here is used to indicate the least terminal access volume; and the data transmission bandwidth condition here is used to indicate the maximum data transmission bandwidth.
[0137] Specifically, determining the target transmission measurement result that meets the access conditions from the M transmission measurement results may include, but is not limited to, one of the following: sorting the data transmission speeds indicated by each of the M transmission measurement results; determining the transmission measurement result corresponding to the maximum data transmission speed in the sorted results as the target transmission measurement result that meets the measurement conditions; sorting the terminal access volume indicated by each of the M transmission measurement results; determining the transmission measurement result corresponding to the minimum terminal access volume in the sorted results as the target transmission measurement result that meets the measurement conditions; sorting the data transmission bandwidth indicated by each of the M transmission measurement results; determining the transmission measurement result corresponding to the maximum data transmission bandwidth in the sorted results as the target transmission measurement result that meets the measurement conditions, wherein the data transmission bandwidth indicated by the j-th transmission measurement result among the M transmission measurement results is used to characterize the bandwidth of the data transmission channel between the j-th cluster proxy server and the terminal device.
[0138] S3, determine the updated first transmission measurement result that meets the measurement conditions from M transmission measurement results.
[0139] S4, notify the terminal device to join the cluster through the first server managed by the cluster proxy server corresponding to the first transmission measurement result, in order to access the target cloud computer.
[0140] In the embodiments of this application, when the access queue of the reference cluster proxy server previously accessed by the terminal device is too congested, the terminal device is switched to the target server cluster to be accessed based on its current location. This allows the terminal device to efficiently interact with the target cloud computer through the target server cluster, thereby improving the access efficiency of the cloud computer.
[0141] Alternatively, as an optional solution, the above-mentioned cloud computer update method includes:
[0142] S1, receive the update request sent by the terminal device, determine the current third location of the terminal device, wherein the update request is used to request an update of the performance parameters of the target cloud computer logged in by the target cloud account.
[0143] S2, retrieve historical operation data from the historical image files stored in the reference server cluster located in the third position.
[0144] Optionally, the aforementioned historical operation data may, but is not limited to, be used to indicate all user operation data performed by the terminal device on the target cloud computer. The aforementioned historical operation data may include, but is not limited to: System logs: recording all operations performed by the user on the cloud computer, including startup, shutdown, restart, etc.; Application logs: specific applications may record user operations, such as file access, editing, saving, etc.; Configuration changes: configuration changes made by the user to the cloud computer or its internal applications, such as network settings, security settings, etc.; File operations: records of files created, modified, deleted, or moved by the user on the cloud computer; Network activity: records of network connections and data transmissions performed by the user on the cloud computer, including websites accessed, data sent and received, etc.; System performance data: performance indicators of the cloud computer during user operations, such as CPU utilization, memory usage, disk I / O, etc.; Screenshots or recordings: some software may record the user's screen activities on the cloud computer; User input: text entered by the user on the cloud computer, including command line input, text box input in applications, etc.; Permissions and access control: records of user permission changes and access control on the cloud computer; Use of plugins and extensions: records of users installing, updating, or uninstalling cloud computer plugins and extensions; Error and exception logs: records of any errors or exceptions encountered during user operations, etc., and this embodiment does not impose any limitations on these.
[0145] S3 generates candidate image files based on the set of target performance parameters carried in the update request.
[0146] S4 imports historical operation data into the candidate image file to obtain the target image file, and binds the target image file to the target cloud account.
[0147] Optionally, in this embodiment, historical operation data can be imported into the candidate image file in, but is not limited to, the following ways:
[0148] Data processing: Classify and organize the collected historical operational data to ensure a clear data structure, clean up useless or duplicate data, and optimize data storage;
[0149] Data import: Copy the organized data to the file system of the target image file. This can be done by mounting the image file to the host machine's file system; or by using a script or manually copying the data to the appropriate directory of the target image file.
[0150] Configuration file synchronization: For configuration files that need to be synchronized, ensure that they are in the appropriate locations in the target image file;
[0151] Adjust system settings to ensure that users' historical operation data can be correctly identified and used;
[0152] Verify the data: Start the virtual machine and check if the data has been imported correctly; test the application and system functions to ensure the availability and consistency of the data.
[0153] S5, if an object server cluster that meets the mirror synchronization conditions is identified in the target server cluster group to which the reference server cluster belongs, the target image file stored in the reference server cluster is synchronized to the object server cluster.
[0154] It should be noted that the aforementioned object server cluster may include, but is not limited to, the aforementioned target server cluster.
[0155] In some embodiments, synchronizing the target image file stored in the reference server cluster to the object server cluster may include, but is not limited to: creating a backup image file corresponding to the target image file in the reference server cluster and migrating the backup image file to the object server cluster; or migrating the target image file stored in the reference server cluster to the object server cluster.
[0156] In this embodiment, an update request sent by a terminal device is received, and the current third location of the terminal device is determined. The update request requests an update to the performance parameters of the target cloud computer logged into by the target cloud account. Then, historical operation data from historical image files stored in the reference server cluster located at the third location is obtained. Next, candidate image files are generated based on the target performance parameter set carried in the update request. The historical operation data is then imported into the candidate image files to obtain the target image file, which is then bound to the target cloud account. Finally, if an object server cluster meeting the image synchronization conditions is identified within the target server cluster group to which the reference server cluster belongs, the target image file stored in the reference server cluster is synchronized to the object server cluster. In other words, by adopting the embodiments of this application, when receiving an update request sent by a terminal device, the configuration parameters of the target cloud computer are updated based on the user's historical operation data of the target cloud computer and the set of target performance parameters carried in the update request. This achieves the goal of flexibly updating the cloud computer based on the configuration parameters selected by the user, thereby improving the technical effect of increasing the flexibility of cloud computer updates. It avoids the technical problem in related technologies where users can only select the performance parameters of the cloud computer when requesting the creation of the cloud computer, and cannot update the performance parameters of the already created cloud computer. Furthermore, in the embodiments of this application, the image file of the target cloud computer is updated in the reference server cluster to obtain a target image file carrying user historical operation data and corresponding performance parameters that are updated. By synchronizing the target image file to the object server clusters in the target server cluster group that meet the image synchronization conditions, the data consistency on each server cluster is ensured. This allows the terminal device to flexibly switch to other general server clusters to access the cloud computer if the access effect of accessing the target cloud computer corresponding to the target image file through the reference server cluster is not good. This achieves the technical effects of improving the access efficiency of the cloud computer, improving the access flexibility of the cloud computer, and improving the user experience.
[0157] Optionally, as an alternative solution, after importing historical operation data into the candidate image file to obtain the target image file, and binding the target image file to the target cloud account, the solution further includes:
[0158] The server clusters in the target server cluster group that are in an idle state are identified as the object server clusters that meet the mirror synchronization conditions.
[0159] Optionally, the access status described above can be determined based on, but is not limited to, the number of terminal accesses in the server cluster, or it can be determined based on time. In this embodiment, no limitation is made in this regard.
[0160] For example, if the access status of a server cluster is determined based on the number of terminal accesses, then the access status of the server cluster can be determined to be idle if the number of terminal accesses is less than a certain threshold. If the access status of a server cluster is determined based on time, then the access status of the server cluster can be determined to be idle if the current time is within the target time period (e.g., the current time is nighttime).
[0161] In this embodiment, server clusters in the target server cluster group that are in an idle state are identified as object server clusters that meet the mirror synchronization conditions, and then the target image file is synchronized to the object server clusters. In other words, by using this embodiment, data synchronization can be performed when the server cluster is idle, avoiding synchronization operations under high load, thereby reducing the impact on system performance and achieving load balancing.
[0162] Optionally, as an alternative approach, synchronizing the target image file stored in the reference server cluster to the object server cluster that meets the image synchronization conditions includes:
[0163] Create a backup image file corresponding to the target image file in the reference server cluster, and migrate the backup image file to the object server cluster; or migrate the target image file stored in the reference server cluster to the object server cluster.
[0164] It should be noted that, on the one hand, the method of synchronizing image files by migrating backup image files to the object server cluster retains the image files stored in the reference server cluster while migrating them to the object server cluster, so that the terminal devices can access the target cloud computer based on the reference server cluster the next time. On the other hand, the method of synchronizing image files by migrating the image files stored in the reference server cluster to the object server cluster removes the image files from the reference server cluster while migrating them to the object server cluster, reducing the storage burden on the reference server cluster and freeing up storage resources.
[0165] In this embodiment, a backup image file corresponding to the target image file is created in the reference server cluster, and the target backup image file is migrated to the object server cluster; or the target image file stored in the reference server cluster is migrated to the object server cluster. In other words, by employing this embodiment, multiple synchronization methods are used to synchronize the image file from the reference server cluster to the object server cluster, improving the flexibility of image file synchronization.
[0166] Optionally, as an optional solution, before receiving the update request sent by the terminal device and obtaining the historical operation data from the historical image file stored in the reference server cluster, the following steps are also included:
[0167] S1, the terminal device displays the configuration interface of the cloud computer platform client.
[0168] Optionally, in this embodiment, the configuration interface may display, but is not limited to, an automatic recommendation control for selecting system-recommended performance configuration parameters and a manual editing control for selecting manually edited performance configuration parameters.
[0169] S2, in response to the editing operation performed on the target cloud account displayed in the configuration interface, the terminal device obtains the target performance parameter set of the target cloud computer logged in using the target cloud account.
[0170] Furthermore, when the aforementioned automatic recommendation control is selected, the terminal device will display at least one performance level configuration option in the configuration interface. Different performance levels correspond to different performance parameters and have different pricing standards. Cloud computers created based on higher performance parameters will have better service resources, such as more memory, stronger processor capabilities, and greater network bandwidth. This embodiment does not impose any limitations on this. Correspondingly, the pricing standard for cloud computers created by selecting higher performance parameters will also be higher. It should be noted that users can also choose to edit the parameters in the system-recommended configuration options; this is not limited in this embodiment.
[0171] Furthermore, when the aforementioned manual editing control is selected, the terminal device will display a performance parameter editing box in the configuration interface, allowing users to edit the required performance parameters within the editing boxes corresponding to different types of performance parameters.
[0172] S3, the terminal device sends an update request carrying the target performance parameter set to the cloud server, whereby the cloud server uses the target cloud computer's historical operation data and the target performance parameter set to update the target cloud computer.
[0173] As an optional embodiment, taking the above-described editing operation as an example to indicate the selection of the system's recommended configuration option, it can be based on, but is not limited to, such as... Figure 8 The following example illustrates the steps described above:
[0174] like Figure 8 As shown in (a), in response to a touch operation on the auto-update control 802 associated with cloud account A displayed in the configuration interface of the cloud computing platform client, as... Figure 8As shown in (b), the configuration options for performance configuration level 1, performance configuration level 2, and performance configuration level 3 are displayed.
[0175] Next, with the performance configuration level 1 option selected, such as Figure 8 As shown in (c), the detailed performance parameters 804 corresponding to the above performance configuration level 1 are displayed, as well as the update control 806.
[0176] Then, with update control 806 selected, it is determined that the target performance parameter set will be determined using the performance parameters indicated in performance configuration level 1, such as... Figure 8 The update loading interface is displayed in section (d), which also includes a progress bar to indicate the update progress. The target performance parameters are then sent to the cloud server so that the cloud server can update the target cloud computing based on these parameters.
[0177] Then, after the update is complete, as follows: Figure 8 As shown in (e), a message is displayed to indicate that the update is complete.
[0178] As another optional embodiment, taking the above-described editing operation as an example to indicate the selection of the manual editing performance option, it can be based on, but is not limited to, the following: Figure 9 The following example illustrates the steps described above:
[0179] like Figure 9 As shown in (a), in response to a touch operation on a custom control 902 associated with cloud account A for manually editing parameters displayed in the configuration interface of the cloud computing platform client, such as... Figure 9 As shown in (b), the performance parameter interface displays the edit boxes corresponding to each performance parameter and the confirm update control 904.
[0180] Next, in response to editing operations on the edit boxes corresponding to each performance parameter, the performance parameter values obtained based on the editing operations are acquired. Then, in response to the determination that update control 904 is selected, the target performance parameter set is determined using the performance parameter values obtained based on the editing operations, such as... Figure 9 (c) Displays the update loading interface, which also shows a progress bar to indicate the update progress. The target performance parameters are then sent to the cloud server so that the cloud server can update the target cloud computer based on these parameters.
[0181] Then, after the update is complete, as follows: Figure 9 As shown in (d), a message is displayed to indicate that the update is complete.
[0182] It should be noted that the above example is an optional example provided to facilitate the explanation of the cloud computer update method, and there is no limitation on the specific implementation of the cloud computer update method.
[0183] Optionally, in this embodiment, the cloud computer creation interface may display, but is not limited to, an automatic recommendation control for selecting system-recommended performance configuration parameters and a custom control for selecting manually edited performance configuration parameters.
[0184] Furthermore, when the aforementioned automatic recommendation control is selected, the terminal device will display configuration options for at least one performance level in the cloud computer creation interface. Furthermore, when the aforementioned custom control is selected, the terminal device will display performance parameter edit boxes in the cloud computer creation interface, allowing users to edit the required performance parameters within the edit boxes corresponding to different types of performance parameters.
[0185] As an optional embodiment, taking the above-described editing operation as an example to indicate the selection of the system's recommended configuration option, it can be based on, but is not limited to, such as... Figure 10 The following example illustrates the steps described above:
[0186] like Figure 10 As shown in (a), in response to a touch operation on the automatically created control 1002 displayed in the cloud computer creation interface of the cloud computer platform client, as follows: Figure 10 As shown in (b), the configuration options for performance configuration level 1, performance configuration level 2, and performance configuration level 3 are displayed.
[0187] Next, with the performance configuration level 1 option selected, such as Figure 10 As shown in (c), the detailed performance parameters 1004 corresponding to the above performance configuration level 1 are displayed, and the control creation is confirmed 1006.
[0188] Then, with control 1006 selected, it is determined that the initial set of performance parameters will be determined using the performance parameters indicated in performance configuration level 1, such as... Figure 10 As shown in (d), the creation loading interface is displayed, which also includes a progress bar to indicate the creation progress. The initial performance parameters are then sent to the cloud server so that the cloud server can create the target cloud computer based on these initial performance parameters.
[0189] Next, after creation is complete, as follows Figure 10 As shown in (e), a message indicating that creation is complete is displayed.
[0190] As another optional embodiment, taking the above-described editing operation as an example to indicate the selection of the manual editing performance option, it can be based on, but is not limited to, the following: Figure 11 The following example illustrates the steps described above:
[0191] like Figure 11 As shown in (a), in response to a touch operation on the custom control 1102 displayed in the cloud computer creation interface of the cloud computer platform client, such as Figure 11 As shown in (b), the edit boxes corresponding to each performance parameter and the control 1104 for confirming creation are displayed.
[0192] Next, in response to editing operations on the edit boxes corresponding to each performance parameter, the performance parameter values obtained based on the editing operations are acquired. Furthermore, in response to the determination that the creation control 1104 is selected, an initial set of performance parameters is determined using the performance parameter values obtained based on the editing operations, such as... Figure 11 (c) displays the creation loading interface, which also shows a progress bar to indicate the creation progress. The initial performance parameters are then sent to the cloud server so that the cloud server can create the target cloud computer based on these initial performance parameters.
[0193] Next, after creation is complete, as follows Figure 11 As shown in (d), a message is displayed to indicate that the creation is complete.
[0194] It should be noted that the above example is an optional example provided to facilitate the explanation of the cloud computer update method, and there is no limitation on the specific implementation of the cloud computer update method.
[0195] Optionally, in some embodiments, after the terminal device sends an update request carrying the target performance parameter set to the cloud server, the method further includes:
[0196] S1, the cloud server receives the update request sent by the terminal device and determines the current third location of the terminal device. The update request is used to request an update on the performance parameters of the target cloud computer logged in by the target cloud account.
[0197] S2, the cloud server retrieves historical operation data from the historical image files stored in the reference server cluster located in the third position;
[0198] S3, the cloud server generates candidate image files based on the set of target performance parameters carried in the update request;
[0199] S4, the cloud server imports historical operation data into the candidate image file to obtain the target image file, and binds the target image file to the target cloud account;
[0200] S5: When the cloud server determines an object server cluster that meets the mirror synchronization conditions within the target server cluster group to which the reference server cluster belongs, it will synchronize the target image file stored in the reference server cluster to the object server cluster.
[0201] It should be noted that the aforementioned cloud server may, but is not limited to, be used to instruct the cluster management server for monitoring the individual server clusters in the aforementioned target server cluster group.
[0202] It should be further explained that after the cloud server receives the initial performance parameter set used to create the target cloud computer, it will use the initial performance parameter set to create an initial image file in the server cluster closest to the current terminal device's location, and bind this initial image to the cloud account assigned to the target cloud computer. Then, the initial image file will be synchronized to all server clusters in the server cluster group to which this server cluster belongs.
[0203] By employing the embodiments of this application, and utilizing the set of target performance parameters edited by the user in the configuration interface of the cloud computing platform client to request an update of the target cloud computing computer, the purpose of efficiently updating the cloud computing computer based on the configuration parameters selected by the user is achieved, thereby meeting the user's configuration requirements for the cloud computing computer and improving the update flexibility of the cloud computing computer.
[0204] Alternatively, as an alternative implementation, reference may be made to, but is not limited to, [examples omitted]. Figure 12 The following steps provide a complete example and explanation of the above-mentioned method for accessing the cloud computer:
[0205] In step S1202, in response to the registration operation of registering a cloud account and the configuration operation of the initial performance configuration parameters of the cloud account, the terminal device 1202 obtains the set of initial performance parameters of the cloud computer corresponding to the cloud account that the user edits or selects.
[0206] In step S1204, the terminal device 1202 sends the initial performance parameter set to the cloud server 1204.
[0207] In step S1206, cloud server 1204 generates an initial image file for running the target cloud computer based on the initial performance parameter set, stores the initial image file in the database of the initial server cluster, and binds the cloud account to the initial image file.
[0208] In step S1208, cloud server 1204 synchronizes the initial image file stored in the initial server cluster to all server clusters in the server cluster group where the initial server cluster is located during the nighttime period.
[0209] In step S1210, in response to the update operation on the target cloud computer and the configuration operation on the update performance configuration parameters of the cloud account, the terminal device 1202 obtains the set of target performance parameters edited or selected by the user for updating the target cloud computer.
[0210] In step S1212, the terminal device 1202 sends the target performance parameter set to the cloud server 1204.
[0211] In step S1214, cloud server 1204 obtains an updated image file for the target cloud computer based on the initial performance parameter set and historical operation data in the initial image file, stores the image file in the database of the initial server cluster, and unbinds the cloud account from the initial image file, and binds the cloud account to the updated image file.
[0212] In step S1216, cloud server 1204 synchronizes the updated image file stored in the initial server cluster to all server clusters in the server cluster group where the initial server cluster is located during the nighttime period.
[0213] In step S1218, in response to the access operation of the cloud computer platform client, the terminal device 1202 sends access request information to the cloud server 1204.
[0214] In step S1220, if the cloud server 1204 determines that the first location of the terminal device is different from the historical location of the terminal device, it determines to select a new server cluster to run the target cloud computer; or, if it determines that the access queue of the initial server cluster is relatively congested, it determines to select a new server cluster to run the target cloud computer.
[0215] In step S1222, the cloud server 1204 determines the server cluster located in the first position, or the server cluster with the fastest transmission speed to the terminal device, as the target server cluster.
[0216] In step S1224, the cloud server 1204 sends a prompt message to the terminal device 1202, indicating that the target cloud computer is accessed through the target server cluster.
[0217] In step S1226, in response to the access operation to the target cloud computer, the terminal device 1202 sends a request message to the cloud server 1204 to request the startup of the target cloud computer.
[0218] In step S1228, cloud server 1204 retrieves the updated image file from the target server cluster, loads it, and starts it.
[0219] In step S1230, the cloud server 1204 sends a request to the terminal device 1202 to request the creation of a network connection.
[0220] In step S1232, the terminal device 1202 accepts the above request information and displays the desktop of the target cloud computer.
[0221] Optionally, after the terminal device displays the desktop of the target cloud computer, the screen can be operated through the cloud computer platform client. The cloud computer platform client detects all user operations and sends the operation instructions to the target server cluster in a predefined format to analyze the location of the user's touch events on the screen and execute the corresponding response operation on the target cloud computer. For example, if the user clicks the "My Computer" icon on the cloud computer desktop, the target cloud computer will respond by opening the computer folder.
[0222] As can be seen from the above example, by adopting this example, on the one hand, by flexibly determining the server cluster to be accessed based on the user's new location when the user's location changes, and running the cloud computer that the user wants to access through this server cluster, the technical problem of low access efficiency caused by fixed access to the same server cluster in related technologies is avoided, thereby achieving the technical effect of improving the access efficiency and flexibility of cloud computers. On the other hand, by determining the server cluster corresponding to the target transmission measurement results that meet the measurement conditions in the transmission measurement results determined based on the first location as the target server cluster for running the target cloud computer, in other words, the server cluster with the best data transmission effect among the various server clusters is determined as the target server cluster, thereby ensuring the data transmission speed and stability when the terminal device interacts with the target cloud computer through the target server cluster, thus achieving the technical effect of improving the efficiency and stability of accessing the cloud computer. On the other hand, when the access queue of the reference cluster proxy server previously accessed by the terminal device becomes too congested, switching the target server cluster to be accessed by the terminal device based on its current location allows the terminal device to efficiently interact with the target cloud computer through the target server cluster, thereby improving the access efficiency of the cloud computer. Furthermore, by utilizing the set of target performance parameters edited by the user in the cloud computer platform client's configuration interface to request updates to the target cloud computer, the goal of efficiently updating the cloud computer based on the user-selected configuration parameters is achieved, thus meeting the user's configuration needs for the cloud computer and improving the update flexibility of the cloud computer. By updating the configuration parameters of the target cloud computer based on the user's historical operation data and the set of target performance parameters carried in the update request when receiving an update request from the terminal device, the goal of flexibly updating the cloud computer based on the configuration parameters selected by the user is achieved. This improves the flexibility of cloud computer updates and avoids the technical problem in related technologies where users can only select the performance parameters of the cloud computer when requesting the creation of the cloud computer, and cannot update the performance parameters of the already created cloud computer.
[0223] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0224] According to another aspect of the embodiments of this application, an access device for a cloud computer implementing the above-described cloud computer access method is also provided, the device being applied to a cloud server. For example... Figure 13 As shown, the device includes:
[0225] The first determining unit 1302 is used to respond to the first access request sent by the terminal device, determine the first location where the terminal device is currently located, and determine the second location where the terminal device was when it performed the last operation in the cloud computer platform client from the historical operation data of the terminal device. The first access request is used to request to log in to the cloud computer platform client in the terminal device using the target account.
[0226] The second determining unit 1304 is used to determine the target server cluster that meets the access conditions based on the first position when the first position is different from the second position, and to notify the terminal device to access the target cloud computer through the target server cluster based on the cloud computer platform client.
[0227] The startup unit 1306 is used to respond to a second access request sent by the terminal device and control the target server cluster to start the target cloud computer through the stored target image file. The second access request is used to request access to the target cloud computer through the target server cluster. The target image file is synchronized from the reference server cluster to the target server cluster. The target image file is created in the reference server cluster. The target server cluster is a server cluster in the target server cluster group to which the reference server cluster belongs that meets the image synchronization conditions.
[0228] Optionally, in this embodiment, the above-mentioned device further includes: a third determining unit, configured to determine the length of the target access queue of the target server, wherein the target access queue includes request information of terminal devices that are requesting access to the target server cluster; and a first notifying unit, configured to notify the terminal devices to display queuing access prompt information when the length of the target access queue reaches a queuing length threshold.
[0229] Optionally, in this embodiment, the above-mentioned device further includes: a fourth determining unit, used to determine the account level of the target cloud account used to log in to the target cloud computer; a fifth determining unit, used to determine the access subqueue with the shortest queuing time of the terminal device from the target access queue, which includes at least two access subqueues, when the account level reaches the target level, and use it as the target access subqueue; and an adding unit, used to add the request information of the terminal device to the target access subqueue.
[0230] Optionally, in this embodiment, the second determining unit includes: a first determining module, used to determine the server cluster located at the first position in the target server cluster group as the target server cluster that meets the access conditions; a second determining module, used to obtain N transmission measurement results determined based on the first position, and determine the target transmission measurement result that meets the measurement conditions from the N transmission measurement results, wherein the i-th transmission measurement result is used to indicate the transmission measurement result between the terminal device at the first position and the i-th cluster proxy server among the N cluster proxy servers, each cluster proxy server stores a target image file in the server cluster it manages, i is greater than or equal to 1 and less than or equal to N, and N is a positive integer; and the server cluster managed by the cluster proxy server corresponding to the target transmission measurement result is determined as the target server cluster that meets the access conditions.
[0231] Optionally, in this embodiment, the second determining module is further configured to: sort the data transmission speeds indicated by each of the N transmission measurement results; determine the transmission measurement result corresponding to the maximum value of the data transmission speed in the sorted results as the target transmission measurement result that meets the measurement conditions; sort the terminal access volume indicated by each of the N transmission measurement results; determine the transmission measurement result corresponding to the minimum value of the terminal access volume in the sorted results as the target transmission measurement result that meets the measurement conditions; sort the data transmission bandwidth indicated by each of the N transmission measurement results; determine the transmission measurement result corresponding to the maximum value of the data transmission bandwidth in the sorted results as the target transmission measurement result that meets the measurement conditions, wherein the data transmission bandwidth indicated by the i-th transmission measurement result among the N transmission measurement results is used to characterize the bandwidth of the data transmission channel between the i-th cluster proxy server and the terminal device.
[0232] Optionally, in this embodiment, the above-mentioned apparatus further includes: an acquisition unit, configured to acquire an access queue corresponding to the target server cluster in response to a third access request sent by a terminal device, wherein the access queue includes request information of a terminal device requesting access to the target server cluster, and the third access request is used to request to log in to the cloud computer platform client using a target account; a sixth determination unit, configured to determine M transmission measurement results based on a first position when the queue length of the access queue is greater than a length threshold, wherein the j-th transmission measurement result is used to indicate the transmission measurement result between the terminal device at the first position and the j-th cluster proxy server among the j cluster proxy servers; a seventh determination unit, configured to determine an updated first transmission measurement result that meets the measurement conditions from the M transmission measurement results; and a second notification unit, configured to notify the terminal device to access the target cloud computer by joining the cluster through the first server managed by the cluster proxy server corresponding to the first transmission measurement result.
[0233] For specific implementation examples, please refer to the examples shown in the cloud computer access method above. This embodiment will not be repeated here.
[0234] According to another aspect of the embodiments of this application, a cloud computer update device is also provided, applied to the server side, the device as follows: Figure 14 The following are included:
[0235] The receiving unit 1402 is used to receive an update request sent by the terminal device and determine the current third location of the terminal device. The update request is used to request an update of the performance parameters of the target cloud computer logged in by the target cloud account.
[0236] The acquisition unit 1404 is used to acquire historical operation data from the historical image file stored in the reference server cluster located in the third position;
[0237] Generation unit 1406 is used to generate candidate image files based on the set of target performance parameters carried in the update request;
[0238] Import unit 1408 is used to import historical operation data into the candidate image file to obtain the target image file, and bind the target image file to the target cloud account;
[0239] Synchronization unit 1410 is used to synchronize the target image file stored in the reference server cluster to the target server cluster when an object server cluster that meets the mirror synchronization conditions is identified in the target server cluster group to which the reference server cluster belongs.
[0240] Optionally, in this embodiment, the above-mentioned device further includes: a first determining unit, used to determine the server clusters in the target server cluster group whose access status is idle as object server clusters that meet the mirror synchronization conditions.
[0241] Optionally, in this embodiment, the synchronization unit includes: a first synchronization module, used to create a backup image file corresponding to the target image file in the reference server cluster, and migrate the backup image file to the object server cluster; and a second synchronization module, used to migrate the target image file stored in the reference server cluster to the object server cluster.
[0242] For specific implementation examples, please refer to the examples shown in the cloud computer update method described above. This embodiment will not be repeated here.
[0243] According to another aspect of the embodiments of this application, another cloud computer update apparatus is also provided, applied to a terminal device, including: a display unit for displaying a configuration interface of a cloud computer platform client; an acquisition unit for the terminal device to acquire a set of target performance parameters of the target cloud computer logged in using the target cloud account in response to an editing operation performed on the target cloud account displayed in the configuration interface; and a sending unit for the terminal device to send an update request carrying the set of target performance parameters to a cloud server, wherein the cloud server is used to update the target cloud computer using historical operation data of the target cloud computer and the set of target performance parameters.
[0244] For specific implementation examples, please refer to the examples shown in the cloud computer update method described above. This embodiment will not be repeated here.
[0245] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described cloud computer access method is also provided. This embodiment uses the electronic device as a server as an example for illustration. Figure 15 As shown, the electronic device includes a memory 1502 and a processor 1504. The memory 1502 stores a computer program, and the processor 1504 is configured to execute the steps of any of the above method embodiments via the computer program.
[0246] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0247] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0248] S1, in response to the first access request sent by the terminal device, determine the first location where the terminal device is currently located, and determine the second location where the terminal device was when it performed the last operation in the cloud computer platform client from the historical operation data of the terminal device. The first access request is used to request to log in to the cloud computer platform client in the terminal device using the target account.
[0249] S2, if the first position and the second position are different, determine the target server cluster that meets the access conditions based on the first position, and notify the terminal device to access the target cloud computer through the target server cluster based on the cloud computer platform client;
[0250] S3, in response to the second access request sent by the terminal device, controls the target server cluster to start the target cloud computer through the stored target image file. The second access request is used to request access to the target cloud computer through the target server cluster. The target image file is synchronized from the reference server cluster to the target server cluster. The target image file is created in the reference server cluster. The target server cluster is a server cluster in the target server cluster group to which the reference server cluster belongs that meets the image synchronization conditions.
[0251] Alternatively, as those skilled in the art will understand, Figure 15 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 15 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 15 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 15 The different configurations shown.
[0252] The memory 1502 can be used to store software programs and modules, such as the program instructions / modules corresponding to the cloud computer access method and device in this embodiment. The processor 1504 executes various functional applications and data processing by running the software programs and modules stored in the memory 1502, thereby realizing the aforementioned cloud computer access method. The memory 1502 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1502 may further include memory remotely located relative to the processor 1504, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1502 may be used, but is not limited to, to store N transmission measurement results and other information. As an example, such as Figure 15 As shown, the memory 1502 may include, but is not limited to, the first determining unit 1302, the second determining unit 1304, and the startup unit 1306 of the cloud computer access device. Furthermore, it may include, but is not limited to, other module units of the cloud computer access device, which will not be elaborated upon in this example.
[0253] Optionally, the transmission device 1506 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1506 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1506 is a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0254] In addition, the aforementioned electronic device also includes: a display 1508 for displaying the order information to be processed; and a connection bus 1510 for connecting the various module components in the aforementioned electronic device.
[0255] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described cloud computer update method is also provided. This embodiment uses the electronic device as a server as an example for illustration. Figure 16 As shown, the electronic device includes a memory 1602 and a processor 1604. The memory 1602 stores a computer program, and the processor 1604 is configured to execute the steps of any of the above method embodiments via the computer program.
[0256] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0257] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0258] S1, receive the update request sent by the terminal device, determine the current third location of the terminal device, wherein the update request is used to request an update of the performance parameters of the target cloud computer logged in by the target cloud account;
[0259] S2, retrieve historical operation data from the historical image files stored in the reference server cluster located in the third position;
[0260] S3, generate candidate image files based on the set of target performance parameters carried in the update request;
[0261] S4. Import historical operation data into the candidate image file to obtain the target image file, and bind the target image file to the target cloud account;
[0262] S5, if an object server cluster that meets the mirror synchronization conditions is identified in the target server cluster group to which the reference server cluster belongs, the target image file stored in the reference server cluster is synchronized to the object server cluster.
[0263] Alternatively, as those skilled in the art will understand, Figure 16 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other terminal devices. Figure 16 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 16 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 16 The different configurations shown.
[0264] The memory 1602 can be used to store software programs and modules, such as the program instructions / modules corresponding to the cloud computer update method and apparatus in this embodiment. The processor 1604 executes various functional applications and data processing by running the software programs and modules stored in the memory 1602, thereby implementing the aforementioned cloud computer update method. The memory 1602 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1602 may further include memory remotely located relative to the processor 1604, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1602 may be used, but is not limited to, to store N transmission measurement results and other information. As an example, such as... Figure 16 As shown, the memory 1602 may include, but is not limited to, the receiving unit 1402, obtaining unit 1404, generating unit 1406, importing unit 1408, and synchronization unit 1410 from the cloud computer update device. Furthermore, it may include, but is not limited to, other module units from the cloud computer update device, which will not be elaborated upon in this example.
[0265] Optionally, the transmission device 1606 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1606 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1606 is a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0266] In addition, the aforementioned electronic device also includes: a display 1608 for displaying the order information to be processed; and a connection bus 1610 for connecting the various module components in the aforementioned electronic device.
[0267] In other embodiments, the aforementioned terminal device or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a point-to-point network, and any form of computing device, such as a server, terminal, or other electronic device, can become a node in the blockchain system by joining this point-to-point network.
[0268] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods described above. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in the embodiments of this application.
[0269] According to one aspect of this application, another computer program product is also provided, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the methods in various embodiments of this application.
[0270] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described method.
[0271] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0272] S1, in response to the first access request sent by the terminal device, determine the first location where the terminal device is currently located, and determine the second location where the terminal device was when it performed the last operation in the cloud computer platform client from the historical operation data of the terminal device. The first access request is used to request to log in to the cloud computer platform client in the terminal device using the target account.
[0273] S2, if the first position and the second position are different, determine the target server cluster that meets the access conditions based on the first position, and notify the terminal device to access the target cloud computer through the target server cluster based on the cloud computer platform client;
[0274] S3, in response to the second access request sent by the terminal device, controls the target server cluster to start the target cloud computer through the stored target image file. The second access request is used to request access to the target cloud computer through the target server cluster. The target image file is synchronized from the reference server cluster to the target server cluster. The target image file is created in the reference server cluster. The target server cluster is a server cluster in the target server cluster group to which the reference server cluster belongs that meets the image synchronization conditions.
[0275] Optionally, in this embodiment, the computer-readable storage medium may also be configured to store a computer program for performing the following steps:
[0276] S1, receive the update request sent by the terminal device, determine the current third location of the terminal device, wherein the update request is used to request an update of the performance parameters of the target cloud computer logged in by the target cloud account;
[0277] S2, retrieve historical operation data from the historical image files stored in the reference server cluster located in the third position;
[0278] S3, generate candidate image files based on the set of target performance parameters carried in the update request;
[0279] S4. Import historical operation data into the candidate image file to obtain the target image file, and bind the target image file to the target cloud account;
[0280] S5, if an object server cluster that meets the mirror synchronization conditions is identified in the target server cluster group to which the reference server cluster belongs, the target image file stored in the reference server cluster is synchronized to the object server cluster.
[0281] It should be noted that the data collection and processing described in this application should strictly comply with the requirements of relevant national laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0282] Optionally, in the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0283] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0284] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.
[0285] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0286] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0287] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0288] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0289] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. An access method of a cloud computer, characterized by, The method comprises the following steps: In response to a first access request sent by a terminal device, a first location where the terminal device is currently located is determined, and a second location where the terminal device was located when performing a last operation in a cloud computer platform client is determined from historical operation data of the terminal device, wherein the first access request is used to request to log in the cloud computer platform client in the terminal device by using a target account; In a case where the first location is different from the second location, a target server cluster satisfying an access condition is determined based on the first location, and the terminal device is informed to access a target cloud computer through the target server cluster based on the cloud computer platform client; In response to a second access request sent by the terminal device, the target server cluster is controlled to start the target cloud computer through a stored target image file, wherein the second access request is used to request to access the target cloud computer through the target server cluster, the target image file is synchronized to the target server cluster by a reference server cluster, the target image file is created in the reference server cluster, and the target server cluster is a server cluster satisfying an image synchronization condition in a target server cluster group to which the reference server cluster belongs.
2. The method of claim 1, wherein, Before the control of the target server cluster to start the target cloud computer through the stored target image file, the method further comprises the following steps: The length of a target access queue of the target server is determined, wherein the target access queue comprises request information of terminal devices that are requesting to access the target server cluster; In a case where the length of the target access queue reaches a queuing length threshold, the terminal device is informed to display queuing access prompt information.
3. The method of claim 2, wherein, Before the informing of the terminal device to display the queuing access prompt information, the method further comprises the following steps: The account level of a target cloud account used to log in the target cloud computer is determined; In a case where the account level reaches a target level, an access subqueue with the shortest queuing waiting time of the terminal device is determined from at least two access subqueues in the target access queue as a target access subqueue; The request information of the terminal device is added to the target access subqueue.
4. The method of claim 1, wherein, The determination of the target server cluster satisfying the access condition based on the first location comprises the following steps: The server cluster located at the first location in the target server cluster group is determined as the target server cluster satisfying the access condition; or obtaining N transmission measurement results determined based on the first position, determining a target transmission measurement result satisfying a measurement condition from the N transmission measurement results, wherein the ith transmission measurement result is used to indicate a transmission measurement result between the terminal device at the first position and an ith cluster proxy server in N cluster proxy servers, each of the cluster proxy servers manages a server cluster in which the target image file is stored, i is greater than or equal to 1 and less than or equal to N, and N is a positive integer; and determining a server cluster managed by a cluster proxy server corresponding to the target transmission measurement result as the target server cluster satisfying the access condition.
5. The method of claim 4, wherein, The determining a target transmission measurement result satisfying a measurement condition from the N transmission measurement results includes one of: sorting data transmission speeds respectively indicated by the N transmission measurement results; and determining a transmission measurement result corresponding to a maximum value of the data transmission speeds in a sorting result as the target transmission measurement result satisfying the measurement condition; sorting terminal access amounts respectively indicated by the N transmission measurement results; determining a transmission measurement result corresponding to a minimum value of the terminal access amounts in a sorting result as the target transmission measurement result satisfying the measurement condition; sorting data transmission bandwidths respectively indicated by the N transmission measurement results; determining a transmission measurement result corresponding to a maximum value of the data transmission bandwidths in a sorting result as the target transmission measurement result satisfying the measurement condition, wherein a data transmission bandwidth indicated by the ith transmission measurement result in the N transmission measurement results is used to represent a bandwidth of a data transmission channel between the ith cluster proxy server and the terminal device.
6. The method according to any one of claims 1 to 5, characterized in that, After the target cloud computer is started by the target image file stored in the target server cluster in response to the second access request sent by the terminal device, the method further includes: obtaining an access queue corresponding to the target server cluster in response to a third access request sent by the terminal device, wherein the access queue includes request information of terminal devices that are requesting to access the target server cluster, and the third access request is used to request to log in a cloud computer platform client by using the target account; in a case where a queue length of the access queue is greater than a length threshold, determining M transmission measurement results based on the first position, wherein a jth transmission measurement result is used to indicate a transmission measurement result between the terminal device at the first position and a jth cluster proxy server in j cluster proxy servers; determining an updated first transmission measurement result satisfying the measurement condition from the M transmission measurement results; informing the terminal device to access the target cloud computer by a first server managed by a cluster proxy server corresponding to the first transmission measurement result.
7. An update method of a cloud computer, characterized by, includes: The receiving terminal device sends an update request, and determining a third location where the terminal device is currently located, wherein the update request is used to request updating a performance parameter of a target cloud computer logged in by a target cloud account; Obtaining historical operation data in a historical image file stored in a reference server cluster located at the third location; Generating a candidate image file based on a target performance parameter set carried in the update request; Importing the historical operation data into the candidate image file to obtain a target image file, and binding the target image file with the target cloud account; In the case that the reference server cluster satisfies the image synchronization condition, synchronizing the target image file stored in the reference server cluster to the object server cluster.
8. The method of claim 7, wherein, After the historical operation data is imported into the candidate image file to obtain a target image file, and the target image file is bound with the target cloud account, the method further comprises: The server cluster in the target server cluster group with an idle state is determined as the object server cluster satisfying the image synchronization condition.
9. The method of claim 7, wherein, The target image file stored in the reference server cluster is synchronized to the object server cluster satisfying the image synchronization condition, comprising: Creating a backup image file corresponding to the target image file in the reference server cluster, and migrating the backup image file to the object server cluster; or Migrating the target image file stored in the reference server cluster to the object server cluster.
10. The method according to any one of claims 7 to 9, characterized in that, Before the receiving terminal device sends an update request, and obtaining historical operation data in a historical image file stored in a reference server cluster, the method further comprises: The terminal device displays a configuration interface of the cloud computer platform client; The terminal device acquires a target performance parameter set of a target cloud computer logged in by a target cloud account in response to an editing operation performed on the target cloud account displayed in the configuration interface; The terminal device sends the update request carrying the target performance parameter set to a cloud server, wherein the cloud server is used to update the target cloud computer by using historical operation data of the target cloud computer and the target performance parameter set.
11. An access device of a cloud computer, characterized in that, Comprise: The first determining unit is configured to determine a first location where the terminal device is currently located in response to a first access request sent by the terminal device, and determine a second location where the terminal device was located when performing a last operation in the cloud computer platform client from historical operation data of the terminal device, wherein the first access request is used to request logging into a cloud computer platform client in the terminal device by using a target account; The second determining unit is configured to determine a target server cluster satisfying an access condition based on the first location in the case that the first location is different from the second location, and notify the terminal device to access a target cloud computer by the target server cluster based on the cloud computer platform client. The starting unit is configured to control the target server cluster to start the target cloud computer by using a stored target image file in response to a second access request sent by the terminal device, wherein the second access request is used to request to access the target cloud computer by using the target server cluster, the target image file is synchronized to the target server cluster by a reference server cluster, the target image file is created in the reference server cluster, and the target server cluster is a server cluster that meets an image synchronization condition in a target server cluster group to which the reference server cluster belongs.
12. An updating apparatus of a cloud computer, characterized by comprising: The method comprises the following steps: The receiving unit is configured to receive an update request sent by a terminal device and determine a third location where the terminal device is currently located. The obtaining unit is configured to obtain historical operation data in a historical image file stored in a reference server cluster located at the third location, wherein the update request is used to request to update a performance parameter of a target cloud computer logged in by a target cloud account. The generating unit is configured to generate a candidate image file based on a target performance parameter set carried in the update request. The importing unit is configured to import the historical operation data into the candidate image file to obtain a target image file, and bind the target image file with the target cloud account. The determining unit is configured to synchronize the target image file stored in the reference server cluster to an object server cluster that meets an image synchronization condition in a target server cluster group to which the reference server cluster belongs.
13. A computer readable storage medium, characterized in that, The computer readable storage medium comprises a stored program, wherein the program is executed by a processor to perform the method in any one of claims 1 to 6 or claims 7 to 10.
14. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instruction is executed by the processor to implement the steps of the method in any one of claims 1 to 6 or claims 7 to 10.
15. An electronic device comprising a memory and a processor, characterized in that The memory stores a computer program, and the processor is configured to execute the method in any one of claims 1 to 6 or claims 7 to 10 by using the computer program.