CN109726043A - Application service control method and device - Google Patents

Application service control method and device Download PDF

Info

Publication number
CN109726043A
CN109726043A CN201811043831.1A CN201811043831A CN109726043A CN 109726043 A CN109726043 A CN 109726043A CN 201811043831 A CN201811043831 A CN 201811043831A CN 109726043 A CN109726043 A CN 109726043A
Authority
CN
China
Prior art keywords
service
application
weight
server
mistake
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
CN201811043831.1A
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.)
NetsUnion Clearing Corp
Original Assignee
NetsUnion Clearing Corp
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 NetsUnion Clearing Corp filed Critical NetsUnion Clearing Corp
Priority to CN201811043831.1A priority Critical patent/CN109726043A/en
Publication of CN109726043A publication Critical patent/CN109726043A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The present invention proposes a kind of application service control method and device, and wherein method includes: whether the state of detection application changes;It is to start using the service provided, and initial weight is set for service to the server where applying if being transformed into initiate mode using from halted state;The service request of service is periodically detected with the presence or absence of mistake;If mistake is not present in the service request of service, and the weight of service is double, until reaching default weight, stop detection;If there are mistakes for the service request of service, the weight of service is adjusted to initial weight, and disabling server is using the service provided.Thus, it is corresponding control to be carried out using the service provided, and detect to service after starting to server according to the state change of application, and serviced according to testing result to adjust weight and decide whether to disable, it can be realized and application service is effectively and precisely controlled.

Description

Application service control method and device
Technical field
The present invention relates to Internet technical field more particularly to a kind of application service control method and device.
Background technique
Currently, being to be controlled (such as enabling, weight adjustment of application service etc.) using the service provided to server It is all by manually operating and confirming in batches.Therefore, it may appear that the artificial operational risk such as operation error, operation careless omission, together When also because of manual operation timeliness the problem of, can not effectively control the coverage of exception service.Additionally due to just whether service Normal confirmation also relies on the experience and technical level of operator, and the service of being unable to judge accurately is normal.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of application service control method, for solving the prior art When middle progress application service control, manual operation be difficult in time, the problem of effectively application service is controlled.
Second object of the present invention is to propose a kind of application service control device.
Third object of the present invention is to propose another application service control device.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
5th purpose of the invention is to propose a kind of computer program product.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of application service control method, comprising:
Whether the state of detection application changes;
It is the application to the server where the application if the application is transformed into initiate mode from halted state The service of offer is started, and initial weight is arranged for the service;
The service request of service is periodically detected with the presence or absence of mistake;
If mistake is not present in the service request of the service, and the weight of the service is double, until reaching default power Weight stops detection;
If there are mistakes for the service request of the service, the weight of the service is adjusted to the initial weight, and Disabling the server is the service that the application provides.
Further, the method, further includes:
If the application is transformed into halted state from initiate mode, disabling the server is the clothes that the application provides Business;
Flow detection periodically is carried out to the application, obtains current flow value;
If the flow value is less than preset flow value or flow detection number is more than or equal to preset times threshold value, stop Only process relevant to the application.
Further, it is at least two that the server, which is the quantity for the service that the application provides,;
It is corresponding, it is if mistake is not present in the service request of the service, the weight of the service is double, until reaching Default weight, stops detection, comprising:
It is if mistake is all not present in the service request of all services, the weight of all services is double, until all services Weight reach default weight, stop detection;
If there are mistakes for the service request of the service, the weight of the service is adjusted to the initial weight, and Disabling the server is the service that the application provides, comprising:
There are mistakes for the service request of first service if it exists, then the weight of all services are adjusted to the initial power Weight, and disabling the server is all services that the application provides.
It further, is that the mode that service that the application provides is started is to the server where the application, The first api interface for calling service governing system to provide, so that it is that the application mentions that service governing system, which starts the server, The service of confession;
Disabling the mode that the server is the service that the application provides is, calls second that service governing system provides Api interface, so that it is the service that the application provides that service governing system, which disables the server,.
Whether the application service control method of the embodiment of the present invention is changed by the state of detection application, is being applied Be to start using the service that provides to the server where application when being transformed into initiate mode from halted state, and to service Initial weight is set, and the service request for being periodically detected service is not present with the presence or absence of mistake in the service request of service It is when mistake that the weight of service is double, until reaching default weight, stop detection, it will when the service request of service has mistake The weight of service is adjusted to initial weight, and disabling server is using the service provided.Become as a result, according to the state of application Change, be to server corresponding control is carried out using the service that provides, and detect to starting service later, and according to Testing result services to adjust weight and decide whether to disable, and can be realized and effectively and precisely controls application service.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of application service control device, comprising:
Whether detection module, the state for detecting application change;
Starting module, for it is described application be transformed into initiate mode from halted state when, to the clothes where the application Business device is that the service that the application provides is started, and initial weight is arranged for the service;
The detection module is also used to be periodically detected the service request of service with the presence or absence of mistake;
Module is adjusted, it is when mistake is not present for the service request in the service, the weight of the service is double, directly To default weight is reached, stop detection;
The adjustment module is also used to when the service request of the service has mistake, by the weight tune of the service Whole is the initial weight, and disabling the server is the service that the application provides.
Further, the device, further includes: disabled module and processing module;
The disabled module, for disabling the server when the application is transformed into halted state from initiate mode The service provided for the application;
The detection module is also used to periodically carry out flow detection to the application, obtains current flow value;
The processing module, for being more than or equal in the flow value less than preset flow value or flow detection number When preset times threshold value, stop process relevant to the application.
Further, it is at least two that the server, which is the quantity for the service that the application provides,;
Corresponding, the adjustment module is specifically used for, and when all mistake is not present in the service request of all services, will own The weight of service is double, until the weight of all services reaches default weight, stops detection;
The adjustment module is specifically also used to, when there is mistake there are the service request of first service, by all services Weight be adjusted to the initial weight, and disabling the server is all services for providing of the application.
It further, is that the mode that service that the application provides is started is to the server where the application, The first api interface for calling service governing system to provide, so that it is that the application mentions that service governing system, which starts the server, The service of confession;
Disabling the mode that the server is the service that the application provides is, calls second that service governing system provides Api interface, so that it is the service that the application provides that service governing system, which disables the server,.
Whether the application service control device of the embodiment of the present invention is changed by the state of detection application, is being applied Be to start using the service that provides to the server where application when being transformed into initiate mode from halted state, and to service Initial weight is set, and the service request for being periodically detected service is not present with the presence or absence of mistake in the service request of service It is when mistake that the weight of service is double, until reaching default weight, stop detection, it will when the service request of service has mistake The weight of service is adjusted to initial weight, and disabling server is using the service provided.Become as a result, according to the state of application Change, be to server corresponding control is carried out using the service that provides, and detect to starting service later, and according to Testing result services to adjust weight and decide whether to disable, and can be realized and effectively and precisely controls application service.
In order to achieve the above object, third aspect present invention embodiment proposes another application service control device, comprising: deposit Reservoir, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that the processing Device realizes application service control method as described above when executing described program.
To achieve the goals above, fourth aspect present invention embodiment proposes a kind of computer readable storage medium, On be stored with computer program, which realizes application service control method as described above when being executed by processor.
To achieve the goals above, fifth aspect present invention embodiment proposes a kind of computer program product, when described When instruction processing unit in computer program product executes, application service control method as described above is realized.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of application service control method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another application service control method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of application service control device provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of another application service control device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another application service control device provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the application service control method and device of the embodiment of the present invention are described.
Fig. 1 is a kind of flow diagram of application service control method provided in an embodiment of the present invention.As shown in Figure 1, should Application service control method the following steps are included:
Whether the state that S101, detection are applied changes.
The executing subject of application service control method provided by the invention is application service control device, application service control Device can be the hardware devices such as mobile phone, tablet computer and intelligent wearable device, or the software to install on hardware device.
In the present embodiment, the state of application refers to the states such as enabling, the stopping of application, so that the state change of application refers to Be to be transformed into initiate mode from halted state or be to be transformed into halted state from initiate mode.
It is understood that whether can be changed using the state that a variety of modes detect application, it can as one kind The mode being able to achieve is previously provided with using enabling, the corresponding Software Development Kit of halted state monitoring function.
S102 provides the server application where application if being transformed into initiate mode using from halted state Service is started, and is service setting initial weight.
It is that application mentions to the server where application when application is transformed into initiate mode from halted state in the present embodiment The service of confession start and initial weight is arranged for service.
In the present embodiment, server is that can be one or more using the quantity of the service provided, can be according to reality Border application needs to carry out selection setting.
In the present embodiment, the service that a variety of modes can be used to provide the server where application for application is opened It is dynamic, as an example, the first API (the Application Programming for calling service governing system to provide Interface, application programming interface) interface, so that service governing system starting server is using the service provided.Its In, service governing system provide service administer it is relevant, provided in a manner of HTTP, realize the relevant interface of access control, It can accomplish in the case where not restarting application, the relevant configuration of service is adjusted.
In the present embodiment, the setting of initial weight can carry out selection setting, such as setting clothes according to the actual application The initial weight of business is 2.
S103 is periodically detected the service request of service with the presence or absence of mistake.
S104, it is if mistake is not present in the service request of service, the weight of service is double, until default weight is reached, Stop detection.
The weight of service is adjusted to initial weight, and disable service if there are mistakes for the service request of service by S105 Device is using the service provided.
In the present embodiment, the period can carry out selection setting such as 1ms according to the actual application.It is understood that It can receive service request after service starting, and service request handled, it in practical applications, may be due to service There is mistake in the service request that the range of request is unable to satisfy, servicing occur in too big etc. reasons of request entity.Therefore, than Such as being set as needed the corresponding period is detected by service request of the interface testing tool to service or is to exist in advance Flow detection module is integrated in, has detected whether that mistake occurs during processing for service request by flow detection module Accidentally.
Further, when mistake is not present in the service request of service that the weight of service is double, until reaching default weigh Weight stops detection;The weight of service is adjusted to initial weight when the service request of service has mistake, and disables server The service provided for application.
For example, all services that present node provides are enabled by the first API that service governing system provides, and will Initial weight is set as 2, later by the flow detection module integrated in application, has detected whether that request is sent out during processing Raw mistake, is adjusted to original 2 times for the weight of service if not, has then detected whether service request processed again Mistake occurs in journey, is circuited sequentially down if not, until weight is adjusted to 1024, that is, has carried out 10 power in total Recanalization and flow detection, if discovery has service request that mistake occurs during processing during detection, immediately Service is disabled, and service weight is adjusted to initial weight 2.
It should be noted that when server be using the quantity of the service provided is at least two, in all services Service request is all not present when mistake that the weight of all services is double, until the weight of all services reaches default weight, stops Only detect;The weight of all services is adjusted to initial weight when the service request of first service has mistake if it exists, and is prohibited It is using all services provided with server.
In the present embodiment, the service that a variety of modes can be used to provide the server where application for application is opened It is dynamic, as an example, the 2nd API (the Application Programming for calling service governing system to provide Interface, application programming interface) interface, so that service governing system disabling server is using the service provided.
Whether the application service control method of the embodiment of the present invention is changed by the state of detection application, is being applied Be to start using the service that provides to the server where application when being transformed into initiate mode from halted state, and to service Initial weight is set, and the service request for being periodically detected service is not present with the presence or absence of mistake in the service request of service It is when mistake that the weight of service is double, until reaching default weight, stop detection, it will when the service request of service has mistake The weight of service is adjusted to initial weight, and disabling server is using the service provided.Become as a result, according to the state of application Change, be to server corresponding control is carried out using the service that provides, and detect to starting service later, and according to Testing result services to adjust weight and decide whether to disable, and can be realized and effectively and precisely controls application service.
Based on the above embodiment, it will also be appreciated that can be corresponded to when disabling server and being using the service provided With flow detection is carried out, the validity of application service control is further increased, is specifically described as follows in conjunction with Fig. 2:
Fig. 2 is the flow diagram of another application service control method provided in an embodiment of the present invention.As shown in Fig. 2, After step 101, the application service control method is further comprising the steps of:
If S201, being transformed into halted state using from initiate mode, disabling server is using the service provided.
S202, flow detection periodically is carried out to application, obtains current flow value;
S203 stops if flow value is less than preset flow value or flow detection number is more than or equal to preset times threshold value Only and using relevant process.
In the present embodiment, the service that a variety of modes can be used to provide the server where application for application is opened It is dynamic, as an example, the 2nd API (the Application Programming for calling service governing system to provide Interface, application programming interface) interface, so that service governing system disabling server is using the service provided.
Specifically, it is applying in halted state, present node is disabled by the 2nd API that service governing system provides and is provided All services, and weight is adjusted to initial weight, was periodically such as carried out later every one second by flow detection module Flow detection, obtains current flow value, then by flow value and preset flow value (can according to the actual application into Row selection setting) it is compared, stop when flow value is less than preset flow value and applies relevant process;It can also be flow It detects and stops when number is more than or equal to preset times threshold value (can carry out selection setting according to the actual application) and apply phase The process of pass.For example check 10 times in total, checking flow value is that 0 or less than A or 10 time inspection terminate, and will execute stopping The operation of application process.
As a result, to the detection of flow of services, decide whether to enable or disable service according to the testing result of flow of services, So that flow is lossless, and realize on whether service normally detects, accomplish accurate, timely, further increases application service control The validity and accuracy of system.
Fig. 3 is a kind of structural schematic diagram of application service control device provided in an embodiment of the present invention.As shown in Fig. 2, packet It includes: detection module 21, starting module 22 and adjustment module 23.
Wherein, whether detection module 21, the state for detecting application change.
Starting module 22, for being to the server where application when application is transformed into initiate mode from halted state Started using the service of offer, and is service setting initial weight.
Detection module 21 is also used to be periodically detected the service request of service with the presence or absence of mistake.
Module 23 is adjusted, it is when mistake is not present for the service request in service, the weight of service is double, until reaching Default weight, stops detection.
Module 23 is adjusted, is also used to be adjusted to initially to weigh by the weight of service when the service request of service has mistake Weight, and disabling server is using the service provided.
In the present embodiment, it is at least two that server, which is using the quantity of the service provided,;Corresponding, adjustment module 23 has Body is used for, when all mistake is not present in the service request of all services, the weight of all services is double, until all services Weight reaches default weight, stops detection.
Adjustment module 23 is specifically also used to, when there is mistake there are the service request of first service, by all services Weight is adjusted to initial weight, and disabling server is using all services provided.
It is that the mode started using the service provided is to the server where application in the present embodiment, calls clothes The first api interface that business governing system provides, so that service governing system starting server is using the service provided;Disabling clothes Business device is to be using the mode of the service provided, the second api interface for calling service governing system to provide, so that service improvement system It is using the service provided that system, which disables the server,.
Further, in conjunction with reference Fig. 4, on the basis of embodiment illustrated in fig. 3, the device can also include: disabling Module 24 and processing module 25.
Wherein, disabled module 24, for when application is transformed into halted state from initiate mode, disabling server to be application The service of offer.
Detection module 21 is also used to periodically carry out flow detection to application, obtains current flow value.
Processing module 25, for being less than preset flow value or flow detection number more than or equal to default time in flow value When number threshold value, stops and apply relevant process.
As a result, to the detection of flow of services, decide whether to enable or disable service according to the testing result of flow of services, So that flow is lossless, and realize on whether service normally detects, accomplish accurate, timely, further increases application service control The validity and accuracy of system.
Whether the application service control device of the embodiment of the present invention is changed by the state of detection application, is being applied Be to start using the service that provides to the server where application when being transformed into initiate mode from halted state, and to service Initial weight is set, and the service request for being periodically detected service is not present with the presence or absence of mistake in the service request of service It is when mistake that the weight of service is double, until reaching default weight, stop detection, it will when the service request of service has mistake The weight of service is adjusted to initial weight, and disabling server is using the service provided.Become as a result, according to the state of application Change, be to server corresponding control is carried out using the service that provides, and detect to starting service later, and according to Testing result services to adjust weight and decide whether to disable, and can be realized and effectively and precisely controls application service.
Fig. 5 is the structural schematic diagram of another application service control device provided in an embodiment of the present invention.The application service Control device includes:
Memory 1001, processor 1002 and it is stored in the calculating that can be run on memory 1001 and on processor 1002 Machine program.
Processor 1002 realizes the application service control method provided in above-described embodiment when executing described program.
Further, application service control device further include:
Communication interface 1003, for the communication between memory 1001 and processor 1002.
Memory 1001, for storing the computer program that can be run on processor 1002.
Memory 1001 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatilememory), a for example, at least magnetic disk storage.
Processor 1002 realizes application service control method described in above-described embodiment when for executing described program.
If memory 1001, processor 1002 and the independent realization of communication interface 1003, communication interface 1003, memory 1001 and processor 1002 can be connected with each other by bus and complete mutual communication.The bus can be industrial standard Architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in Fig. 5, it is not intended that an only bus or a type of convenient for indicating Bus.
Optionally, in specific implementation, if memory 1001, processor 1002 and communication interface 1003, are integrated in one It is realized on block chip, then memory 1001, processor 1002 and communication interface 1003 can be completed mutual by internal interface Communication.
Processor 1002 may be a central processing unit (Central Processing Unit, referred to as CPU), or Person is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or quilt It is configured to implement one or more integrated circuits of the embodiment of the present invention.
The present invention also provides a kind of non-transitorycomputer readable storage mediums, are stored thereon with computer program, the journey Application service control method as described above is realized when sequence is executed by processor.
The present invention also provides a kind of computer program products, when the instruction processing unit in the computer program product executes When, realize application service control method as described above.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (11)

1. a kind of application service control method characterized by comprising
Whether the state of detection application changes;
If the application is transformed into initiate mode from halted state, the server where the application is provided for the application Service started, and for the service setting initial weight;
The service request of service is periodically detected with the presence or absence of mistake;
If mistake is not present in the service request of the service, and the weight of the service is double, until reaching default weight, stop Only detect;
If there are mistakes for the service request of the service, the weight of the service is adjusted to the initial weight, and disable The server is the service that the application provides.
2. the method according to claim 1, wherein further include:
If the application is transformed into halted state from initiate mode, disabling the server is the service that the application provides;
Flow detection periodically is carried out to the application, obtains current flow value;
If the flow value is less than preset flow value or flow detection number and is more than or equal to preset times threshold value, stop with It is described to apply relevant process.
3. the method according to claim 1, wherein the server is the quantity for the service that the application provides It is at least two;
It is corresponding, it is if mistake is not present in the service request of the service, the weight of the service is double, until reaching default Weight stops detection, comprising:
It is if mistake is all not present in the service request of all services, the weight of all services is double, until the power of all services Default weight is reached again, stops detection;
If there are mistakes for the service request of the service, the weight of the service is adjusted to the initial weight, and disable The server is the service that the application provides, comprising:
There are mistakes for the service request of first service if it exists, then the weight of all services are adjusted to the initial weight, and Disabling the server is all services that the application provides.
4. the method according to claim 1, wherein being provided for the application the server where the application The mode that is started of service be the first api interface for calling service governing system to provide so that service governing system starting The server is the service that the application provides;
Disabling the mode that the server is the service that the application provides is, the 2nd API for calling service governing system to provide Interface, so that it is the service that the application provides that service governing system, which disables the server,.
5. a kind of application service control device characterized by comprising
Whether detection module, the state for detecting application change;
Starting module, for it is described application be transformed into initiate mode from halted state when, to the server where the application The service provided for the application is started, and initial weight is arranged for the service;
The detection module is also used to be periodically detected the service request of service with the presence or absence of mistake;
Module is adjusted, it is when mistake is not present for the service request in the service, the weight of the service is double, until arriving Up to default weight, stop detection;
The adjustment module is also used to be adjusted to the weight of the service when the service request of the service has mistake The initial weight, and disabling the server is the service that the application provides.
6. device according to claim 5, which is characterized in that further include: disabled module and processing module;
The disabled module, for disabling the server as institute when the application is transformed into halted state from initiate mode It states using the service provided;
The detection module is also used to periodically carry out flow detection to the application, obtains current flow value;
The processing module, for being less than preset flow value or flow detection number more than or equal to default in the flow value When frequency threshold value, stop process relevant to the application.
7. device according to claim 5, which is characterized in that the server is the quantity for the service that the application provides It is at least two;
Corresponding, the adjustment module is specifically used for, when all mistake is not present in the service request of all services, by all services Weight it is double, until the weight of all services reaches default weight, stop detection;
The adjustment module is specifically also used to, when there is mistake there are the service request of first service, by the power of all services Recanalization is the initial weight, and disabling the server is all services that the application provides.
8. device according to claim 5, which is characterized in that provided for the application the server where the application The mode that is started of service be the first api interface for calling service governing system to provide so that service governing system starting The server is the service that the application provides;
Disabling the mode that the server is the service that the application provides is, the 2nd API for calling service governing system to provide Interface, so that it is the service that the application provides that service governing system, which disables the server,.
9. a kind of application service control device characterized by comprising
Memory, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that institute State the application service control method realized as described in any in claim 1-4 when processor executes described program.
10. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the program The application service control method as described in any in claim 1-4 is realized when being executed by processor.
11. a kind of computer program product realizes such as right when the instruction processing unit in the computer program product executes It is required that any application service control method in 1-4.
CN201811043831.1A 2018-09-07 2018-09-07 Application service control method and device Pending CN109726043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811043831.1A CN109726043A (en) 2018-09-07 2018-09-07 Application service control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811043831.1A CN109726043A (en) 2018-09-07 2018-09-07 Application service control method and device

Publications (1)

Publication Number Publication Date
CN109726043A true CN109726043A (en) 2019-05-07

Family

ID=66295382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811043831.1A Pending CN109726043A (en) 2018-09-07 2018-09-07 Application service control method and device

Country Status (1)

Country Link
CN (1) CN109726043A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112260966A (en) * 2020-10-18 2021-01-22 苏州斯玛维科技有限公司 Flow distribution control method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354677A (en) * 2008-09-11 2009-01-28 青岛海信移动通信技术股份有限公司 Method for detecting and restoring application program running state and restoring device thereof
CN105302637A (en) * 2015-10-13 2016-02-03 广东欧珀移动通信有限公司 Method, device, and mobile terminal for recovering stuck caused by system process running abnormally
CN107885588A (en) * 2017-11-21 2018-04-06 广东欧珀移动通信有限公司 Control method, device and the storage medium and mobile terminal of application service
CN108134761A (en) * 2016-12-01 2018-06-08 中兴通讯股份有限公司 A kind of APT detection methods, system and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101354677A (en) * 2008-09-11 2009-01-28 青岛海信移动通信技术股份有限公司 Method for detecting and restoring application program running state and restoring device thereof
CN105302637A (en) * 2015-10-13 2016-02-03 广东欧珀移动通信有限公司 Method, device, and mobile terminal for recovering stuck caused by system process running abnormally
CN108134761A (en) * 2016-12-01 2018-06-08 中兴通讯股份有限公司 A kind of APT detection methods, system and device
CN107885588A (en) * 2017-11-21 2018-04-06 广东欧珀移动通信有限公司 Control method, device and the storage medium and mobile terminal of application service

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112260966A (en) * 2020-10-18 2021-01-22 苏州斯玛维科技有限公司 Flow distribution control method, device and storage medium
CN112260966B (en) * 2020-10-18 2024-01-12 苏州斯玛维科技有限公司 Traffic distribution control method, apparatus and storage medium

Similar Documents

Publication Publication Date Title
CN107332711B (en) Vehicular diagnostic method and device
CN109739770B (en) Debugging method and device for small program
CN106599298A (en) Advertisement blocking method and device and terminal equipment
CN104835056A (en) Information push method and information push system
CN109409096A (en) Kernel loophole restorative procedure, device, server and system
CN107346267A (en) A kind of cpu performance optimization method and device based on NUMA architecture
CN108874549A (en) resource multiplexing method, device, terminal and computer readable storage medium
CN111475218A (en) Server starting method, server and computer readable storage medium
CN109391512A (en) A kind of service issuing method, device and electronic equipment
CN106873970A (en) The installation method and device of a kind of operating system
CN113760543B (en) Resource management method, device, electronic device and computer-readable storage medium
CN109739700B (en) Interface testing method and device
CN112333246B (en) ABtest experiment method and device, intelligent terminal and storage medium
CN110471790A (en) The treating method and apparatus of computer equipment, product and its data task
CN109726043A (en) Application service control method and device
CN104731577B (en) Multisystem and the method for starting the multisystem
CN109376072A (en) Application development method and apparatus based on third party's Component Gallery
CN110798462A (en) Smart home system and equipment access method
CN106528199A (en) Method and terminal for updating automobile instrument panel system
US20150242655A1 (en) Apparatus and Method for Software Enabled Access to Protected Hardware Resources
CN103345454B (en) A kind of peripheral device connection method of mobile terminal
CN106598642B (en) Method and device for using service in plug-in
CN108874676A (en) Method and device for distributing test resources
CN105095072B (en) Application testing method and device and terminal
CN104281587A (en) Connection establishing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190507

RJ01 Rejection of invention patent application after publication