CN111899858A - Hospital flow limiting method and device, computer equipment and storage medium - Google Patents

Hospital flow limiting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111899858A
CN111899858A CN202010741788.7A CN202010741788A CN111899858A CN 111899858 A CN111899858 A CN 111899858A CN 202010741788 A CN202010741788 A CN 202010741788A CN 111899858 A CN111899858 A CN 111899858A
Authority
CN
China
Prior art keywords
hospital
thread
module
terminal
thread pool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010741788.7A
Other languages
Chinese (zh)
Inventor
陈刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Haici Network Technology Co ltd
Original Assignee
Guangzhou Haici Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Haici Network Technology Co ltd filed Critical Guangzhou Haici Network Technology Co ltd
Priority to CN202010741788.7A priority Critical patent/CN111899858A/en
Publication of CN111899858A publication Critical patent/CN111899858A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/20ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the management or administration of healthcare resources or facilities, e.g. managing hospital staff or surgery rooms
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/60ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices
    • G16H40/67ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices for remote operation

Landscapes

  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

The embodiment of the invention provides a method and a device for limiting hospital flow, computer equipment and a storage medium, wherein the method comprises the following steps: calling a weight thread pool component to obtain hospital restriction model data; the hospital limit model data comprises preset thread thresholds corresponding to all hospital terminals; inquiring thread running data corresponding to the request quantity of the cluster terminal or the single hospital terminal; when the thread running data is larger than the preset thread threshold value, the request for accessing the corresponding hospital terminal is limited, slow response or paralysis of the whole internet medical platform caused by the performance problem of partial hospital interfaces can be prevented, and the internet medical platform is guaranteed to provide good user experience; the dependence on hardware resources is reduced, and the hardware cost is saved for enterprises.

Description

Hospital flow limiting method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of machinery, in particular to a hospital flow limiting method, a hospital flow limiting device, computer equipment and a storage medium.
Background
With the wider application of internet medical treatment, the interaction between each internet enterprise and the system in the entity hospital is more and more frequent. The scale and the strength of the entity hospital determine the IT construction capability of the entity hospital, and the Internet enterprise is easily subjected to the performance problem of internal systems of partial hospitals in the process of being used as a unified platform to be in butt joint with the hospital system, so that the overall response of the platform is slow, and the overall paralysis of the platform is easily caused under the high concurrency and massive terminal pressure.
In order to solve the problem that the performance of a part of internal systems of a hospital is low and the whole platform is dragged down, the internet medical platform generally adopts horizontal expansion, namely, server hardware resources are continuously added, or vertical expansion, namely, software architecture is continuously split or parameter adjustment is continuously carried out (for example, the response overtime time of a hospital interface is increased). The cost of the former is high and the cost of the former is hard to bear by common enterprises; the latter can consume a large amount of system resources, which leads to higher demand on hardware resources, and the whole internet medical platform has the problems of slow response or paralysis.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a method of restricting a hospital flow, a device for restricting a hospital flow, a computer apparatus and a storage medium that overcome or at least partially solve the above problems.
In order to solve the above problems, an embodiment of the present invention discloses a method for restricting hospital flow, including:
calling a weight thread pool component to obtain hospital restriction model data; the hospital limit model data comprises preset thread thresholds corresponding to all hospital terminals;
inquiring thread running data corresponding to the request quantity of the cluster terminal or the single hospital terminal;
and when the thread running data is larger than a preset thread threshold value, limiting the request for accessing the corresponding hospital terminal.
Preferably, the method further comprises:
and calling a weight thread pool component to pool system resources of the Internet medical platform and establish a thread pool.
Preferably, the method further comprises:
acquiring a request quantity and thread running data in a preset time period;
and updating the hospital limit model data according to the request quantity and the thread running data.
Preferably, the method further comprises:
generating a platform gateway container;
running the weight thread pool component on the platform gateway container.
The embodiment of the invention also discloses a device for limiting the flow of the hospital, which comprises:
the hospital limit model data module is used for calling the weight thread pool component to obtain hospital limit model data; the hospital limit model data comprises preset thread thresholds corresponding to all hospital terminals;
the query module is used for querying thread running data corresponding to the request quantity of the cluster terminal or the single hospital terminal;
and the access limiting module is used for limiting the request for accessing the corresponding hospital terminal when the thread running data is greater than the preset thread threshold value.
Preferably, the apparatus further comprises:
and the thread pool establishing module is used for calling the weight thread pool component to pool the system resources of the Internet medical platform and establish a thread pool.
Preferably, the apparatus further comprises:
the data acquisition module is used for acquiring the request quantity and the thread running data in a preset time period;
and the updating module is used for updating the hospital restriction model data according to the request quantity and the thread running data.
Preferably, the apparatus further comprises:
the container generation module is used for generating a platform gateway container;
and the operation module is used for operating the weight thread pool component on the platform gateway container.
The embodiment of the invention also discloses computer equipment which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the hospital flow limiting method when executing the computer program.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program realizes the steps of the hospital flow limiting method when being executed by a processor.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the method for limiting the hospital flow comprises the following steps: calling a weight thread pool component to obtain hospital restriction model data; the hospital limit model data comprises preset thread thresholds corresponding to all hospital terminals; inquiring thread running data corresponding to the request quantity of the cluster terminal or the single hospital terminal; when the thread running data is larger than a preset thread threshold value, limiting the request for accessing the corresponding hospital terminal; monitoring and counting the current concurrency condition of the system, intercepting and monitoring user request data, counting the interface access condition of each hospital and mastering the system load in real time; the problem that the whole internet medical platform is slow in response or paralyzed due to the performance problems of the interfaces of part of hospitals can be prevented, and the internet medical platform is guaranteed to provide good user experience; the dependence on hardware resources is reduced, and the hardware cost is saved for enterprises.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart illustrating the steps of one embodiment of a method for restricting hospital flow in accordance with an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a thread pool establishing step according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a hospital restriction model data update procedure according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating the steps performed by the weighted thread pool component according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a hospital flow restriction system according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the operation of an Internet medical platform and an internal hospital system according to an embodiment of the present invention;
FIG. 7 is a schematic illustration of hospital restriction model data according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a current load condition of a platform gateway according to an embodiment of the present invention;
FIG. 9 is a schematic illustration of the request quantity for a flat hospital internal system according to an embodiment of the present invention;
FIG. 10 is a block diagram of an embodiment of a hospital flow restriction device according to an embodiment of the present invention;
FIG. 11 is an internal block diagram of a computer device of an embodiment.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects solved by the embodiments of the present invention more clearly apparent, the embodiments of the present invention are described in further detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for restricting hospital traffic according to an embodiment of the present invention is shown, and specifically, the method may include the following steps:
step 101, calling a weight thread pool component to obtain hospital restriction model data; the hospital limit model data comprises preset thread thresholds corresponding to all hospital terminals;
in the embodiment of the invention, the internet medical platform can be provided with a platform gateway, a weight thread pool component runs on the platform gateway, and the weight thread pool component can firstly pool all system resources of the internet medical platform and establish a thread pool.
Further applied to the embodiment of the invention, the interface of the hospital terminal which needs specific limitation can be divided into a specific interval in the thread pool and allocated to the interface of the hospital terminal with the specific limitation, thereby realizing the effect of limiting the request quantity of the interface of the hospital terminal and improving the data processing efficiency.
In the embodiment of the invention, the weight thread pool component can also acquire hospital restriction model data from other modules; the hospital restriction model data may include: the present invention is not limited to maintaining the minimum number of threads in the thread pool, the maximum thread running data allowed by the thread pool, the time unit of survival, the time for thread survival, the thread cache type, the thread reject policy, the ratio of cache to the minimum number of threads in the thread pool, and the size of the thread pool queue.
Further, the hospital restriction model data may further include: hospital identification (hospital ID), an interface of the hospital terminal and a preset thread threshold corresponding to the hospital terminal; for example, the preset thread threshold is 5 threads, which is not too limited in the embodiment of the present invention.
Step 102, inquiring thread running data corresponding to the request quantity of the cluster terminal or the single hospital terminal;
in practical application to the embodiment of the invention, the internet medical platform can also inquire the thread running data corresponding to the request quantity of the cluster terminal or the single hospital terminal;
the cluster terminal can be a set of a plurality of hospital terminals, and the weight thread pool component can monitor the request quantity and the thread running data of the corresponding hospital terminal all the time, so that the current load condition of the platform gateway can be displayed.
For example, the weight thread pool component may query a specific hospital terminal every 1 second for a request amount of 10, and the corresponding thread running data is 10.
And 103, when the thread running data is larger than a preset thread threshold value, limiting the request for accessing the corresponding hospital terminal.
In the embodiment of the invention, the thread running data can be compared with a preset thread threshold, and when the thread running data is greater than the preset thread threshold, the request of the corresponding hospital terminal can be limited; the problem that the performance of a part of hospital interfaces causes slow response or paralysis of the whole internet medical platform can be prevented, and the internet medical platform is guaranteed to provide good user experience.
Furthermore, more threads in the thread pool can be respectively transmitted to the corresponding hospital terminal, and the good running performance of the internet medical platform is further guaranteed.
In the embodiment of the invention, the method for limiting the hospital flow comprises the following steps: calling a weight thread pool component to obtain hospital restriction model data; the hospital limit model data comprises preset thread thresholds corresponding to all hospital terminals; inquiring thread running data corresponding to the request quantity of the cluster terminal or the single hospital terminal; when the thread running data is larger than a preset thread threshold value, limiting the request for accessing the corresponding hospital terminal; monitoring and counting the current concurrency condition of the system, intercepting and monitoring user request data, counting the interface access condition of each hospital and mastering the system load in real time; the problem that the whole internet medical platform is slow in response or paralyzed due to the performance problems of the interfaces of part of hospitals can be prevented, and the internet medical platform is guaranteed to provide good user experience; the dependence on hardware resources is reduced, and the hardware cost is saved for enterprises.
Referring to fig. 2, a flow chart illustrating a thread pool establishing step according to an embodiment of the present invention is shown, where the method further includes the following steps:
and 105, calling a weight thread pool component to pool system resources of the Internet medical platform and establishing a thread pool.
In the embodiment of the invention, firstly, system resources of the Internet medical platform are pooled, and a thread pool is established.
Thread pools are a form of multi-threaded processing in which tasks are added to a queue and then automatically started after a thread is created. The thread pool threads are all background threads. Each thread uses a default stack size, runs at a default priority, and is in a multi-threaded unit. If a thread is idle in managed code (e.g., waiting for an event), the thread pool will insert another helper thread to keep all processors busy. If all thread pool threads remain busy all the time, but pending work is contained in the queue, the thread pool will create another helper thread after a period of time but the number of threads never exceeds the maximum. Threads that exceed the maximum value may be queued, but will not start until other threads are completed.
Referring to fig. 3, a flow chart of a hospital restriction model data updating step according to an embodiment of the present invention is shown, and the method further includes the following steps:
step 106, acquiring a request quantity and thread running data in a preset time period;
and step 107, updating the hospital restriction model data according to the request quantity and the thread running data.
Further applied to the embodiment of the invention, the hospital limit model data can also be updated according to the real-time request quantity and the thread running data by acquiring the request quantity and the thread running data in the preset time period.
For example, the latest hospital restriction model data is generated and synchronized to the specified position according to the set calculation rule (for example, the average concurrency in the current 30 seconds is not more than 200, and the average response time of the interface in the current 30 minutes is not more than 5 seconds) by acquiring the request data of the hospital within the default 30 minutes and the thread pool operation data within the default 30 seconds; the embodiment of the invention does not limit the preset time period too much.
Referring to fig. 4, a flowchart illustrating the operation steps of the weight thread pool component according to an embodiment of the present invention is shown, where the method further includes the following steps:
step 108, generating a platform gateway container;
step 109, running the weight thread pool component on the platform gateway container.
Further, a platform gateway container can be established between the internet medical platform and the internal system of the hospital, the weight thread pool component is implanted into the platform gateway container, the weight thread pool module is loaded when the platform gateway container is started, the weight thread pool module starts to work, and the life cycle of the weight thread pool module is consistent with that of the platform gateway container.
In order that those skilled in the art will better understand the embodiments of the present invention, the following description is given by way of a specific example:
referring to fig. 5, a schematic diagram of a limiting system for hospital traffic according to an embodiment of the present invention is shown, and as shown in fig. 5, the limiting system for hospital traffic according to an embodiment of the present invention includes five modules, which are a weight thread pool module (WeightThreadPool), a consistency module (Registry), a monitoring module (Monitor), an automatic calculation module (call), and a control module (Admin), respectively. By adopting a hierarchical structure, each module can be transversely expanded without stopping according to the current system load condition.
The implementation process of the hospital flow limiting system provided by the embodiment of the invention is as follows:
1. referring to fig. 6, an operation diagram of an internet medical platform and an internal hospital system according to an embodiment of the present invention is shown, and requests from the internet medical platform to the internal hospital system are distributed through a platform gateway (gateway center). The weight thread pool module is seamlessly implanted into the platform gateway container as an independent component, the container loads the module when being started, the module starts to work, and the life cycle of the module is consistent with that of the container.
2. The weight thread pool module mainly pools all system resources, any request for a hospital must pass through the thread pool, and for a hospital interface requiring specific limitation, an independent interval is divided in the pool to be used by the interface request of the hospital, so that the capacity of limiting each interface of each hospital is obtained. When the weight thread pool module is initialized, the initial hospital limit model data can be obtained from the consistency module, and meanwhile, long connection is established with the consistency module and the change of information content is monitored. When the data of the consistency module changes, the weight thread pool module synchronizes the latest hospital restriction model data. The hospital restriction model data is shown in FIG. 7 below;
3. referring to fig. 8, which is a schematic diagram illustrating a current load condition of a platform gateway according to an embodiment of the present invention, a weight thread pool module sends current operation data to a monitoring module every 1 second, so as to subsequently monitor the platform gateway. The true concurrency (i.e. the number of requests to the hospital) of the whole cluster or a single node can be calculated by inquiring the latitude every 1 second, and the current load condition of the platform gateway can be shown. The system limits hospital interface requests in an automated or manual intervention when the load conditions exceed a predetermined threshold.
4. Referring to fig. 9, which is a schematic diagram illustrating the request quantity of the internal system of the flat hospital according to the embodiment of the present invention, the weight thread pool module further intercepts and analyzes all requests distributed to the hospital by the platform gateway, and if the requests of the hospital conform to the restriction rules set by the system (the restriction is performed on the designated interface of the hospital), the requests are directly rejected at the level of the platform gateway; instead, the request will be distributed to the hospital internal system. And finally, calculating the time consumed by the hospital request and synchronizing the request-related data to the monitoring module so as to analyze the performance of each interface of each hospital in the following process.
5. The automatic calculation module acquires the limited model data of the hospital from the consistency module and establishes long connection with the limited model data so as to be updated in real time later, meanwhile, the automatic calculation module acquires the request data of the hospital within 30 minutes (settable) and the thread pool operation data within 30 seconds (settable) from the monitoring module by default every 30 seconds (settable) and calculates the average value of each data in the time dimension. The latest hospital flow restriction model is generated according to the calculation rule set (such as the average concurrency within the current 30 seconds is not more than 200, and the average response time of the interface within the current 30 minutes is not more than 5 seconds) and synchronized to the consistency module. And the consistency module informs the acquisition module of the change through long connection, and the step 3 is repeated.
6. The control module can uniformly manage all other modules. CRUD operation can be carried out on the hospital current limiting model of the consistency module; the automatic computing module can be shielded, the automatic computing module is opened by default, and when the shielding function is started, the whole monitoring current limiting needs to be triggered manually; the current system concurrency can be obtained from the monitoring module, the response time of each interface request of each hospital can be calculated, and the like.
7. The consistency module plays a role of a bridge among the weight thread pool module, the control module and the automatic calculation module, and the platform gateway is decoupled from other modules. And a long connection and monitoring function is provided, and a data change instruction sent by the control module and the automatic calculation module is transmitted to the weight thread pool module in real time to trigger the platform gateway to synchronously change.
8. The monitoring module mainly provides the functions of mass data reporting and storage, stores all information reported by the weight thread pool module and serves as a related data source of the control module and the automatic calculation module.
In the embodiment of the invention, the current concurrency condition of the system is monitored and counted, user request data is intercepted and monitored, interface access conditions of each hospital are counted, and the system load is mastered in real time; the interface with poor hospital performance can be flexibly limited according to automatic calculation or manual processing of system load, the online operation and maintenance pressure is reduced, and the throughput of the platform is increased; the problem that the whole internet medical platform is slow in response or paralyzed due to the performance problems of the interfaces of part of hospitals can be prevented, and the internet medical platform is guaranteed to provide good user experience; the dependence on hardware resources is reduced, and the hardware cost is saved for enterprises; the problem that the performance of the interfaces of a part of hospitals is poor, so that the whole Internet medical platform is slow in response or paralyzed is prevented.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 10, a block diagram of a structure of an embodiment of a restriction device for hospital flow according to an embodiment of the present invention is shown, and specifically, the restriction device may include the following modules:
a hospital restriction model data module 301, configured to call the weight thread pool component to obtain hospital restriction model data; the hospital limit model data comprises preset thread thresholds corresponding to all hospital terminals;
the query module 302 is configured to query thread running data corresponding to a request amount of a cluster terminal or a single hospital terminal;
and the access limiting module 303 is configured to limit the request for accessing the corresponding hospital terminal when the thread running data is greater than the preset thread threshold.
Preferably, the apparatus further comprises:
and the thread pool establishing module is used for calling the weight thread pool component to pool the system resources of the Internet medical platform and establish a thread pool.
Preferably, the apparatus further comprises:
the data acquisition module is used for acquiring the request quantity and the thread running data in a preset time period;
and the updating module is used for updating the hospital restriction model data according to the request quantity and the thread running data.
Preferably, the apparatus further comprises:
the container generation module is used for generating a platform gateway container;
and the operation module is used for operating the weight thread pool component on the platform gateway container.
The modules in the restriction device for hospital flow can be implemented in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The restriction device for the hospital flow provided by the above can be used for executing the restriction method for the hospital flow provided by any of the above embodiments, and has corresponding functions and beneficial effects.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of restricting hospital flow. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory having a computer program stored therein and a processor implementing the steps of the embodiments of fig. 1-5 when executing the computer program.
In one embodiment, a computer readable storage medium is provided, having stored thereon a computer program, which when executed by a processor, performs the steps of the embodiments of fig. 1-5 below.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The method for limiting hospital flow, the device for limiting hospital flow, the computer device and the storage medium provided by the present invention are described in detail above, and specific examples are applied herein to illustrate the principle and the implementation of the present invention, and the above description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of restricting hospital flow, comprising:
calling a weight thread pool component to obtain hospital restriction model data; the hospital limit model data comprises preset thread thresholds corresponding to all hospital terminals;
inquiring thread running data corresponding to the request quantity of the cluster terminal or the single hospital terminal;
and when the thread running data is larger than a preset thread threshold value, limiting the request for accessing the corresponding hospital terminal.
2. The hospital flow restriction method of claim 1, further comprising:
and calling a weight thread pool component to pool system resources of the Internet medical platform and establish a thread pool.
3. The hospital flow restriction method of claim 1, further comprising:
acquiring a request quantity and thread running data in a preset time period;
and updating the hospital limit model data according to the request quantity and the thread running data.
4. The hospital flow restriction method of claim 1, further comprising:
generating a platform gateway container;
running the weight thread pool component on the platform gateway container.
5. A hospital flow restriction device, comprising:
the hospital limit model data module is used for calling the weight thread pool component to obtain hospital limit model data; the hospital limit model data comprises preset thread thresholds corresponding to all hospital terminals;
the query module is used for querying thread running data corresponding to the request quantity of the cluster terminal or the single hospital terminal;
and the access limiting module is used for limiting the request for accessing the corresponding hospital terminal when the thread running data is greater than the preset thread threshold value.
6. The hospital flow restriction device of claim 5, further comprising:
and the thread pool establishing module is used for calling the weight thread pool component to pool the system resources of the Internet medical platform and establish a thread pool.
7. The hospital flow restriction device of claim 5, further comprising:
the data acquisition module is used for acquiring the request quantity and the thread running data in a preset time period;
and the updating module is used for updating the hospital restriction model data according to the request quantity and the thread running data.
8. The hospital flow restriction device of claim 5, further comprising:
the container generation module is used for generating a platform gateway container;
and the operation module is used for operating the weight thread pool component on the platform gateway container.
9. A computer device comprising a memory and a processor, said memory storing a computer program, characterized in that said processor, when executing said computer program, carries out the steps of the method for restricting hospital flow according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of restricting hospital flow according to any one of claims 1 to 4.
CN202010741788.7A 2020-07-29 2020-07-29 Hospital flow limiting method and device, computer equipment and storage medium Pending CN111899858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010741788.7A CN111899858A (en) 2020-07-29 2020-07-29 Hospital flow limiting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010741788.7A CN111899858A (en) 2020-07-29 2020-07-29 Hospital flow limiting method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111899858A true CN111899858A (en) 2020-11-06

Family

ID=73182341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010741788.7A Pending CN111899858A (en) 2020-07-29 2020-07-29 Hospital flow limiting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111899858A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107276857A (en) * 2017-08-16 2017-10-20 郑州云海信息技术有限公司 A kind of method and device for monitoring flow
CN108848037A (en) * 2018-05-31 2018-11-20 平安医疗科技有限公司 Service request processing method, device, computer equipment and storage medium
CN110224943A (en) * 2019-05-29 2019-09-10 掌阅科技股份有限公司 Traffic service current-limiting method, electronic equipment and computer storage medium based on URL
CN110781018A (en) * 2019-10-28 2020-02-11 深圳市思迪信息技术股份有限公司 Method and device for isolating, limiting current and preventing avalanche of distributed system service assembly
CN111262791A (en) * 2020-01-08 2020-06-09 江苏满运软件科技有限公司 Flow control method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107276857A (en) * 2017-08-16 2017-10-20 郑州云海信息技术有限公司 A kind of method and device for monitoring flow
CN108848037A (en) * 2018-05-31 2018-11-20 平安医疗科技有限公司 Service request processing method, device, computer equipment and storage medium
CN110224943A (en) * 2019-05-29 2019-09-10 掌阅科技股份有限公司 Traffic service current-limiting method, electronic equipment and computer storage medium based on URL
CN110781018A (en) * 2019-10-28 2020-02-11 深圳市思迪信息技术股份有限公司 Method and device for isolating, limiting current and preventing avalanche of distributed system service assembly
CN111262791A (en) * 2020-01-08 2020-06-09 江苏满运软件科技有限公司 Flow control method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11550630B2 (en) Monitoring and automatic scaling of data volumes
US9665391B2 (en) Automated transaction tuning in application servers
EP1679602B1 (en) Shared memory based monitoring for application servers
CN111580954B (en) Extensible distributed data acquisition method and system
US7523196B2 (en) Session monitoring using shared memory
WO2021159638A1 (en) Method, apparatus and device for scheduling cluster queue resources, and storage medium
CN109412874B (en) Equipment resource configuration method, device, server and storage medium
US20020116479A1 (en) Service managing apparatus
CN110351366B (en) Service scheduling system and method for internet application and storage medium
US20210258267A1 (en) System and method for autonomous and dynamic resource allocation in storage systems
CA2533744C (en) Hierarchical management of the dynamic allocation of resources in a multi-node system
Doherty et al. Managing VM/CMS systems for user effectiveness
CN110300188B (en) Data transmission system, method and device
CN112445615A (en) Thread scheduling system, computer equipment and storage medium
CN112272201B (en) Equipment management method, system and management cluster
CN113672345A (en) IO prediction-based cloud virtualization engine distributed resource scheduling method
CN117555913A (en) Object data updating method and device based on third party platform
CN111899858A (en) Hospital flow limiting method and device, computer equipment and storage medium
US8806500B2 (en) Dynamically setting the automation behavior of resources
US20230017127A1 (en) Extract-transform-load (e-t-l) process using static runtime with dynamic work orders
CN114363395A (en) Session processing method, device and computer readable storage medium
CN112000720A (en) Management method and management system for database connection and database connection pool
CN106850283A (en) One kind is based on event driven cloud AC alarming processing system and methods
CN117873719A (en) Cluster dynamic updating method based on DevOps
Cardoso et al. Employment of optimal approximations on apache hadoop checkpoint technique for performance improvements

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination