A medical service deployment method and device based on service type transmission strategy
The medical service deployment method based on service type transmission strategy solves the problem of low efficiency of medical service deployment, achieves automated deployment and environmental consistency among medical institutions, and improves operation and maintenance efficiency and deployment speed.
Patent Information
- Application Number
- CN202311237605.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-09-25
AI Technical Summary
In a complex network structure with multiple medical institution nodes, the unified management of medical services and environment configuration are cumbersome, causing operation and maintenance personnel to spend a lot of energy and time. Medical service deployment is inefficient and error-prone, especially when new nodes are added and the environment configuration is inconsistent. , affecting the overall deployment time.
Adopt a medical service deployment method based on service type transmission strategy, generate docker images through the central server, classify medical services according to transmission time and startup time, and use different transmission strategies to transmit medical services to various medical institutions, including transmission type and computing type and time-consuming similar services, using genetic algorithms to optimize the transmission sequence to ensure rapid deployment.
It enables each medical institution to automatically receive and quickly deploy medical services, reducing the workload of operation and maintenance personnel, improving work efficiency, ensuring environmental consistency, reducing service offline time, and improving the efficiency and reliability of medical service deployment.
Smart Images

Figure CN117311760B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of medical service deployment, and in particular relates to a medical service deployment method and device based on a service type transmission strategy. Background Art
[0002] In an environment with a complex network structure of multiple medical institution nodes, especially for medical institution nodes that cannot be connected to the Internet, it is very cumbersome to uniformly manage medical services and configure the environment. The configurations of medical services at different medical institution nodes are often different, which leads to a lot of energy and time spent by operation and maintenance personnel to maintain the medical services of multiple medical institution nodes. When the configuration of a medical institution node needs to be updated, the operation and maintenance personnel need to update the configuration of all medical institution nodes, which is inefficient and prone to errors. When a new medical institution node needs to be added, the operation and maintenance personnel need to reconfigure the environment, which is a large workload and may also lead to inconsistent environment configurations.
[0003] On the other hand, a medical institution often deploys a large number of medical services. There may be version dependencies between different medical services. When updating some services, other services will become unavailable. The existing rapid deployment system does not optimize the process of deploying services, resulting in a long overall completion time for medical services. Medical scenarios are sensitive to service deployment time. Therefore, how to quickly complete the deployment of medical services and reduce service offline time is an urgent problem to be solved in medical scenarios.
[0004] The Chinese patent with publication number CN112130871A discloses a method, device, computer equipment and storage medium for remote deployment of middleware, the method is applied to a control server, the control server is installed with an automated operation and maintenance tool, the control server and the server to be deployed realize password-free login based on the key pair of the SSH protocol, and the server to be deployed is used to deploy a digital medical system; the method includes: obtaining a middleware installation request through an automated operation and maintenance tool, the middleware installation request carries the storage path of the target configuration file; through the automated operation and maintenance tool, according to the middleware installation request, the server to be deployed performs middleware deployment preparation, deploys the corresponding middleware, and checks the middleware status to complete the deployment of the middleware, and obtains the deployment check result. Thus, the operation is simple, the deployment efficiency is improved, the environment of the deployed middleware is consistent, it is conducive to reducing the operation and maintenance cost and difficulty of operation and maintenance, and it is also conducive to quickly analyzing and locating problems.
[0005] The Chinese patent with publication number CN113360164A discloses a method, device and storage medium for rapid deployment of applications, including: identifying the attribute information of the application to be deployed, and obtaining the application or service involved based on the attribute information; obtaining the selected target parameters, and automatically calling the Jenkins API interface based on the target parameters to realize the dynamic deployment of Jenkins; locking a current deployment environment to realize the site locking of the current deployment environment; calling the selected corresponding application or service through the API interface to complete the deployment of the corresponding application or service in the current deployment environment. The technical solution provided by the present invention only requires simple operation, that is, it can assist the staff to quickly and accurately deploy applications, and each application will not overlap each other.
[0006] Neither of the above two patents optimizes the deployment of medical service transmission process, and there is still room for further optimization of operation and maintenance work. Therefore, the solutions of the above two patents have limited application in scenarios where medical institutions have a large number of medical services. Summary of the invention
[0007] The present invention discloses a medical service deployment method based on a service type transmission strategy, which can enable each medical institution to automatically receive corresponding medical services and complete the deployment of medical services as soon as possible.
[0008] A specific embodiment of the present invention provides a medical service deployment method based on a service type transmission strategy, which is characterized by comprising:
[0009] The central server generates a docker image based on the dependency files corresponding to the medical services, deploys the docker image to various medical institutions to start the corresponding medical services, classifies the medical services based on the transmission time of the medical services to each medical institution and the startup time in each medical institution, and adopts different service type transmission strategies based on the set medical institution configuration information to transmit different types of medical services to the corresponding medical institutions, so that each medical institution can start the corresponding type of medical service, thereby completing the deployment of medical services.
[0010] Furthermore, different types of medical services are deployed to corresponding medical institutions using different service type transmission strategies, including:
[0011] If the transmission duration is greater than the set multiple of the start-up duration, the corresponding medical service is a transmission-type medical service, and the transmission-type medical service to be deployed to medical institution α is transmitted to medical institution α in sequence, and then the transmission-type medical service to be deployed to medical institution β is transmitted to medical institution β in sequence, until all medical institutions complete the reception of the transmission-type medical service to be deployed, and each medical institution immediately starts the medical service after receiving the transmission-type medical service to complete the deployment of the transmission-type medical service;
[0012] If the startup duration is longer than the set multiple of the transmission duration, the corresponding medical service is a computational medical service. First, the computational medical service C is transmitted to multiple corresponding medical institutions respectively, and then the corresponding medical institutions start the computational medical service C in parallel to complete the deployment of the computational medical service C, and then the next computational medical service D is deployed, until all the computational medical services to be deployed are deployed;
[0013] If the time difference between the transmission time and the startup time reaches a similar threshold, the corresponding medical service is a medical service with similar time consumption. The genetic algorithm is used to optimize the transmission order of the medical service with similar time consumption to the medical institution to obtain the optimal transmission order, and the deployment of the medical service with similar time consumption is completed based on the optimal transmission order.
[0014] Furthermore, the transmission-type medical services will be deployed to various medical institutions in turn, including:
[0015] The central server transmits the corresponding transmission-type medical service to a medical institution, and after the medical institution starts the transmission-type medical service, it transmits the corresponding transmission-type medical service to the next medical institution, and the next medical institution starts the corresponding transmission-type medical service, until the deployment of the transmission-type medical service is completed.
[0016] Furthermore, the computational medical services are transmitted to the corresponding medical institutions in sequence according to the order of the activation time of the computational medical services in the corresponding medical institutions from large to small.
[0017] Furthermore, a genetic algorithm is used to optimize the transmission sequence of similar time-consuming medical services to medical institutions to obtain the optimal transmission sequence, including:
[0018] S1, randomly obtain multiple transmission order sequences based on similar time-consuming medical services and corresponding medical institutions;
[0019] S2. Calculate the total time spent on each transmission sequence and the maximum time spent on the total time spent on multiple transmission sequence sequences;
[0020] S3, obtaining the selection probability of each transmission sequence based on the ratio of the sum of the difference between the maximum time spent and the total time spent corresponding to each transmission sequence and the total time spent corresponding to each transmission sequence;
[0021] S4. Randomly select a transmission order sequence based on the selection probability, randomly exchange two elements in the selected transmission order sequence to generate a new transmission order sequence, and calculate the total time spent on the new transmission order sequence;
[0022] S5. If the total time spent on the new transmission order sequence is less than the total time spent on the selected transmission order sequence, execute S7;
[0023] S6. If the total time spent on the new transmission sequence is greater than the total time spent on the selected transmission sequence, reselect two elements of the sequence for exchange until the total time spent on the new transmission sequence is less than the total time spent on the selected transmission sequence, and execute S7. If the number of sequence element exchange rounds reaches the set k rounds, execute S8.
[0024] S7. Replace the selected transmission sequence with a new transmission sequence
[0025] S8. Repeat steps S3-S7 until the set I rounds are reached, and take the transmission sequence with the shortest total time as the final optimal transmission sequence.
[0026] Furthermore, the time it takes to get medical services in various medical institutions includes:
[0027] The CPU, CPU usage, memory, memory usage and size of medical services of the medical institution are used as parameters for training to obtain a linear regression model, and the startup time of the medical service in the corresponding medical institution is obtained by fitting the trained linear regression model.
[0028] Furthermore, a docker image is generated based on the dependency files corresponding to the medical service, including: updating the dependency library of the basic image based on the dependency files, deleting redundant dependency files and executable programs in the dependency library, obtaining a new dependency library, and compressing and packaging the new dependency library to obtain the docker image.
[0029] Furthermore, the Docker images of various medical institutions are updated, including:
[0030] The central server sends a request to close the original docker image to each medical institution, and after receiving the feedback information of the closed original docker image from each medical institution, sends a new docker image to each medical institution according to the configuration information of each medical institution, so that each medical institution can decompress the new docker image to obtain the running image for running medical services, and start the running image to complete the update of the docker image;
[0031] The configuration information of each medical institution includes the node port, IP address and configuration information of the corresponding medical service of the medical institution.
[0032] Furthermore, medical institutions initiate medical services, including:
[0033] When the central server receives a request to start a medical service, it first checks whether the docker image of the medical institution is running. If the docker image received by the medical institution is not running, the non-running docker image is started first. If the docker image received by the medical institution is already running, an instruction to start the medical service is issued to the medical institution, so that the medical institution can start the medical service and send the process number of the medical service to the central server, and the central server receives and saves the process number.
[0034] The specific embodiment of the present invention further provides an automated medical computing service deployment device based on a service type transmission strategy, which is characterized by comprising:
[0035] The image generation module is used to obtain medical services and generate Docker images based on the dependency files corresponding to the medical services;
[0036] The deployment module is used to first deploy the Docker image to each medical institution for starting the corresponding medical service, and then classify the medical services based on the transmission time of the medical services to each medical institution and the startup time in each medical institution. Based on the configuration information of the medical institutions, different types of medical services are transmitted to the corresponding medical institutions using different service type transmission strategies, so that each medical institution starts the corresponding type of medical service, thereby completing the deployment of medical services.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] The present invention uses the previously set configuration information of each medical institution to automatically transmit each medical service to the corresponding medical institution through the central server, so that each medical institution can automatically update the docker image and start the medical service, thereby realizing automatic update of node configuration, that is, the docker image of the medical institution to start the corresponding medical service, reducing the workload of operation and maintenance personnel and improving work efficiency. In addition, the present invention classifies medical services for transmission, adopts different strategies according to different types of medical services to speed up the transmission speed, and completes the deployment of medical services as soon as possible. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A system architecture diagram of a one-click deployment device for medical services provided by a specific embodiment of the present invention;
[0040] Figure 2 A flowchart of a medical service deployment method based on a service type transmission strategy provided by a specific embodiment of the present invention;
[0041] Figure 3 A flowchart of a medical institution updating a docker image provided by a specific embodiment of the present invention;
[0042] Figure 4 A schematic diagram of a transmission strategy for a transmission-type medical service provided by a specific embodiment of the present invention;
[0043] Figure 5 A schematic diagram of a computing-based medical service transmission strategy provided by a specific embodiment of the present invention;
[0044] Figure 6 A schematic diagram of a medical service transmission strategy with similar time consumption provided by a specific embodiment of the present invention;
[0045] Figure 7 A flowchart of a startup unit provided for a specific embodiment of the present invention. DETAILED DESCRIPTION
[0046] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.
[0047] In order to achieve the purpose of automatically deploying medical services to medical institutions, saving the workload of operation and maintenance personnel, and improving work efficiency, the specific embodiment of the present invention sets the medical institution configuration information in advance, and the central server automatically sends the medical services to each medical institution based on the medical institution configuration information. In addition, the present invention classifies the medical services and adopts different transmission strategies based on different medical service categories to send different medical services to corresponding medical institutions. The medical service deployment method based on the service type transmission strategy provided by the present invention is as follows: Figure 1 and Figure 2 As shown, the specific steps are as follows:
[0048] The specific embodiment of the present invention fills in the configuration information of each medical institution, and the content filled in includes the node port, IP address and configuration information of the corresponding medical service of the medical institution.
[0049] The central server provided in the specific embodiment of the present invention automatically generates a docker image based on the dependency file corresponding to the medical service. The dependency file is maintained by the central server. Each medical service has a dependency file, which records the dependency library information on which the medical service depends.
[0050] In a specific embodiment, the embodiment provides a method for generating a docker image based on the dependency files corresponding to the medical service, that is, automatically generating a Dockerfile based on the dependency files of the medical service, including: (1) updating the dependency library based on the basic image; (2) slimming the image in order to reduce the transmission time. The slimming process includes two stages. In the first stage, the dependency relationship of the project is analyzed, and unnecessary dependency libraries and executable programs are deleted. In the second stage, the dependency library is compressed and packaged. After the two-stage slimming process, the final image is generated.
[0051] In a specific embodiment, if Figure 3 As shown, the embodiment provides the method of updating the docker image of each medical institution, including: the central server sends a request to close the original docker image to each medical institution, and after receiving the feedback information of the closed original docker image from each medical institution, sends a new docker image to each medical institution according to the configuration information of each medical institution, so that each medical institution can decompress the new docker image to obtain the running image for running medical services, and start the running image to complete the update of the docker image;
[0052] In a specific embodiment, before the central server provided in this embodiment transmits the docker image to the medical institution, it is necessary to calculate the MD5 of the docker image. When the central server transmits the docker image and medical services to the medical institution in turn, the medical institution must check the MD5 to determine the accuracy of the transmission.
[0053] A specific embodiment of the present invention classifies medical services based on the transmission time of the medical services to each medical institution and the startup time in each medical institution. The central server automatically transmits different types of medical services to the corresponding medical institutions using different service type transmission strategies based on the set medical institution configuration information, and the medical institutions complete the startup of the medical services locally.
[0054] In a specific embodiment, this embodiment provides the use of different service type transmission strategies to deploy different types of medical services to corresponding medical institutions, including: if the transmission time of the medical service is greater than the set multiple of the time to start the medical service, in one embodiment, the transmission time is greater than 2 times the startup time, indicating that the transmission time is the main consumption time and the startup time can be ignored, then the corresponding medical service is a transmission-type medical service, and the transmission strategy adopted at this time is that the central server transmits the transmission-type medical service to the corresponding medical institution, and then transmits the corresponding transmission-type medical service to the next medical structure.
[0055] In a specific embodiment, for transmission-type medical services, since the transmission time is much longer than the startup time, the startup time can be ignored. Therefore, in order to minimize the deployment time, for this type of medical service, the transmission strategy adopted is to transmit the transmission-type medical service to be deployed to medical institution α in sequence to medical institution α, and then transmit the transmission-type medical service to be deployed to medical institution β in sequence to medical institution β, until all medical institutions complete the reception of the transmission-type medical service to be deployed, and each medical institution immediately starts the medical service after receiving the transmission-type medical service to complete the deployment of the transmission-type medical service. Therefore, it takes time T v The calculation formula is as follows, where A θ Indicates the total number of transmission-intensive services.
[0056]
[0057]
[0058] Where n is the index of the medical institution, N is the number of medical institutions, An index of transport-based medical services, A θ The number of transmission-type medical services, To be the first The transmission time of a transmission-type medical service to the nth medical institution, For the The size of the transmission-type medical service, τ n is the transmission rate from the central server to the nth medical institution.
[0059] In one embodiment, if Figure 4 As shown, the central server first transmits service A and service B to medical institution α, and then transmits service A and service B to medical institution β. Medical institution α and medical institution β start the service immediately after receiving the medical services. Both services A and B are transmission-type medical services.
[0060] If the startup time of the medical service is greater than the set multiple of the transmission time of the medical service, that is, the startup time is much greater than the transmission time, and therefore the transmission time can be ignored, then the corresponding medical service is a computational medical service. First, the computational medical service C is transmitted to multiple corresponding medical institutions respectively, and then the corresponding medical institutions simultaneously start the computational medical service C in parallel to complete the deployment of the computational medical service C, and then the next computational medical service D is deployed until all the computational medical services to be deployed are deployed.
[0061] In a specific embodiment, for computing medical services, since the startup time is much longer than the transmission time, the transmission time can be ignored. Therefore, in order to minimize the deployment time, for this type of service, the transmission strategy adopted is to transmit in descending order according to the startup time, so as to ensure that each medical institution can start the service at the first time, so it takes time T f The calculation formula is as follows.
[0062]
[0063] Among them, A ∈ is the total number of computing services, For the The start time of a computational medical service at the nth medical institution.
[0064] In a specific embodiment, if Figure 5 As shown, the central server first transmits service C to medical institution α and medical institution β respectively, and then transmits service D to medical institution α and medical institution β respectively. Medical institution α starts service C and service D in parallel, and medical institution β starts service C and service D in parallel. Both service C and service D are computational medical services.
[0065] If the time difference between the transmission time and the startup time reaches a similar threshold, the corresponding medical service is a medical service with similar time consumption. The genetic algorithm is used to optimize the transmission order of the medical service with similar time consumption to the medical institution to obtain the optimal transmission order, and the deployment of the medical service with similar time consumption is completed based on the optimal transmission order.
[0066] In a specific embodiment, a genetic algorithm is used to optimize the transmission sequence of similar time-consuming medical services to medical institutions to obtain the optimal transmission sequence, such as Figure 6 As shown, including:
[0067] S1, based on similar time-consuming medical services and corresponding medical institutions, randomly generate M random transmission order sequences {sq1, sq2, ..., sq M In one embodiment, taking two medical institutions, each of which deploys three services, as an example, the two random transmission order sequences generated may be {[n1c1, n1c2, n1c3, n2c1, n2c2, n2c3], [n1c2, n2c1, n2c3, n1c1, n1c3, n2c2]}. n1c1 indicates that the central server sends c1 medical service to medical institution n1, and the others are similar.
[0068] S2, calculate the total time spent on M transmission order sequences {T1, T2, ..., T M} and the maximum time T of the total time of multiple transmission order sequences max .
[0069] S3. The selection probability of each transmission sequence is obtained by calculating the ratio of the total time spent corresponding to each transmission sequence to the sum of the difference between the maximum time spent and the total time spent corresponding to each transmission sequence.
[0070] This embodiment provides the i-th transmission order sequence T i The probability of selection p i for:
[0071]
[0072]
[0073] Where j is the index of the transmission sequence, R is the sum of the maximum time spent in M transmission sequence sequences and the total time spent by each transmission sequence sequence, T max It is the maximum time spent in the M transmission order sequence.
[0074] S4. Randomly select a transmission order sequence based on the selection probability, randomly exchange two elements in the selected transmission order sequence, where the elements are n1c1, n1c2, etc. to generate a new transmission order sequence, and calculate the total time spent on the new transmission order sequence.
[0075] S5. If the total time spent in the new transmission order sequence is less than the total time spent in the selected transmission order sequence, execute S7.
[0076] S6. If the total time spent on the new transmission order sequence is greater than the total time spent on the selected transmission order sequence, reselect two elements of the sequence for exchange until the total time spent on the new transmission order sequence is less than the total time spent on the selected transmission order sequence, and execute S7. If the number of sequence element exchange rounds reaches k, execute S8.
[0077] S7. Replace the selected transmission sequence with the new transmission sequence.
[0078] S8. Repeat steps S3-S7 until the set I rounds are reached, and take the transmission sequence with the shortest total time as the final optimal transmission sequence.
[0079] In one embodiment, the total transmission time of medical services is calculated and the time it takes to start the healthcare facility that takes the longest time of all healthcare services Where a is the index of the medical service, and A is the number of medical services. If the total transmission time corresponding to the medical service is greater than the total startup time, it means that the overall task is limited by the transmission of the service. In this case, the transmission-type medical service is deployed first, followed by the medical service with similar time consumption, and finally the computing-type medical service. If the total transmission time corresponding to the medical service is less than the total startup time, it means that the task is mainly limited by the startup of the service. In this case, the computing-type medical service is deployed first, followed by the medical service with similar time consumption, and finally the transmission-type medical service.
[0080] In a specific embodiment, this embodiment obtains the startup time of medical services in various medical institutions, including: using the medical institution's CPU, CPU occupancy, memory, memory occupancy and the size of the medical service as parameters to train a linear regression model, and obtaining the startup time of the medical service in the corresponding medical institution by fitting the trained linear regression model.
[0081] In a specific embodiment, the specific steps for a medical institution to start a medical service are as follows: when the central server receives a request to start a medical service, it first checks whether the docker image of the medical institution is running. If the docker image received by the medical institution is not running, the non-running docker image is first started. If the docker image received by the medical institution is already running, an instruction to start the medical service is issued to the medical institution, so that the medical institution can start the medical service and send the process number of the medical service, that is, the running result to the central server, and the central server receives and saves the process number.
[0082] The present invention also provides an automated medical computing service deployment device based on a service type transmission strategy, comprising:
[0083] The image generation module is used to obtain medical services and generate docker images based on the dependency files corresponding to the medical services.
[0084] The deployment module is used to first deploy the docker image to each medical institution, and then classify the medical services based on the transmission time of the medical services to each medical institution and the startup time in each medical institution, and adopt different service type transmission strategies based on the configuration information of the medical institutions to transmit different types of medical services to the corresponding medical institutions, so that each medical institution can start the corresponding type of medical service, thereby completing the deployment of medical services.
[0085] The deployment module provided in this embodiment includes a startup unit, such as Figure 7 As shown, the startup unit controls the start, stop and restart of the medical service. When the central server receives a request to start the medical service, it first detects whether the docker of the medical institution node is running. If the docker of the medical institution node is not running, the docker startup process is executed first. If it is already running, the medical institution node is notified to start the medical service. After receiving the request, the medical institution node automatically updates the medical service configuration file and starts the project. At the same time, the process number of the started medical service is returned to the central server. The central server obtains the background process number of the front-end machine and saves it. When the central server receives a request to stop the medical service of the medical institution node, it obtains the process number of the corresponding medical institution node and sends a request to stop the corresponding process to the front-end machine. The medical institution node receives the request and kills the corresponding process. When the central server receives a request to restart the medical service of the corresponding medical institution node, the stop process is first executed, and then the startup process is executed.
[0086] The automated medical computing service deployment device based on the service type transmission strategy provided by the specific embodiment of the present invention also includes an operation monitoring module, which periodically sends a request to the medical service of the medical institution node to monitor the operation status of the medical service and saves the status information. The monitoring interface is provided by the developer of the medical service and recorded in the configuration information of the central server.
[0087] The automated medical computing service deployment method and device based on the service type transmission strategy provided in this embodiment is in a medical platform with multiple medical institution nodes. Due to high security requirements, medical institution nodes are often unable to connect to the external network. At this time, the configuration of the environment is very cumbersome, and it is necessary to download the software from the central node that can connect to the external network, transmit it to the front node of the medical institution, and then install it. When the number of hospitals is large, greater than 3, the process is very cumbersome, and it is possible that the machine environment is inconsistent, resulting in installation difficulties. In addition, when deploying medical services at multiple medical institution nodes, operation and maintenance personnel are usually required to manually configure them, which is relatively inefficient. In this scenario, the use of the present invention can well solve the above two problems and greatly improve the work efficiency of operation and maintenance personnel.
[0088] Docker: An open source application container engine that allows developers to package their applications and dependent packages into a portable image and then publish them to any popular Linux or Windows machine. It can also achieve virtualization. Containers use a complete sandbox mechanism and there is no interface between them.
[0089] MD5: A widely used cryptographic hash function to ensure the integrity and consistency of information transmission.
Claims
1. An automated medical computing service deployment method based on service type transmission strategy, characterized in that: include: The central server generates a docker image based on the dependency files corresponding to the medical service, deploys the docker image to each medical institution to start the corresponding medical service, classifies the medical service based on the transmission time of the medical service to each medical institution and the startup time in each medical institution, and adopts different service type transmission strategies based on the set medical institution configuration information to transmit different types of medical services to the corresponding medical institutions, so that each medical institution can start the corresponding type of medical service, thereby completing the deployment of the medical service; Different types of medical services are deployed to corresponding medical institutions using different service type transmission strategies, including: If the transmission duration is greater than the set multiple of the start-up duration, the corresponding medical service is a transmission-type medical service, and the transmission-type medical service to be deployed to medical institution α is transmitted to medical institution α in sequence, and then the transmission-type medical service to be deployed to medical institution β is transmitted to medical institution β in sequence, until all medical institutions complete the reception of the transmission-type medical service to be deployed, and each medical institution immediately starts the medical service after receiving the transmission-type medical service to complete the deployment of the transmission-type medical service; If the startup duration is longer than the set multiple of the transmission duration, the corresponding medical service is a computational medical service. First, the computational medical service C is transmitted to multiple corresponding medical institutions respectively, and then the corresponding medical institutions start the computational medical service C in parallel to complete the deployment of the computational medical service C, and then the next computational medical service D is deployed, until all the computational medical services to be deployed are deployed; If the time difference between the transmission time and the start time reaches a similar threshold, the corresponding medical service is a medical service with similar time consumption. A genetic algorithm is used to optimize the transmission sequence of the medical service with similar time consumption to the medical institution to obtain the optimal transmission sequence, and the deployment of the medical service with similar time consumption is completed based on the optimal transmission sequence. Genetic algorithms are used to optimize the transmission order of similar time-consuming medical services to medical institutions to obtain the optimal transmission order, including: S1, randomly obtain multiple transmission order sequences based on similar time-consuming medical services and corresponding medical institutions; S2. Calculate the total time spent on each transmission sequence and the maximum time spent on the total time spent on multiple transmission sequence sequences; S3, obtaining the selection probability of each transmission sequence based on the ratio of the sum of the difference between the maximum time spent and the total time spent corresponding to each transmission sequence and the total time spent corresponding to each transmission sequence; S4. Randomly select a transmission order sequence based on the selection probability, randomly exchange two elements in the selected transmission order sequence to generate a new transmission order sequence, and calculate the total time spent on the new transmission order sequence; S5. If the total time spent on the new transmission order sequence is less than the total time spent on the selected transmission order sequence, execute S7; S6. If the total time spent on the new transmission order sequence is greater than the total time spent on the selected transmission order sequence, reselect two elements of the sequence for exchange until the total time spent on the new transmission order sequence is less than the total time spent on the selected transmission order sequence, and execute S7. If the number of sequence element exchange rounds reaches the set k rounds, execute S8. S7, replacing the selected transmission order sequence with a new transmission order sequence; S8, repeat steps S3-S7 until the set I rounds are reached, and the transmission sequence with the shortest total time is taken as the final optimal transmission sequence; Generate a docker image based on the dependency files corresponding to the medical service, including: updating the dependency library of the basic image based on the dependency files, deleting redundant dependency files and executable programs in the dependency library, obtaining a new dependency library, and compressing and packaging the new dependency library to obtain the docker image.
2. The automated medical computing service deployment method based on service type transmission strategy according to claim 1, characterized in that: Deploy transmission-type medical services to various medical institutions in turn, including: The central server transmits the corresponding transmission-type medical service to a medical institution, and after the medical institution starts the transmission-type medical service, it transmits the corresponding transmission-type medical service to the next medical institution, and the next medical institution starts the corresponding transmission-type medical service, until the deployment of the transmission-type medical service is completed.
3. The automated medical computing service deployment method based on service type transmission strategy according to claim 1, characterized in that: The computational medical services are transmitted to the corresponding medical institutions in sequence according to the order of the activation time of the computational medical services in the corresponding medical institutions from large to small.
4. The automated medical computing service deployment method based on service type transmission strategy according to claim 1, characterized in that: The time it takes to get medical care at each health care facility, including: The CPU, CPU usage, memory, memory usage and size of medical services of the medical institution are used as parameters for training to obtain a linear regression model, and the startup time of the medical service in the corresponding medical institution is obtained by fitting the trained linear regression model.
5. The automated medical computing service deployment method based on service type transmission strategy according to claim 1, characterized in that: Update the Docker images of various medical institutions, including: The central server sends a request to close the original docker image to each medical institution, and after receiving the feedback information of the closed original docker image from each medical institution, sends a new docker image to each medical institution according to the configuration information of each medical institution, so that each medical institution can decompress the new docker image to obtain the running image for running medical services, and start the running image to complete the update of the docker image; The configuration information of each medical institution includes the node port, IP address and configuration information of the corresponding medical service of the medical institution.
6. The automated medical computing service deployment method based on service type transmission strategy according to claim 1, characterized in that: Medical institutions initiate medical services, including: When the central server receives a request to start a medical service, it first checks whether the docker image of the medical institution is running. If the docker image received by the medical institution is not running, the non-running docker image is started first. If the docker image received by the medical institution is already running, an instruction to start the medical service is issued to the medical institution, so that the medical institution can start the medical service and send the process number of the medical service to the central server, and the central server receives and saves the process number.
7. An automated medical computing service deployment device based on a service type transmission strategy, characterized in that: include: The image generation module is used to obtain medical services and generate Docker images based on the dependency files corresponding to the medical services; A deployment module is used to first deploy the docker image to each medical institution to start the corresponding medical service, and then classify the medical services based on the transmission time of the medical services to each medical institution and the startup time in each medical institution, and adopt different service type transmission strategies based on the configuration information of the medical institutions to transmit different types of medical services to the corresponding medical institutions, so that each medical institution starts the corresponding type of medical service, thereby completing the deployment of the medical service; Different types of medical services are deployed to corresponding medical institutions using different service type transmission strategies, including: If the transmission duration is greater than the set multiple of the start-up duration, the corresponding medical service is a transmission-type medical service, and the transmission-type medical service to be deployed to medical institution α is transmitted to medical institution α in sequence, and then the transmission-type medical service to be deployed to medical institution β is transmitted to medical institution β in sequence, until all medical institutions complete the reception of the transmission-type medical service to be deployed, and each medical institution immediately starts the medical service after receiving the transmission-type medical service to complete the deployment of the transmission-type medical service; If the startup duration is longer than the set multiple of the transmission duration, the corresponding medical service is a computational medical service. First, the computational medical service C is transmitted to multiple corresponding medical institutions respectively, and then the corresponding medical institutions start the computational medical service C in parallel to complete the deployment of the computational medical service C, and then the next computational medical service D is deployed, until all the computational medical services to be deployed are deployed; If the time difference between the transmission time and the start time reaches a similar threshold, the corresponding medical service is a medical service with similar time consumption. A genetic algorithm is used to optimize the transmission sequence of the medical service with similar time consumption to the medical institution to obtain the optimal transmission sequence, and the deployment of the medical service with similar time consumption is completed based on the optimal transmission sequence. Genetic algorithms are used to optimize the transmission order of similar time-consuming medical services to medical institutions to obtain the optimal transmission order, including: S1, randomly obtain multiple transmission order sequences based on similar time-consuming medical services and corresponding medical institutions; S2. Calculate the total time spent on each transmission sequence and the maximum time spent on the total time spent on multiple transmission sequence sequences; S3, obtaining the selection probability of each transmission sequence based on the ratio of the sum of the difference between the maximum time spent and the total time spent corresponding to each transmission sequence and the total time spent corresponding to each transmission sequence; S4. Randomly select a transmission order sequence based on the selection probability, randomly exchange two elements in the selected transmission order sequence to generate a new transmission order sequence, and calculate the total time spent on the new transmission order sequence; S5. If the total time spent on the new transmission order sequence is less than the total time spent on the selected transmission order sequence, execute S7; S6. If the total time spent on the new transmission order sequence is greater than the total time spent on the selected transmission order sequence, reselect two elements of the sequence for exchange until the total time spent on the new transmission order sequence is less than the total time spent on the selected transmission order sequence, and execute S7. If the number of sequence element exchange rounds reaches the set k rounds, execute S8. S7, replacing the selected transmission order sequence with a new transmission order sequence; S8, repeat steps S3-S7 until the set I rounds are reached, and the transmission sequence with the shortest total time is taken as the final optimal transmission sequence; Generate a docker image based on the dependency files corresponding to the medical service, including: updating the dependency library of the basic image based on the dependency files, deleting redundant dependency files and executable programs in the dependency library, obtaining a new dependency library, and compressing and packaging the new dependency library to obtain the docker image.
