CN108628987A - High Availabitity load data querying method and system - Google Patents

High Availabitity load data querying method and system Download PDF

Info

Publication number
CN108628987A
CN108628987A CN201810398775.7A CN201810398775A CN108628987A CN 108628987 A CN108628987 A CN 108628987A CN 201810398775 A CN201810398775 A CN 201810398775A CN 108628987 A CN108628987 A CN 108628987A
Authority
CN
China
Prior art keywords
gateway
service
load
inquiry request
access rights
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
CN201810398775.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.)
Xinjiang Xi Ling Information Technology Ltd By Share Ltd
Original Assignee
Xinjiang Xi Ling Information Technology Ltd By Share 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 Xinjiang Xi Ling Information Technology Ltd By Share Ltd filed Critical Xinjiang Xi Ling Information Technology Ltd By Share Ltd
Priority to CN201810398775.7A priority Critical patent/CN108628987A/en
Publication of CN108628987A publication Critical patent/CN108628987A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of High Availabitity load data querying method and systems, including build spring boot frames, the gateway component in operation spring cloud;Inquiry request is initiated to gateway;Gateway judges to ask whether promoter has access rights according to inquiry request, if having access rights, follows the steps below, if not having access rights, provide corresponding informance and prompted;Gateway selects the node that load is smaller under the service node to be asked to distribute the inquiry request according to inquiry request;Data return to gateway, then return to query result by gateway, and querying flow terminates.The present invention can realize access service faster, improve the efficiency for accessing and servicing, while the present invention services the central controlled mode of access rights using this set so that it accesses service and more unitizes, standardization, and flexible expansion and maintenance when easy to use.

Description

High Availabitity load data querying method and system
Technical field
The present invention relates to data query technique field, it particularly relates to a kind of High Availabitity load data querying method and System.
Background technology
It realizes the function of High Availabitity load query service, just in the market from the point of view of currently available technology, has much for choosing The product selected, the characteristic based on these products, is analyzed one by one.
There are Single Point of Faliures in deployment for traditional inquiry service based on webservice, and if asking occurs in service Topic, system integrally can all be affected, and if visit capacity is excessive, the search efficiency of single machine can also have high load Problem, it is contemplated that overall amount of data, the factors such as concurrently, applicable data amount is not big by webservice, the project of high concurrent.And base It although can be reversed in the inquiry service of Nginx and act on behalf of back-end services, realize the load-balancing function of service, solve high load, The problem of high concurrent, but expansibility but becomes the bottleneck for restricting exploitation, such as the centerized fusion to service access permission Just it cannot achieve.The product of other many similar functions, or due to the limitation of itself, or due to the applicability with this project Problem is not ideal selection.
Invention content
It is an object of the invention to propose a kind of High Availabitity load data querying method and system, to overcome in the prior art Above shortcomings.
To realize the above-mentioned technical purpose, the technical proposal of the invention is realized in this way:
High Availabitity load data querying method, the querying method include the following steps:
Build spring boot frames, the gateway component in operation spring cloud;
Inquiry request is initiated to gateway;
Gateway judges to ask whether promoter has access rights according to inquiry request, if having access rights, carry out Following steps provide corresponding informance and are prompted if not having access rights;
Gateway selects the node distribution inquiry that load is smaller under the service node to be asked to ask according to inquiry request It asks;
Data return to gateway, then return to query result by gateway, and querying flow terminates.
Further, gateway also checks whether service is normal simultaneously, if all nodes under service are abnormal, by open circuit Device returns to exception information.
Further, the gateway detects the load feelings of each service node according to heartbeat mechanism in real time by registration center Condition.
Further, the load includes one or more in request load and data payload.
High Availabitity load data inquiry system, the inquiry system include:
Frame builds module, for building spring boot frames, the gateway component in operation spring cloud;
Enquiry module, for initiating inquiry request to gateway;
Gateway, including permission judgment module and node selecting module, the permission judgment module are used for according to inquiry request Judge to ask whether promoter has access rights, if having access rights, follow the steps below, if not having access right Limit, then provide corresponding informance and prompted, and the node selecting module is used to select the service to be asked according to inquiry request The node that load is smaller under node distributes the inquiry request;
Data acquisition module, data return to gateway, then return to query result by gateway.
Further, the gateway further includes service state monitoring modular, for checking whether service is normal, if under service All nodes it is abnormal, then exception information is returned to by breaker.
Further, the gateway detects the load feelings of each service node according to heartbeat mechanism in real time by registration center Condition.
Further, the load includes one or more in request load and data payload.
Beneficial effects of the present invention:1, when a machine breaks down, gateway can select other node distributed tasks, The problem of whole system will not being had an impact, not will produce single-point overheat;2, spring cloud additionally provide a large amount of group Part, these components help to expand functions of modules, reduce project development amount;3, spring cloud have pluggable assembly type to open Hair pattern comes module and overall isolation, makes it possible the upgrading in later stage;4, access rights are concentrated using gateway Formula controls.To sum up the present invention can realize access service faster, improve the efficiency of the service of access, while the present invention uses this The set service central controlled mode of access rights so that it accesses service and more unitizes, standardization, flexible expansion when easy to use And maintenance.
Description of the drawings
Fig. 1 is the flow chart of querying method of the present invention;
Fig. 2 is the structural schematic diagram of inquiry system of the present invention.
Specific implementation mode
With reference to the attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground describes.
As shown in Figure 1, the High Availabitity load data querying method described according to an embodiment of the invention, the querying method Include the following steps:
Step 1: build spring boot frames, 3 component of gateway in operation spring cloud, registration center and each The status of service is detected between service according to heartbeat, including but not limited to services and whether survives, gateway 3 is by registration The heart detects each node load situation in real time.
Specifically, after each service node starts, it can be registered in registration center, just be had in such registration center The information of all service nodes, and the case where have the monitoring page, the service of all registrations can be intuitively seen in the page. There is heartbeat mechanism simultaneously, when some node serve is no at the appointed time sends heartbeat signal, registration center can be from service This service node is removed in registration table, service node includes the functional components such as each load and gateway 3, can all maintain the heart It jumps, detects corresponding states.
Spring Boot are the completely new frames provided by Pivotal team, and purpose of design is for simplifying new Spring The initial of application is built and development process.The frame has used specific mode to be configured, to make developer not The configuration of definition stereotyping is needed again.
Spring Cloud are a series of ordered set of frames.It is ingenious using the exploitation convenience of Spring Boot Ground simplifies the exploitation of distributed system infrastructure, such as service discovery registration, configuration center, messaging bus, load balancing, breaks Road device, data monitoring etc. can accomplish one-key start and deployment with the development style of Spring Boot.Spring is not Repetition manufacture wheel, it is by the comparative maturity of each company's exploitation at present, stands the service framework combination actually tested Get up, is encapsulated again by Spring Boot styles and masked complicated configuration and realization principle, finally stayed to developer Gone out it is a set of be easily understood, easily deployment and easy care Development of Distributed System kit.
In the present invention, on the one hand spring cloud solve problem of load balancing, while spring well Cloud additionally provides a large amount of component, such as breaker etc., these components help to expand functions of modules, reduce project development Amount, another aspect spring cloud be conducive to project later stage extension, pluggable component-based development pattern by module with Overall isolation comes, and makes it possible the upgrading in later stage.
Step 2: initiating inquiry request to gateway 3.
Step 3: gateway 3 judges to ask whether promoter has access rights according to inquiry request, if having access right Limit, then follow the steps below, if not having access rights, provides corresponding informance and is prompted.This permission querying method is compared In directly judging that the mode of requestor's permission has the advantage that in service code:Permission judgement is kept completely separate by this method Out, independence is strong, reduces system coupling, improves durability, reduces code permeability.
Step 4: gateway 3 selects the node that load is smaller under the service node to be asked to distribute institute according to inquiry request State inquiry request.
Specifically, gateway 3 detects the palmic rate of each service node by registration center, each service is learnt with this The loading condition of node.
Step 5: data return to gateway 3, then query result is returned to by gateway 3, querying flow terminates.
Further, gateway 3 is gone back while checking whether service is normal, if all nodes under service are abnormal, by breaking Road device returns to exception information.
Based on High Availabitity load data querying method of the present invention, the invention also discloses a kind of High Availabitities to load number According to inquiry system, the inquiry system includes:
Frame builds module 11, for building spring boot frames, 3 component of gateway in operation spring cloud;
Enquiry module 2, for initiating inquiry request to gateway 3;
Gateway 3, including permission judgment module 4 and node selecting module 5, the permission judgment module 4 are used for according to inquiry Request judges to ask whether promoter has access rights, if having access rights, follow the steps below, if without accessing Permission then provides corresponding informance and is prompted, and the node selecting module 5 is used to select the clothes to be asked according to inquiry request The smaller node of load distributes the inquiry request under business node;
Data acquisition module 7, data return to gateway 3, then return to query result by gateway 3.
In the present embodiment, the gateway 3 further includes service state monitoring modular 6, for checking whether service is normal, if All nodes under service are abnormal, then return to exception information by breaker.
In the present embodiment, the gateway 3 detects each service node by registration center in real time according to heartbeat mechanism Loading condition.
In the present embodiment, the load includes one or more in request load and data payload.
Above-mentioned each function module of High Availabitity load data inquiry system described in the embodiment of the present invention corresponds to this respectively Each operating procedure of the High Availabitity load data querying method of invention, which is not described herein again.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention With within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention god.

Claims (8)

1. High Availabitity load data querying method, which is characterized in that the querying method includes the following steps:
Build spring boot frames, the gateway component in operation spring cloud;
Inquiry request is initiated to gateway;
Gateway judges to ask whether promoter has access rights according to inquiry request, if having access rights, carry out following Step provides corresponding informance and is prompted if not having access rights;
Gateway selects the node that load is smaller under the service node to be asked to distribute the inquiry request according to inquiry request;
Data return to gateway, then return to query result by gateway, and querying flow terminates.
2. querying method according to claim 1, which is characterized in that gateway also checks whether service is normal simultaneously, if clothes All nodes under business are abnormal, then return to exception information by breaker.
3. querying method according to claim 1, which is characterized in that the gateway passes through registration center according to heartbeat mechanism The loading condition of each service node is detected in real time.
4. querying method according to claim 3, which is characterized in that the load includes in request load and data payload It is one or more.
5. High Availabitity load data inquiry system, which is characterized in that the inquiry system includes:
Frame builds module, for building spring boot frames, the gateway component in operation spring cloud;
Enquiry module, for initiating inquiry request to gateway;
Gateway, including permission judgment module and node selecting module, the permission judgment module according to inquiry request for judging It asks whether promoter has access rights, if having access rights, follows the steps below, if not having access rights, It provides corresponding informance to be prompted, the node selecting module is used to be selected under the service node to be asked according to inquiry request The smaller node of load distributes the inquiry request;
Data acquisition module, data return to gateway, then return to query result by gateway.
6. inquiry system according to claim 5, which is characterized in that the gateway further includes service state monitoring modular, For checking whether service is normal, if all nodes under service are abnormal, exception information is returned to by breaker.
7. inquiry system according to claim 5, which is characterized in that the gateway passes through registration center according to heartbeat mechanism The loading condition of each service node is detected in real time.
8. inquiry system according to claim 7, which is characterized in that the load includes in request load and data payload It is one or more.
CN201810398775.7A 2018-04-28 2018-04-28 High Availabitity load data querying method and system Pending CN108628987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810398775.7A CN108628987A (en) 2018-04-28 2018-04-28 High Availabitity load data querying method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810398775.7A CN108628987A (en) 2018-04-28 2018-04-28 High Availabitity load data querying method and system

Publications (1)

Publication Number Publication Date
CN108628987A true CN108628987A (en) 2018-10-09

Family

ID=63695050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810398775.7A Pending CN108628987A (en) 2018-04-28 2018-04-28 High Availabitity load data querying method and system

Country Status (1)

Country Link
CN (1) CN108628987A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087520A (en) * 2020-09-14 2020-12-15 深圳市欣视景科技股份有限公司 Data processing method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9448790B2 (en) * 2010-04-26 2016-09-20 Pivotal Software, Inc. Rapid updating of cloud applications
CN106506605A (en) * 2016-10-14 2017-03-15 华南理工大学 A kind of SaaS application construction methods based on micro services framework
CN106951555A (en) * 2017-03-29 2017-07-14 北京亿科天元信息技术有限公司 SaaS mode contents management systems based on structural data
CN107370786A (en) * 2017-06-02 2017-11-21 广州杰赛科技股份有限公司 A kind of general information management system based on micro services framework
CN107589992A (en) * 2017-08-02 2018-01-16 北京大学(天津滨海)新代信息技术研究院 A kind of containerization application load dispatching method based on swarm intelligence

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9448790B2 (en) * 2010-04-26 2016-09-20 Pivotal Software, Inc. Rapid updating of cloud applications
CN106506605A (en) * 2016-10-14 2017-03-15 华南理工大学 A kind of SaaS application construction methods based on micro services framework
CN106951555A (en) * 2017-03-29 2017-07-14 北京亿科天元信息技术有限公司 SaaS mode contents management systems based on structural data
CN107370786A (en) * 2017-06-02 2017-11-21 广州杰赛科技股份有限公司 A kind of general information management system based on micro services framework
CN107589992A (en) * 2017-08-02 2018-01-16 北京大学(天津滨海)新代信息技术研究院 A kind of containerization application load dispatching method based on swarm intelligence

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丁学智: "一种面向分布式服务器集群的动态负载均衡系统的实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087520A (en) * 2020-09-14 2020-12-15 深圳市欣视景科技股份有限公司 Data processing method, device, equipment and computer readable storage medium
CN112087520B (en) * 2020-09-14 2023-08-22 深圳市欣视景科技股份有限公司 Data processing method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN110401696B (en) Decentralized processing method, communication agent, host and storage medium
CN106227605B (en) A kind of the dynamic micro services expansion method and device of multilingual cloud compiling
CN100555981C (en) High availability virtual switch
CN104168333B (en) The working method of PROXZONE service platforms
CN100504932C (en) Method and device for a vehicle-related telematics service
US8509128B2 (en) High level instruction convergence function
CN113014651B (en) Gray scale release method, application server and gray scale release system
EP2696627A2 (en) Method and apparatus for selecting network in m2m communication
CN109889416A (en) A kind of smart home system and construction method based on micro services framework
CN101882060B (en) Network printing walktone based on cloud computing
CN109511133A (en) A kind of method and device waking up processing
CN110658794A (en) Manufacturing execution system
CN109792596A (en) System and method for uniform data management in communication network
CN101753359B (en) Method and system for dynamically distributing components
CN109792393A (en) Virtualize the software upgrading in off-line accounting system
CN108628987A (en) High Availabitity load data querying method and system
CN109544191A (en) Shared vehicle clearing abnormality eliminating method, vehicle, system, device and server
CN103973489B (en) A kind of heterogeneous device centralized monitoring system
CN103905498B (en) Service information management method and service information management system
CN110381057A (en) Processing method, device, storage medium, processor and the system of communication connection
CN109995585A (en) A kind of abnormality eliminating method, equipment and storage medium
CN116684418B (en) Calculation power arrangement scheduling method, calculation power network and device based on calculation power service gateway
CN111884898B (en) Train network control system and fusion method based on software and hardware fusion
CN109447617A (en) A kind of good selling method and its system based on NB-Iot
CN110351897A (en) A kind of method, equipment of the core network and the access network equipment of the determining SOT state of termination

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

RJ01 Rejection of invention patent application after publication