CN106550010A - A kind of real-time control distributed system calls external system to service the method and system of the frequency - Google Patents

A kind of real-time control distributed system calls external system to service the method and system of the frequency Download PDF

Info

Publication number
CN106550010A
CN106550010A CN201610838960.4A CN201610838960A CN106550010A CN 106550010 A CN106550010 A CN 106550010A CN 201610838960 A CN201610838960 A CN 201610838960A CN 106550010 A CN106550010 A CN 106550010A
Authority
CN
China
Prior art keywords
frequency
service node
calls
real
interface
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
CN201610838960.4A
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.)
Nanjing Tu Niu Science And Technology Ltd
Original Assignee
Nanjing Tu Niu Science And Technology 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 Nanjing Tu Niu Science And Technology Ltd filed Critical Nanjing Tu Niu Science And Technology Ltd
Priority to CN201610838960.4A priority Critical patent/CN106550010A/en
Publication of CN106550010A publication Critical patent/CN106550010A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of real-time control distributed system calls the method that external system services the frequency, the frequency is called to carry out monitor in real time each service node interface by caching server, deployment arbitrating server is collected each service node interface and calls the frequency to be analyzed, and is controlled by way of arranging each service node interface and calling frequency threshold value.The invention also discloses a kind of real-time control distributed system calls the system that external system services the frequency, including multiple service nodes, caching server and arbitrating server.What the present invention was capable of each service node interface of monitor in real time distributed system calls the frequency, effectively reduces overclocking risk.

Description

A kind of real-time control distributed system calls external system to service the method and system of the frequency
Technical field
The present invention relates to a kind of real-time control distributed system calls external system to service the method and system of the frequency.
Background technology
Hotel Products are related to the problem of multi-provider service access, and the service ability of different supplier interfaces is irregular not Together, so to calling the frequency to have strict restriction.The restriction of the sum and QPS that usually call in a period of time.Once it is super Frequently, the service in a period of time will be caused unavailable, Consumer's Experience and portfolio will be had a strong impact on.Application server typically divides Dissipating to be deployed in each calls the frequency of supplier interface effectively cannot control in real time in multiple stage physical machine.Accordingly, there exist Larger overclocking risk.
The content of the invention
Goal of the invention:It is an object of the invention to provide a kind of real-time control that can solve the problem that defect present in prior art Distributed system calls external system to service the method and system of the frequency.
Technical scheme:Real-time control distributed system of the present invention calls the method that external system services the frequency, passes through Caching server calls the frequency to carry out monitor in real time to each service node interface, and deployment arbitrating server is collected each service node and connect Mouth calls the frequency to be analyzed, and is controlled by way of arranging each service node interface and calling frequency threshold value.
Further, threshold value of the supplier interface within a counting cycle is initialized after the arbitrating server starts, and Reset before the next counting cycle starts the threshold value;Additionally, the arbitrating server can receive to each service node interface The configuration that frequency threshold value is arranged.
Further, cipher key access caching server of each service node by service node interface, obtains the service Node can currently use with specified number;If do not get that the service node can currently use with specified number, according to supplier Interface currently always can be judged whether continue to access supplier interface with the value of surplus, and supplier interface currently always may be used Related reducing is carried out with the value of surplus and the service node itself threshold value.
Further, each service node is divided to the priority of different call requests, and is calling limited feelings Different process are made to different requests according to priority under condition.
Further, call it is limited in the case of different process are made according to following to different requests according to priority Method is carried out:The call request of high priority enters rest period, and the next counting cycle wakes up the tune of the high priority when opening With request;The call request of low priority is directly abandoned.
Real-time control distributed system of the present invention calls the system that external system services the frequency, including multiple service sections Point, caching server and arbitrating server;Wherein:
Service node:For processing various call requests;
Caching server:For calling the frequency to carry out monitor in real time each service node interface;
Arbitrating server:The frequency is called to be analyzed for collecting each service node interface, and by arranging each service section Point interface calls the mode of frequency threshold value to be controlled.
Beneficial effect:The invention discloses a kind of real-time control distributed system call external system service the frequency method and System, be capable of each service node interface of monitor in real time distributed system call the frequency, effectively reduce overclocking risk.
Description of the drawings
Fig. 1 is the structured flowchart of system in the specific embodiment of the invention;
Fig. 2 is the workflow diagram of arbitrating server in the specific embodiment of the invention;
Fig. 3 is the workflow diagram of service node in the specific embodiment of the invention.
Specific embodiment
This specific embodiment discloses a kind of method that real-time control distributed system calls external system to service the frequency, leads to Cross caching server calls the frequency to carry out monitor in real time to each service node interface, and deployment arbitrating server collects each service node The interface interchange frequency is analyzed, and is controlled by way of arranging each service node interface and calling frequency threshold value.This tool Body embodiment also discloses the system that a kind of real-time control distributed system calls external system to service the frequency, as shown in figure 1, bag Include three service node examples, caching server and arbitrating servers.
Arbitrating server initializes threshold value of the supplier interface within a counting cycle after starting, and in next counting Cycle starts the front threshold value that resets, and can also receive to carry out service node interface the configuration of assignment such that it is able to each service Example accesses the frequency of supplier interface and is controlled.
What caching server collected each server interface calls the frequency, as shown in Fig. 2 and then judging each server interface Call the frequency whether to exceed and call frequency threshold value, and call the service node of frequency threshold value to make control to exceeding, for example Certain node can be may have access to amount zero forbids which to continue to access within the current cycle.
Service Instance uses cipher key access caching server, obtain that the Service Instance can currently use with specified number.If Do not get with specified number, then according to the current value of supplier interface judging whether to continue to access supplier interface.Service Example is located according to the order of priority successively according to calling frequency threshold limit to divide the priority of different call requests Manage each call request.For example, from the call request highest priority of transaction flow, data update and display is called Request is taken second place.Service Instance receives the request of various API Calls after starting, as shown in figure 3, and judging whether also to may have access to remaining Amount:If not may have access to surplus, rest period is entered from the call request of transaction flow, when the next counting cycle opens The call request from transaction flow is waken up, data update and the call request of display is directly abandoned;If visiting Surplus is asked, is then continued executing with API Calls request, and docking port is called total amount value and this node to call margin value to do reducing.

Claims (6)

1. a kind of real-time control distributed system calls the method that external system services the frequency, it is characterised in that:By buffer service Device calls the frequency to carry out monitor in real time to each service node interface, and deployment arbitrating server is collected each service node interface and calls frequency It is secondary to be analyzed, and be controlled by way of each service node interface being set and calls frequency threshold value.
2. real-time control distributed system according to claim 1 calls the method that external system services the frequency, its feature to exist In:The arbitrating server initializes threshold value of the supplier interface within a counting cycle after starting, and in next counting Cycle starts the front threshold value that resets;Additionally, the arbitrating server can receive to arrange each service node interface frequency threshold value Configuration.
3. real-time control distributed system according to claim 1 calls the method that external system services the frequency, its feature to exist In:Cipher key access caching server of each service node by service node interface, obtaining the service node can currently make With specified number;If do not get that the service node can currently use with specified number, currently always may be used according to supplier interface Judge whether to continue with the value of surplus to access supplier interface, and the value of surplus is currently always can use to supplier interface with And the service node itself threshold value carries out related reducing.
4. real-time control distributed system according to claim 1 calls the method that external system services the frequency, its feature to exist In:Each service node is divided to the priority of different call requests, and call it is limited in the case of according to preferential Level makes different process to different requests.
5. real-time control distributed system according to claim 4 calls the method that external system services the frequency, its feature to exist In:Call it is limited in the case of different process made to different requests according to priority carry out as follows:It is high The call request of priority enters rest period, and the next counting cycle wakes up the call request of the high priority when opening;It is low excellent The call request of first level is directly abandoned.
6. a kind of real-time control distributed system calls the system that external system services the frequency, it is characterised in that:Including multiple services Node, caching server and arbitrating server;Wherein:
Service node:For processing various call requests;
Caching server:For calling the frequency to carry out monitor in real time each service node interface;
Arbitrating server:Call the frequency to be analyzed for collecting each service node interface, and connect by arranging each service node Mouth calls the mode of frequency threshold value to be controlled.
CN201610838960.4A 2016-09-21 2016-09-21 A kind of real-time control distributed system calls external system to service the method and system of the frequency Pending CN106550010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610838960.4A CN106550010A (en) 2016-09-21 2016-09-21 A kind of real-time control distributed system calls external system to service the method and system of the frequency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610838960.4A CN106550010A (en) 2016-09-21 2016-09-21 A kind of real-time control distributed system calls external system to service the method and system of the frequency

Publications (1)

Publication Number Publication Date
CN106550010A true CN106550010A (en) 2017-03-29

Family

ID=58367910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610838960.4A Pending CN106550010A (en) 2016-09-21 2016-09-21 A kind of real-time control distributed system calls external system to service the method and system of the frequency

Country Status (1)

Country Link
CN (1) CN106550010A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707402A (en) * 2017-09-30 2018-02-16 南京卓盛云信息科技有限公司 A kind of management system and its management method of Services in Distributed System arbitration
CN109408244A (en) * 2017-08-17 2019-03-01 北京国双科技有限公司 A kind of application data retrieving method and device based on Azure WebJob
CN109728969A (en) * 2018-05-18 2019-05-07 平安普惠企业管理有限公司 Abnormal user method for detecting, monitoring service end and the storage medium of application software
CN111260272A (en) * 2019-12-02 2020-06-09 泰康保险集团股份有限公司 Method, device, equipment and storage medium for responding to user request based on inventory
CN114640700A (en) * 2020-11-30 2022-06-17 腾讯科技(深圳)有限公司 Calling frequency control method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722106A (en) * 2004-07-13 2006-01-18 中兴通讯股份有限公司 Method for internal memory allocation in the embedded real-time operation system
CN101827033A (en) * 2010-04-30 2010-09-08 北京搜狗科技发展有限公司 Method and device for controlling network traffic and local area network system
CN101895411A (en) * 2009-05-18 2010-11-24 华为技术有限公司 Session management method and device
CN102831024A (en) * 2012-08-03 2012-12-19 中国人民解放军国防科学技术大学 Anti-starvation memory request wake-up method based on random turbulence
CN102868770A (en) * 2011-07-05 2013-01-09 腾讯科技(北京)有限公司 Method, equipment and system for distributing interface
CN103617038A (en) * 2013-11-28 2014-03-05 北京京东尚科信息技术有限公司 Service monitoring method and device for distributed application system
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN104980472A (en) * 2014-04-10 2015-10-14 腾讯科技(深圳)有限公司 Network traffic control method and device
US9179379B1 (en) * 2011-08-02 2015-11-03 Sprint Spectrum L.P. Method and apparatus for frequency management

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722106A (en) * 2004-07-13 2006-01-18 中兴通讯股份有限公司 Method for internal memory allocation in the embedded real-time operation system
CN101895411A (en) * 2009-05-18 2010-11-24 华为技术有限公司 Session management method and device
CN101827033A (en) * 2010-04-30 2010-09-08 北京搜狗科技发展有限公司 Method and device for controlling network traffic and local area network system
CN102868770A (en) * 2011-07-05 2013-01-09 腾讯科技(北京)有限公司 Method, equipment and system for distributing interface
US9179379B1 (en) * 2011-08-02 2015-11-03 Sprint Spectrum L.P. Method and apparatus for frequency management
CN102831024A (en) * 2012-08-03 2012-12-19 中国人民解放军国防科学技术大学 Anti-starvation memory request wake-up method based on random turbulence
CN103617038A (en) * 2013-11-28 2014-03-05 北京京东尚科信息技术有限公司 Service monitoring method and device for distributed application system
CN104980472A (en) * 2014-04-10 2015-10-14 腾讯科技(深圳)有限公司 Network traffic control method and device
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408244A (en) * 2017-08-17 2019-03-01 北京国双科技有限公司 A kind of application data retrieving method and device based on Azure WebJob
CN109408244B (en) * 2017-08-17 2022-04-22 北京国双科技有限公司 Application data acquisition method and device based on Azure WebJob
CN107707402A (en) * 2017-09-30 2018-02-16 南京卓盛云信息科技有限公司 A kind of management system and its management method of Services in Distributed System arbitration
CN107707402B (en) * 2017-09-30 2021-02-26 南京卓盛云信息科技有限公司 Management system and management method for service arbitration in distributed system
CN109728969A (en) * 2018-05-18 2019-05-07 平安普惠企业管理有限公司 Abnormal user method for detecting, monitoring service end and the storage medium of application software
CN109728969B (en) * 2018-05-18 2022-04-15 平安普惠企业管理有限公司 Abnormal user detection method of application software, monitoring server and storage medium
CN111260272A (en) * 2019-12-02 2020-06-09 泰康保险集团股份有限公司 Method, device, equipment and storage medium for responding to user request based on inventory
CN114640700A (en) * 2020-11-30 2022-06-17 腾讯科技(深圳)有限公司 Calling frequency control method and device

Similar Documents

Publication Publication Date Title
CN106550010A (en) A kind of real-time control distributed system calls external system to service the method and system of the frequency
RU2644522C2 (en) Method and system for traffic management
CN103699445B (en) Task scheduling method, device and system
CN111049756B (en) Request response method and device, electronic equipment and computer readable storage medium
CN107026877B (en) Method and device for managing resources in cloud platform
CN104901989B (en) A kind of Site Service offer system and method
CN105900064A (en) Method and apparatus for scheduling data flow task
CN106130972B (en) resource access control method and device
CN105760230B (en) A kind of method and device of adjust automatically cloud host operation
WO2019062405A1 (en) Application program processing method and apparatus, storage medium, and electronic device
CN109981737B (en) Network request processing method, device, terminal and storage medium
CN106775936A (en) The management method and device of a kind of virtual machine
CN108733464A (en) A kind of method and device of the scheduling scheme of determining calculating task
US20170187790A1 (en) Ranking system
WO2019219052A1 (en) Prediction method, training method, apparatus, and computer storage medium
CN106201665A (en) A kind of dynamic queue's method for arranging and equipment
WO2019062404A1 (en) Application program processing method and apparatus, storage medium, and electronic device
CN109587072A (en) Distributed system overall situation speed limiting system and method
CN107967650A (en) A kind of batch accounting data processing method and processing device of core banking system
KR20140067581A (en) Method of power management for graphic processing unit and system thereof
CN105955826A (en) Control method and device of quality of service in cloud host system
CN113220452A (en) Resource allocation method, model training method, device and electronic equipment
WO2019029721A1 (en) Task scheduling method, apparatus and device, and storage medium
CN112615795A (en) Flow control method and device, electronic equipment, storage medium and product
CN104102541B (en) Sign-off dynamic adjusting method and system

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: 20170329

RJ01 Rejection of invention patent application after publication