CN107205020A - Service load balancing method and system under Service-Oriented Architecture Based - Google Patents

Service load balancing method and system under Service-Oriented Architecture Based Download PDF

Info

Publication number
CN107205020A
CN107205020A CN201710310738.1A CN201710310738A CN107205020A CN 107205020 A CN107205020 A CN 107205020A CN 201710310738 A CN201710310738 A CN 201710310738A CN 107205020 A CN107205020 A CN 107205020A
Authority
CN
China
Prior art keywords
service
consumer
instance
management center
isp
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
CN201710310738.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.)
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Fujian Electric Power Co Ltd
State Grid Fujian Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
Electric Power Research Institute of State Grid Fujian Electric Power Co Ltd
State Grid Fujian Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Electric Power Research Institute of State Grid Fujian Electric Power Co Ltd, State Grid Fujian Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201710310738.1A priority Critical patent/CN107205020A/en
Publication of CN107205020A publication Critical patent/CN107205020A/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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • 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/52Network services specially adapted for the location of the user terminal
    • 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/56Provisioning of proxy services

Landscapes

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

Abstract

The present invention relates to the service load balancing method under a kind of Service-Oriented Architecture Based and system.Methods described is realized as follows:When starting application service, each Service Instance of ISP is respectively to the service management center registration service, registration service Instance Interface information;Start after application service, timing is to the service management center report load state respectively for each Service Instance of ISP, and service management center records the current loading condition of each Service Instance;Serviced when service consumer is accessed, when carrying out positioning service operation, service management center chooses the example for being best suitable for providing service from the current loading condition table of each Service Instance of record, and corresponding Service Instance Interface information is returned to service consumer;The Service Instance Interface Information Access Service that service consumer passes through return, you can realize service load balancing.The present invention realizes the equilibrium of the service load under Service-Oriented Architecture Based.

Description

Service load balancing method and system under Service-Oriented Architecture Based
Technical field
The present invention relates to the service load balancing method under a kind of Service-Oriented Architecture Based and system.
Background technology
Wide area Service-Oriented Architecture Based(WSOA), it is constituted and principle is as follows:
Wide area Service-Oriented Architecture Based (WSOA), its bottom is based on IP agreement, and service consumption is realized by a series of interface service Information between person and ISP is exchanged.
Wide area Service-Oriented Architecture Based is disappeared by domain administrative center, service management center, service broker, ISP and service The person of expense is constituted, and it constitutes as shown in Figure 1.
When carrying out local communication, data interaction is directly entered by the passage between service consumer and ISP OK.
When carrying out telecommunication, the cooperation between the service broker of a distant place is acted on behalf of by local service, in service consumer The data cube computation of logic is set up between ISP, communication for service is carried out.This process is equivalent to passing through service broker Service consumer is invented the service consumer in the service-domain of ISP, or perhaps by service broker service Supplier is mirrored to the service-domain of service consumer.
Data communication process based on wide area Service-Oriented Architecture Based is as shown in Fig. 2 include agency of trademark registration, service registry, clothes The processes such as business inquiry, positioning service.
1)Agency of trademark registration:Telecommunication process, service broker is the external sole outlet of service-domain, increases a service-domain newly When, service broker's registration, the DomainName and IP of enrollment proxy should be carried out to domain administrative center first.
2)Service registry:ISP inside local communication process, service-domain should note to local service administrative center Volume service, enrolled for service supplier IP address, port, ProviderID and ServiceName.
3)Service-seeking:Remotely-or locally communication process, service-seeking includes the following aspects:
All service-domains inquired about in wide area network:Service consumer inquires about all service domain names by acting on behalf of to domain administrative center (DomainName)Inventory and the IP address accordingly acted on behalf of.
The ISP inquired about in a certain particular service domain:Inquire about ISP's inventory in special domain.Service consumption Person inquires about all ProviderID inventories in the domain by service broker according to DomainName to corresponding with service administrative center.
Inquire about the service of a certain special services supplier:The service that a certain ISP is provided in inquiry special domain is clear It is single.Service consumer inquires about the clothes by service broker according to DomainName and ProviderID to corresponding with service administrative center The ServiceName inventories of business supplier.
Service arrangement position is inquired about by Service name:Inquire about the deployed position of a certain service in certain domain.Service consumer root Inquired about according to DomainName and ServiceName by service broker to corresponding with service administrative center and the service is provided ProviderID inventories.
Inquire about the specifying information of a certain service:Similar to positioning service, service consumer according to DomainName, ProviderID and ServiceName inquires about description and the operation shape of the service by service broker to corresponding with service administrative center State information.
4)Positioning service:Local communication process, positioning service is deployed in service management center, from service consumer directly to Service management center asks positioning service, and service management center returns to result.The positioning of correspondence distant place service, is acted on behalf of by a distant place Realized by local communication process.
In the case of complicated, highly reliable and large-scale application, a service generally requires to be provided with multimachine to be serviced side by side, The load balancing serviced in the case of this is exactly a major issue.
The content of the invention
It is an object of the invention to provide the service load balancing method under a kind of Service-Oriented Architecture Based and system, to realize The equilibrium of service load under Service-Oriented Architecture Based.
To achieve the above object, the technical scheme is that:A kind of service load balancing side under Service-Oriented Architecture Based Method, the Service-Oriented Architecture Based includes ISP, service consumer, service management center, comprises the following steps,
Each Service Instance of ISP is respectively to the service management center report load state;
Serviced when service consumer is accessed, when carrying out positioning service operation, service management center is born from the current of each Service Instance The Service Instance chosen in state table and meet preparatory condition is carried, and corresponding Service Instance Interface information is returned to service consumption Person;
The Service Instance Interface Information Access Service that service consumer passes through return.
In an embodiment of the present invention, each Service Instance of the ISP is reported to the service management center Before load condition, also need to carry out registration service to the service management center.
In an embodiment of the present invention, the Service Instance Interface information includes Service Instance address or port information.
In an embodiment of the present invention, the Service Instance for meeting preparatory condition loads the Service Instance of minimum.
In an embodiment of the present invention, the Service-Oriented Architecture Based also includes service broker, domain administrative center, remote to realize Access of the journey service consumer to local service.
In an embodiment of the present invention, the service consumer, which accesses service, includes following two situations:If service consumption Person is local service consumer, then local service consumer is directly accessed by local service management center and serviced;
If service consumer is remote service consumer, remote service consumer need to be by remote service proxy, domain management The heart, local service agency, local service management center access service.
In an embodiment of the present invention, in addition to:The service management center updates the quantity of Service Instance, realizes dynamic The function of service.
Present invention also offers the service load balancing system under a kind of Service-Oriented Architecture Based, the Service-Oriented Architecture Based bag ISP, service consumer, service management center are included,
The service state administrative unit of the service management center is arranged at, each Service Instance for being embodied as ISP Registration service, and provide service ranking decision-making and inquiry service for service consumer;
The load condition collector unit of server, each clothes for collecting ISP where being arranged at the ISP The load real-time status of pragmatic example, and it is sent to the service state administrative unit.
In an embodiment of the present invention, the service state administrative unit takes for each Service Instance registration of ISP Business, including registration service instance address or port information.
In an embodiment of the present invention, the Service-Oriented Architecture Based also includes service broker, domain administrative center, remote to realize Access of the journey service consumer to local service.
In an embodiment of the present invention, the service state administrative unit is additionally operable to update the quantity of Service Instance, realizes The function of dynamic Service.
Compared to prior art, the invention has the advantages that:
1)With Service-Oriented Architecture Based(SOA)Suit completely, it is not necessary to increase equipment in addition;
2)Realize the equilibrium of the service load under Service-Oriented Architecture Based.
Brief description of the drawings
Fig. 1 is wide area Service-Oriented Architecture Based pie graph.
Fig. 2 is the data communication flow figure based on wide area Service-Oriented Architecture Based.
Fig. 3 is implementation method schematic diagram of the present invention.
Embodiment
Below in conjunction with the accompanying drawings, technical scheme is specifically described.
Service load balancing method under a kind of Service-Oriented Architecture Based of the present invention, the Service-Oriented Architecture Based includes service Supplier, service consumer, service management center, comprise the following steps,
When starting application service, each Service Instance of ISP is respectively to the service management center registration service, registration Service Instance Interface information;(Each Service Instance is once registered when starting, and cancel register when exiting registers online clothes Pragmatic example just includes load balancing computer capacity, is not that each equilibrium is registered.)
Start after application service, each Service Instance of ISP respectively timing (aperiodicity or the mode of condition triggering) to The service management center report load state, service management center records the current loading condition of each Service Instance;
Serviced when service consumer is accessed, when carrying out positioning service operation, service management center is from each Service Instance of record The Service Instance for being best suitable for providing service is chosen in current loading condition table(Load the Service Instance of minimum), and corresponding Service Instance Interface information returns to service consumer;
The Service Instance Interface Information Access Service that service consumer passes through return, you can realize service load balancing.
The Service Instance Interface information includes Service Instance address and port information.
The Service-Oriented Architecture Based also includes service broker, domain administrative center, to realize remote service consumer to local The access of service, specific service consumer, which accesses service, includes following two situations:
If service consumer is local service consumer, local service consumer is directly visited by local service management center The service of asking;
If service consumer is remote service consumer, remote service consumer need to be by remote service proxy, domain management The heart, local service agency, local service management center access service.
The service management center can also realize the function of dynamic Service, that is, increase and reduce the quantity of Service Instance.
Present invention also offers the service load balancing system under a kind of Service-Oriented Architecture Based, the Service-Oriented Architecture Based bag ISP, service consumer, service management center are included,
The service state administrative unit of the service management center is arranged at, each Service Instance for being embodied as ISP Registration service, and the collection of the load real-time status of each Service Instance is recorded, and provide real based on load for service consumer When state service ranking decision-making and inquiry service;
The load condition collector unit of server, each clothes for collecting ISP where being arranged at the ISP The load real-time status of pragmatic example, and timing is sent to the service state administrative unit.
The service state administrative unit is each Service Instance registration service of ISP, including registration service example Address and port information.
The Service-Oriented Architecture Based also includes service broker, domain administrative center, to realize remote service consumer to local The access of service.
The service state administrative unit can also realize the function of dynamic Service, that is, increase and reduce the number of Service Instance Amount.
The load real-time status of each Service Instance is born by ISP in system level, application and link number Load situation, is made up of the loading index of configurable weighting algorithm formation.
Hereinafter process is implemented for the present invention.
As shown in figure 3, the Service-Oriented Architecture Based that the present invention is provided(SOA)Under service load balancing implementation method, specifically It is as follows:
1)ISP and example:
ISP is that the abstract service that system provides specific function is logic.It is that ISP includes that example, which is, , implement the entity of the service.One ISP is available to include multiple examples, and load balancing is exactly to make a service Multiple example loads that bag contains keep in balance to reach highest service performance.
2)Service state management function:
Service management center is arranged at, service state management function realizes total system(This service-domain)Service load real-time status Collection, and provide based on load real-time status service ranking decision-making and inquiry service.Service ranking decision making algorithm is depended on The setting of loading index.
3)Load condition collecting function:
The server where application example is arranged at, service end is collected at system level, application and the link several aspects of number Loading condition, pass through the loading index of configurable weighting algorithm formation.
Load proposed by the present invention is collected, and is intended to the function of the situation to grasp service end server load, SOA framework What following table levied server load is typically one group of index set, and this patent content not to index set and collection method do specific rule It is fixed, but emphasize comprising system level, application and the link several aspect factors of number, its Extension algorithm should also belong in the present invention Hold.
4)Implementation process:
a)In service management center, service state management function is set;
b)At application service end, load condition collecting function is set;
c)Each Service Instance when application service starts registers it respectively to service management center registration service(IP)Address and Port;
d)Each Service Instance is respectively regularly to service management center report load state after application service startup;
e)The service state management function of service management center records the current loading condition of each Service Instance;
f)Serviced when client is accessed, when carrying out positioning service operation(LocateService), service management center is from record The example for being best suitable for providing service is chosen in the current loading condition table of Service Instance(Such as:Load minimum example), and phase The address and port for the Service Instance answered return to client;
g)Client is accessed by the address of return and serviced, and the service that such client is accessed all is that load is minimum, also just real Load balancing is showed;
h)Service for supporting Dynamical Deployment(Such as cloud system), the service state management function of service management center can also build Vertical various service management strategy, makees further load management.Such as:By dynamic Service function, increase and reduction service are real Quantity of example etc..
Above is presently preferred embodiments of the present invention, all changes made according to technical solution of the present invention, produced function is made During with scope without departing from technical solution of the present invention, protection scope of the present invention is belonged to.

Claims (10)

1. a kind of service load balancing method under Service-Oriented Architecture Based, the Service-Oriented Architecture Based includes ISP, clothes Business consumer, service management center, it is characterised in that:Comprise the following steps,
Each Service Instance of ISP is respectively to the service management center report load state;
Serviced when service consumer is accessed, when carrying out positioning service operation, service management center is born from the current of each Service Instance The Service Instance chosen in state table and meet preparatory condition is carried, and corresponding Service Instance Interface information is returned to service consumption Person;
The Service Instance Interface Information Access Service that service consumer passes through return.
2. according to the method described in claim 1, it is characterised in that:Each Service Instance of the ISP is to the clothes It is engaged in before administrative center's report load state, also needs to carry out registration service to the service management center.
3. according to the method described in claim 1, it is characterised in that:The Service Instance for meeting preparatory condition loads minimum Service Instance.
4. according to the method described in claim 1, it is characterised in that:The Service-Oriented Architecture Based also includes service broker, domain and managed Reason center, to realize access of the remote service consumer to local service.
5. method according to claim 4, it is characterised in that:The service consumer, which accesses service, includes following two feelings Condition:
If service consumer is local service consumer, local service consumer is directly visited by local service management center The service of asking;
If service consumer is remote service consumer, remote service consumer need to be by remote service proxy, domain management The heart, local service agency, local service management center access service.
6. according to the method described in claim 1, it is characterised in that:Also include:The service management center updates Service Instance Quantity, realize the function of dynamic Service.
7. a kind of service load balancing system under Service-Oriented Architecture Based, the Service-Oriented Architecture Based includes ISP, clothes Business consumer, service management center, it is characterised in that
The service state administrative unit of the service management center is arranged at, each Service Instance for being embodied as ISP Registration service is carried out, and service ranking decision-making and inquiry service are provided for service consumer;
The load condition collector unit of server, each clothes for collecting ISP where being arranged at the ISP The load real-time status of pragmatic example, and it is sent to the service state administrative unit.
8. system according to claim 7, it is characterised in that:The service state administrative unit is each for ISP's Service Instance registration service, including registration service instance address or port information.
9. system according to claim 7, it is characterised in that:The Service-Oriented Architecture Based also includes service broker, domain and managed Reason center, to realize access of the remote service consumer to local service.
10. system according to claim 7, it is characterised in that:The service state administrative unit is additionally operable to more new demand servicing The quantity of example, realizes the function of dynamic Service.
CN201710310738.1A 2017-05-05 2017-05-05 Service load balancing method and system under Service-Oriented Architecture Based Pending CN107205020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710310738.1A CN107205020A (en) 2017-05-05 2017-05-05 Service load balancing method and system under Service-Oriented Architecture Based

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710310738.1A CN107205020A (en) 2017-05-05 2017-05-05 Service load balancing method and system under Service-Oriented Architecture Based

Publications (1)

Publication Number Publication Date
CN107205020A true CN107205020A (en) 2017-09-26

Family

ID=59906159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710310738.1A Pending CN107205020A (en) 2017-05-05 2017-05-05 Service load balancing method and system under Service-Oriented Architecture Based

Country Status (1)

Country Link
CN (1) CN107205020A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471720A (en) * 2018-10-19 2019-03-15 曙光信息产业(北京)有限公司 Online operational system
CN109710424A (en) * 2018-12-18 2019-05-03 成都淞幸科技有限责任公司 A kind of implementation method of distributed application services
CN112532683A (en) * 2020-10-30 2021-03-19 北京盛和信科技股份有限公司 Edge calculation method and device based on micro-service architecture
CN112910943A (en) * 2019-12-04 2021-06-04 华为技术有限公司 Service providing method, device and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321264A (en) * 2007-06-05 2008-12-10 上海未来宽带技术及应用工程研究中心有限公司 Service oriented structure used for IPTV platform
WO2009072094A2 (en) * 2007-12-05 2009-06-11 Alcatel Lucent Soa infrastructure for application sensitive routing of web services
CN104219325A (en) * 2014-09-23 2014-12-17 中国南方电网有限责任公司 SOA load balancing device and routing algorithm using device
CN104301241A (en) * 2014-06-05 2015-01-21 中国人民解放军信息工程大学 SOA dynamic load distribution method and system
CN105516308A (en) * 2015-12-09 2016-04-20 国网福建省电力有限公司 Wide-area service-oriented data interaction system and method based on service management center
US20160301546A1 (en) * 2009-10-29 2016-10-13 The Boeing Company Method for communication in a tactical network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321264A (en) * 2007-06-05 2008-12-10 上海未来宽带技术及应用工程研究中心有限公司 Service oriented structure used for IPTV platform
WO2009072094A2 (en) * 2007-12-05 2009-06-11 Alcatel Lucent Soa infrastructure for application sensitive routing of web services
US20160301546A1 (en) * 2009-10-29 2016-10-13 The Boeing Company Method for communication in a tactical network
CN104301241A (en) * 2014-06-05 2015-01-21 中国人民解放军信息工程大学 SOA dynamic load distribution method and system
CN104219325A (en) * 2014-09-23 2014-12-17 中国南方电网有限责任公司 SOA load balancing device and routing algorithm using device
CN105516308A (en) * 2015-12-09 2016-04-20 国网福建省电力有限公司 Wide-area service-oriented data interaction system and method based on service management center

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
段翰聪等: "基于面向服务架构的分布式业务部署平台", 《计算机应用》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471720A (en) * 2018-10-19 2019-03-15 曙光信息产业(北京)有限公司 Online operational system
CN109710424A (en) * 2018-12-18 2019-05-03 成都淞幸科技有限责任公司 A kind of implementation method of distributed application services
CN112910943A (en) * 2019-12-04 2021-06-04 华为技术有限公司 Service providing method, device and system
CN112910943B (en) * 2019-12-04 2024-03-05 华为云计算技术有限公司 Service providing method, device and system
CN112532683A (en) * 2020-10-30 2021-03-19 北京盛和信科技股份有限公司 Edge calculation method and device based on micro-service architecture

Similar Documents

Publication Publication Date Title
CN107205020A (en) Service load balancing method and system under Service-Oriented Architecture Based
CN108965007A (en) API gateway interface configures update method and device
CN109257440A (en) A kind of service discovery and client load equalization methods based on service register center
US20030120780A1 (en) Network resource assignment system and method
CN104718733B (en) The method and system of packet-based identifier finger URL procotol (ILNP) load balance and Route Selection
CN110166409A (en) Equipment cut-in method, related platform and computer storage medium
CN108234666A (en) A kind of micro services calling system, method and computer storage media
CN106657287A (en) Data access method and system
CN108156236A (en) Service request processing method, device, computer equipment and storage medium
CN106301829A (en) A kind of method and apparatus of Network dilatation
CN103607432B (en) A kind of method and system of network creation and the network control center
CN110719194B (en) Network data analysis method and device
CN114090244B (en) Service arrangement method, device, system and storage medium
JPH1196099A (en) Service providing system
CN107995045A (en) The adaptive service function chain routing resource and system of network function virtualization
CN108322502A (en) Method, gateway system and storage medium for equalization server load
CN108494835A (en) The realization method and system of distributed dynamic routing based on Raft algorithms
CN110381131A (en) Implementation method, mobile terminal, server and the storage medium of MEC node identification
CN104769550A (en) A method and system to allocate bandwidth in cloud computing networks
CN108989399A (en) A kind of cluster common data querying method, system, device and readable storage medium storing program for executing
CN110022375A (en) The distribution method and device of agent node
CN111506297A (en) Mobile top layer design system
CN111770130B (en) Method for efficient collaborative multiplexing of software and hardware resources in block chain distributed networking
CN109634735A (en) A kind of method and device for dispatching Pod
CN109684820A (en) Service Privileges acquisition methods, device and electronic equipment

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

RJ01 Rejection of invention patent application after publication