CN106559488A - A kind of method of the electrical network geographical information space service for setting up tenant's driving - Google Patents

A kind of method of the electrical network geographical information space service for setting up tenant's driving Download PDF

Info

Publication number
CN106559488A
CN106559488A CN201611049720.2A CN201611049720A CN106559488A CN 106559488 A CN106559488 A CN 106559488A CN 201611049720 A CN201611049720 A CN 201611049720A CN 106559488 A CN106559488 A CN 106559488A
Authority
CN
China
Prior art keywords
tenant
service
data
electrical network
host
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.)
Granted
Application number
CN201611049720.2A
Other languages
Chinese (zh)
Other versions
CN106559488B (en
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.)
TIANJIN PUXUN POWER INFORMATION TECHNOLOGY Co Ltd
State Grid Information and Telecommunication Co Ltd
Original Assignee
TIANJIN PUXUN POWER INFORMATION TECHNOLOGY Co Ltd
State Grid Information and Telecommunication 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 TIANJIN PUXUN POWER INFORMATION TECHNOLOGY Co Ltd, State Grid Information and Telecommunication Co Ltd filed Critical TIANJIN PUXUN POWER INFORMATION TECHNOLOGY Co Ltd
Priority to CN201611049720.2A priority Critical patent/CN106559488B/en
Publication of CN106559488A publication Critical patent/CN106559488A/en
Application granted granted Critical
Publication of CN106559488B publication Critical patent/CN106559488B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/06Electricity, gas or water supply

Abstract

The present invention relates to a kind of method of the electrical network geographical information space service for setting up tenant's driving, including step has:(1) system set up needed for the method, the system include multi-tenant access control center, monitoring and scheduling, Simulation spatial service pond, storage resource and computing resource;(2) deployment at multi-tenant access control center;(3) set up monitoring and scheduling;(4) set up Simulation spatial service pond;(5) set up storage resource;(6) set up computing resource.The present invention is using each tenant of multi-tenant technology valid metric for the resource service condition of electrical network geographical information space service system, the more service application scenes of computing resource are taken so as to targetedly improve, by the quota control to each tenant, avoid causing the paralysis of whole electrical network spatial Information Service system, electrical network Simulation spatial service system to provide the control of authority of the unified management and access of hosted data.

Description

A kind of method of the electrical network geographical information space service for setting up tenant's driving
Technical field
The invention belongs to geographic information system technic field, particularly a kind of electrical network geography information sky for setting up tenant's driving Between the method that services.
Background technology
Traditional electrical network geographical information space service system realizes the structured management and graphic exhibition of power network resources, And grid graph and Analysis Service are provided by all kinds of service applications of Enterprise SOA.All kinds of service applications need electrical network to set When standby positional information or topological relation, obtained by the standards service for calling electrical network geographical information space service system to issue Related data;If the standards service that electrical network geographical information space service system is issued is unsatisfactory for the needs of service application, all kinds of Service application carries out secondary development by the standards service for calling electrical network geographical information space service system to issue, and carries out space clothes The extension of business function, and voluntarily dispose extended Simulation spatial service.
This traditional electrical network geographical information space serving system architecture, it has not been convenient to measure all kinds of service applications for electrical network The resource service condition of geographical information space service system, the electrical network Simulation spatial service called by such as all kinds of service applications time Number, the memory source of the electrical network geographical information space service system for calling service consumed, cpu resource, disk resource etc..
Traditional electrical network geographical information space service system completes service call by F5 (a kind of hardware load mode) Load balancing, it is impossible to the operation reality of the electrical network Simulation spatial service of high capacity dynamically, is timely adjusted according to the demand of service application Example.
Meanwhile, each service application is voluntarily disposed for the Simulation spatial service of regarded as output controlling.The volume of transmitted data of Simulation spatial service and Plain text volume of transmitted data is compared, and transmission volume is bigger.Due to the Simulation spatial service of each service application institute regarded as output controlling it is only Vertical voluntarily deployment, and the normed space service that electrical network geographical information space service system is provided carries out the frequency of data by network Numerous interaction, has that the data volume of transmission is big, takes Netowrk tape, and often performance is relatively low for the Simulation spatial service for being extended.
Additionally, the grid equipment type of traditional electrical network geographical information space service system management is fixed.Each service application When needing to show if special grid equipment, generally require to build the basic environment of a set of geographical information platform, it would be desirable to open up The special grid equipment for showing is issued, so as to realize special grid equipment and electrical network geographical information space needed for service application The Overlapping display of data in service system.
By the retrieval to domestic publication and other documents, without find it is akin with the inventive method disclose it is special Profit and document.
The content of the invention
It is an object of the invention to overcome the deficiencies in the prior art, there is provided a kind of electrical network geography information for setting up tenant's driving The method of Simulation spatial service.
The present invention solves its technical problem and takes technical scheme below to realize:
A kind of method of the electrical network geographical information space service for setting up tenant's driving, including step is as follows:
(1) system set up needed for the method, the system include multi-tenant access control center, monitoring and scheduling, space clothes Business pond, storage resource and computing resource;
(2) deployment at multi-tenant access control center, multi-tenant access control center are to access electrical network geographical information space The entrance of service system, is the control of authority center of tenant, realizes following function:
1. tenant is carried out creating, is deleted, and the quota that tenant can use is managed,
2. to tenant using the resource of electrical network geographical information space service system conduct interviews control,
3. carry out load balancing to tenant's access request, multi-tenant access control center provide tenant's management, Certificate Authority, Resource trustship;
(3) monitoring and scheduling is set up, and monitoring and scheduling is electrical network geographical information space service system resource feelings to be used to each tenant The monitoring of condition, allocated quota when being created according to each tenant, carries out the restriction that resource is used, specifically includes:
1. monitoring server, is responsible for receiving data and the status information that monitoring agent is collected;Be responsible for all monitoring devices and Monitoring project configuration, the storage of data and the generation of form are sent with showing and reporting to the police;Service in Simulation spatial service pond is carried out Scheduling, is responsible for running the state for acting on behalf of the host state and running example for uploading according to node, carries out the failure of running example Transfer;
2. node operation agency, operates in a monitor component in monitored device, to collect in monitored device Various monitoring datas, and send these data to monitoring server;
3. the data gathered by the configuration information and system of monitoring data, all monitored main frames and monitored project are all Exist in time series database;
(4) Simulation spatial service pond is set up, Simulation spatial service pond is to operate in electrical network geographical information space service system basic environment In service set, both including the standards service of electrical network geographical information space service system, also including each tenant according to business Need the Simulation spatial service of extension;
(5) set up storage resource, storage resource is the storage system of electrical network geographical information space service system, storage it is interior Appearance includes grid graph data, hosted data, metadata and monitoring data, and storage content is deposited by relevant database Storage;
(6) computing resource is set up, computing resource is the computing capability of the offer of electrical network geographical information space service system, is wrapped CPU, internal memory, hard disk, network are included, is the set of the computing capability of all hosts, the use of computing resource is using container skill Art realizes Simulation spatial service for the access control of resource.
And, the tenant's management in the step (2) 3. includes establishment, the deletion of tenant of tenant, comprises the following steps that:
1. carry out creating the judgement that tenant still deletes tenant
2. the step is 1. if create comprising the following steps that for tenant:
A) essential information of tenant is set, and the essential information of tenant is as follows:
I. tenant numbers:The unique mark of tenant;
Ii. tenant's title:Operation system title corresponding to the tenant is described;
B) resource quota that tenant can use is set, and is written to tenant's quota table, the quota information that tenant uses is as follows:
I. addressable electric network data:According to the figure layer and unit of grid equipment, the electrical network that the tenant can access is set Data;
Ii. the number of times of service call:The secondary of the electrical network geographical information space service system standards service that tenant accesses is set Number;
Iii. the restriction of hosted data:Layer count restriction, hosted data including hosted data can take disk space Size limit;
Iv. the restriction of trusteeship service:The computing resource that quantity restriction, trusteeship service including trusteeship service is taken when running The upper limit, the transformation of the running example of the trusteeship service of operation;
C) authorization code that distribution is accessed:By essential information write tenant's table of tenant, and authorization code is returned, and, the step The rapid authorization code is used when electrical network geographical information space service system is called for tenant, for whether verifying tenant's identity It is legal;
3. the step is 1. if delete comprising the following steps that for tenant:
A) trusteeship service running example is deleted, it is described to comprise the following steps that:
I. service name, the numbering of tenant's trustship are got from metadata;
Ii. monitoring and scheduling module is notified, is responsible for deleting tenant's trusteeship service in Service Source pond by monitoring and scheduling module Running example;
Iii. delete in metadata to the description information that services hosted by the tenant;
B) hosted data is deleted, it is described to comprise the following steps that:
I. title, the storage location of hosted data are got from metadata;
Ii. title according to hosted data, storage location, physics delete hosted data;
Iii. delete description information to data hosted by tenant in metadata;
C) relevant information of tenant is deleted, it is described to comprise the following steps that:
I. delete the essential information of the tenant in tenant's table;
Ii. delete instance address corresponding to trusteeship service in service pool running example table;
Iii. delete the related other information of tenant.
And, the Certificate Authority in the step (2) 3. is specifically included:
1. realize the checking to tenant's identity information, it is to avoid illegal request is processed;
2. according to loading condition, load balancing is carried out to the access request of tenant, is comprised the following steps that:
A) required parameter parsing, parses to the call request parameter that client, application end send, obtains under tenant Column information:
I. tenant numbers;
Ii. authorization code;
Iii. service name:The service name can be the standards service that electrical network geographical information space service system is provided, Can also be Simulation spatial service that tenant is extended according to service needed, the standards service described in the step is that electrical network geography information is empty Between service system provide and by the basic electric network data access interface of the external offer of method of service, the standards service according to Micro services are designed exploitation, and each micro services provides a class data access interface, a container instance in Simulation spatial service pond One micro services of deployment;
B) tenant identification checking, reads tenant's list from tenant's table, verifies identifying whether effectively for tenant;
C) tenant's quota checking, reads the quota information of tenant from tenant's quota table, verifies whether this request reaches The call number upper limit of tenant's accessible services;
D) distribute reference address, reading service pond running example table gets the reference address of running example.Change simultaneously Data in tenant's quota table;
Wherein, the running example table includes following information, the Certificate Authority module in multi-tenant access control center from The inventory of running example is obtained in running example table, and the mode according to poll distributes reference address:
I.IP, port:By IP address and port can have access to running example offer service, the running example, Can be had access to from the external world by IP address and port;
Ii. tenant numbers:Which identify the running example to be created by tenant, if the service of electrical network geographical information space The standards service that system is provided, is designated default tenant;
Iii. service name:Identify the service name that the running example is provided.
Iv. heart time:Call time in the heart beating for identifying the running example last time, if heart beating reports time gap It is too remote, show that the service that the running example is provided is unavailable, not toward access request on the running example during load balancing;
V. last access time:Record this and record the recent access time of corresponding running example;
E) return result to tenant.
And, the resource trustship in the step (2) 3. includes spatial data trustship and the space of service application of tenant The trustship of service, comprises the following steps that:
1. tenant identification checking, from tenant's table reads data, carries out tenant identification checking, if illegal tenant Mark, terminates flow process;
2. tenant's quota checking, reads the quota data of tenant from tenant's quota table, the quota of tenant is verified, such as Fruit tenant using quota already exceed the upper limit, terminate flow process;
3. judge resource trustship type:Service tray or Data Hosting,
A. if Data Hosting in the step, perform below step:
A) hosted data is uploaded, the hosted data of upload can be Shapefile file formats, Excel forms;
B) hosted data parsing and checking, the hosted data to uploading are verified, carry out the parsing of figure layer, obtain trustship The following message of data:
I. the layers list
Ii. the mark of figure layer
Iii. figure layer field
Iv. coordinate system
C) hosted data priority assignation, arranges whether hosted data shares to other tenants' uses, if arranging what is shared Type:
I. read:The tenant for sharing the hosted data may only read the spatial data in the tables of data of the hosted data;
Ii. write:The tenant for sharing the hosted data can increase new spatial data toward the tables of data of the hosted data;
D) hosted data storage, by the hosted data write into Databasce after verifying after parsing, and by the unit of hosted data In data message write metadata table, and the priority assignation of previous step is recorded in tenant data control table;
The hosted data management is with following features:
There is unification in the electric network data in data and electrical network geographical information space service system i. hosted by service application Data base;
Ii. hosted data table name in storage numbers the form of _ 64 GUIDs using tenant, it is to avoid trustship The repetition of as shown by data;
Iii. the isolation of hosted data by tenant, shares three words of tenant and action type by logic isolation Section is used for configuring the shared isolation rule that hosted data is shown in tenant, and tenant field shows the owner of data resource, gathers around The person of having possesses total-control authority to data, can change sharing policy, shares and stops shared data, share tenant's field list Whom bright data resource sharing gives, and in corresponding action type, action type includes two kinds of reading and writing to shared authority records, rents Family can carry out symbolization to the data of trustship, issue into Map Services, and tenant by the data of trustship and can also have permission visit The basic electrical network figure layer asked is combined, symbolization again, and issues into Map Services;
E) returning result;
B. if service tray in step, perform following step:
A) trusteeship service is uploaded, the program bag of trusteeship service is uploaded to ftp server, if the trusteeship service is simply right The combination of electrical network geographical information space service system Plays service, need not access additional space data, then directly upload support Pipe service.If trusteeship service is using have accessed additional space data, need by the spatial data of extra access with The mode trustship of Data Hosting is in electrical network geographical information space service system;
B) service pool is deployed to, the trusteeship service of upload is deployed to service pool, more new metadata and service pond running example Table, the service pool are the set of all Simulation spatial services, the standard for not only providing including electrical network geographical information space service system Simulation spatial service, also including the Simulation spatial service of service application regarded as output controlling.All Simulation spatial services are designed out according to micro services Send out, in micro services operation container instance, and by the establishment of dispatching and monitoring management micro services operation container instance, deletion, time-out;
Wherein, it is described to be deployed to comprising the following steps that for service pool:
I. the example quantity of resource service condition and needs operation of the monitor scheduler according to each host, notifies phase Agent on the host answered creates running example;
Ii.Agent downloads foundation image file and program bag from ftp server according to the establishment instruction for receiving, and creates Go out running example, foundation image file includes the required middleware of Simulation spatial service operation, the basic environment of operation;
Iii. monitor scheduler creates situation according to the example that Agent feeds back, and more new metadata and the operation of service pond are real Example table;
C) return and terminate.
And, the monitoring server in the step (3) 1. has following features:
1. monitoring server is individually disposed, and is issued monitoring data collection service and is reported monitoring number by each node operation agency According to;
2. monitoring server active analysis monitoring data, and generate the form of analysis resource service condition;
3. monitoring server is responsible for maintenance operation example table;
4. monitoring server be responsible for notify node operation agent maintenance host on running example, including it is newly-built, delete, Operation suspension example;
In the step (3), 2. node operation agency has following features:
1. a host disposes a node operation agency, and active reporting collection is acted on behalf of in the node operation on host Monitoring data;
2. node runs the existing state of agent monitors place host, and reports a host at set intervals Existing state;
3. node operation agency is responsible for the existing state of host upper container, and reports the survival of container at set intervals State;
4. node runs the resource service condition of agent monitors host, and reports a host at set intervals Resource service condition, if reaching early warning value, monitoring server is no longer past to create new running example thereon;
5. node operation agency according to monitoring server send instruction, create on host new running example or Delete running example;
6. node operation agency provides the connection pool of connection background data base, and the connection for providing data base for running example turns Send out;
Monitoring data in the step (3) 3. specifically includes following content:
1. the CPU usage of host;
2. the memory usage of host;
3. the load mean value of host;
4. network traffics of host;
5. the disk usage amount of host;
6. the heartbeat message of host;
7. the heartbeat message of running example.
And, the Simulation spatial service pond of the step (4) has following feature:
1. container technique is adopted, the running example of multiple containers on a host, is run;
2. running example can pass through the IP address of host and port accesses, the running example IP on same host Address is identical, but the port for using is different;
3. the computing resource of the host that each running example can be used is specified when the running example is created, and in operation It is controlled in example running;
4. the running example independent operating on same host, running environment are mutually isolated, the extension of some running example Fall, do not affect the operation of other running examples on same host;
5. the standards service that electrical network geographical information space service system is provided is developed according to the mode of micro services, tenant Also developed according to the mode of micro services according to the spatial Information Service of service application regarded as output controlling, each running example have and The Simulation spatial service of a standards service or regarded as output controlling is disposed only;
6. each running example reports the running status of itself by node operation agency;
7. each running example is operated by node operation agency's connection background data base.
And, the grid graph data in the step (5) refers to the graph data of basic grid equipment, including electrical network sets Standby position coordinateses, the determinant attribute of equipment and topological connection relation, basic grid equipment graph data is according to grid equipment pipe Reason specialty carries out Bedding storage, and basic grid graph data conducts interviews control according to equipment affiliated unit;
Hosted data in the step (5) is the sky that service application is stored in electrical network geographical information space service system Between data.The hosted data of different tenants is isolated by logic, and electrical network geographical information space service system provides trustship number According to storage, management storage spatial data;
Metadata in the step (5), is that all kinds of data storages in electrical network geographical information space service system are entered Capable description, including but do not limit to following message:
1. the description of basic electric network data;
2. the description of hosted data;
3. tenant's information;
The data of the various monitoring collections of supervising data storage in the step (5), using time series data library storage, data Content includes but is not limited to following information:
1. the CPU usage of host;
2. the memory usage of host;
3. the load mean value of host;
4. network traffics of host;
5. the disk usage amount of host;
6. the heartbeat message of host;
7. the heartbeat message of running example.
Advantages of the present invention and good effect are
1st, the present invention utilizes multi-tenant technology, and each tenant of energy valid metric is for electrical network geographical information space service system Resource service condition, takes the more service application scenes of computing resource so as to targetedly improve.
2nd, the present invention utilizes multi-tenant technology, by the quota control to each tenant, including the grid equipment that can be used, CPU is using accounting, internal memory using limit, call number limit etc., it is to avoid the irrational resource consumption of certain tenant is caused to other The impact of the hosted service of tenant or the irrational resource consumption of certain tenant cause whole electrical network spatial Information Service system Paralysis.
3rd, the present invention utilizes multi-tenant technology, the space clothes that each tenant can be according to needed for service application needs to extend itself Business, and trustship is in electrical network spatial Information Service system, electrical network Simulation spatial service system provides the monitoring of trusteeship service and operation is real The scheduling of example.
4th, the present invention utilizes multi-tenant technology, and each tenant can be according to the space number needed for service application needs to extend itself According to figure layer, and trustship is in electrical network spatial Information Service system, and electrical network Simulation spatial service system provides the unified management of hosted data With the control of authority for accessing.
Description of the drawings
Fig. 1 is electrical network geographical information space service system circuit theory schematic diagram;
Fig. 2 is tenant's management schematic diagram;
Fig. 3 is Certificate Authority schematic diagram;
Fig. 4 is resource trustship schematic diagram;
Fig. 5 is electrical network geographical information space service system operation schematic diagram;
Fig. 6 is hosted data schematic diagram;
Fig. 7 is module deployment schematic diagram.
Specific embodiment
Hereinafter the embodiment of the present invention is further described, following examples are descriptive, be not it is determinate, no Protection scope of the present invention can be limited with this.
A kind of method of the electrical network geographical information space service for setting up tenant's driving, including step is as follows:
(1) system is by multi-tenant access control center, monitoring and scheduling, Simulation spatial service pond, storage resource, computing resource group Into seeing Fig. 1 electrical network geographical information space service system installation drawings.
(2) multi-tenant access control center is the entrance for accessing electrical network geographical information space service system, is the power of tenant Limit control centre.With following function:
1. tenant is carried out creating, is deleted, and the quota that tenant can use is managed
The resource (storage resource, computing resource etc.) of the electrical network geographical information space service system for 2. using to tenant is carried out Access control
3. load balancing is carried out to tenant's access request
Multi-tenant access control center provides tenant's management, Certificate Authority, resource trustship.
Tenant's management in the step (2) includes establishment, the deletion of tenant of tenant, and its flow process is shown in that Fig. 2 tenant manages, tool Body step is as follows:
1. create the judgement that tenant still deletes tenant
2. the step is 1. if create comprising the following steps that for tenant:
A) essential information of tenant is set, and the essential information of tenant is as follows:
I. tenant numbers:The unique mark of tenant
Ii. tenant's title:Operation system title corresponding to the tenant is described
B) resource quota that tenant can use is set, and is written to tenant's quota table.The quota information that tenant can use is such as Under:
I. addressable electric network data:According to the figure layer and unit of grid equipment, the electrical network that the tenant can access is set Data
Ii. the number of times of service call:The electrical network geographical information space service system standards service that tenant can access is set Number of times
Iii. the restriction of hosted data:Including can hosted data layer count limit, that hosted data can take disk is empty Between size limit
Iv. the restriction of trusteeship service:Including can trusteeship service quantity limit, trusteeship service run when take calculating money The upper limit in source (internal memory, disk, CPU, network), the transformation of the running example of the trusteeship service that can be run
C) authorization code that distribution is accessed.By essential information write tenant's table of tenant, and return authorization code.
And, authorization code described in the step is used when electrical network geographical information space service system is called for tenant, is used It is whether legal in checking tenant's identity.
D) terminate flow process.
3. the step is 1. if delete comprising the following steps that for tenant:
A) delete trusteeship service running example.It is described to comprise the following steps that:
I. service name, the numbering of tenant's trustship are got from metadata
Ii. monitoring and scheduling module is notified, is responsible for deleting tenant's trusteeship service in Service Source pond by monitoring and scheduling module Running example
Iii. delete in metadata to the description information that services hosted by the tenant
B) delete hosted data.It is described to comprise the following steps that:
I. title, the storage location of hosted data are got from metadata
Ii. title according to hosted data, storage location, physics delete hosted data
Iii. delete description information to data hosted by tenant in metadata
C) delete the relevant information of tenant.It is described to comprise the following steps that:
I. delete the essential information of the tenant in tenant's table
Ii. delete instance address corresponding to trusteeship service in service pool running example table
Iii. delete the related other information of tenant
D) terminate flow process.
Certificate Authority in the step (2), the main function of realizing:
1. realize the checking to tenant's identity information, it is to avoid illegal request is processed
2. according to loading condition, load balancing is carried out to the access request of tenant
Its handling process is shown in Fig. 3 Certificate Authorities, comprises the following steps that:
1. required parameter parsing.The call request parameter that client, application end send is parsed, is obtained under tenant Column information:
A) tenant's numbering
B) authorization code
C) service name:The service name can be the standards service that electrical network geographical information space service system is provided, It can be Simulation spatial service that tenant is extended according to service needed.
Standards service described in the step is that electrical network geographical information space service system is provided and passes through method of service pair The basic electric network data access interface of outer offer.The standards service is designed exploitation according to micro services, each micro services A class data access interface is provided, a container instance disposes a micro services in Simulation spatial service pond.
2. tenant identification checking.Tenant's list is read from tenant's table, identifying whether effectively for tenant is verified.
3. tenant's quota checking.The quota information of tenant is read from tenant's quota table, verifies whether this request reaches The call number upper limit of tenant's accessible services.
4. distribute reference address.Reading service pond running example table, gets the reference address of running example.Change simultaneously Data in tenant's quota table.
The running example table includes following information, and the Certificate Authority module in multi-tenant access control center is real from operation The inventory of running example is obtained in example table, and the mode according to poll distributes reference address:
A) IP, port:The service of running example offer can be had access to by IP address and port.The running example, Can be had access to from the external world by IP address and port.
B) tenant's numbering:Which identify the running example to be created by tenant.If the service of electrical network geographical information space The standards service that system is provided, is designated default tenant.
C) service name:Identify the service name that the running example is provided.
D) heart time:Call time in the heart beating for identifying the running example last time, if heart beating reports time gap It is too remote, show that the service that the running example is provided is unavailable, not toward access request on the running example during load balancing.
E) last access time:Record this and record the recent access time of corresponding running example
5. return result to tenant.
Resource trustship in the step (2), including the support of the Simulation spatial service of the spatial data trustship and service application of tenant Pipe, as shown in figure 4, its step is as follows:
1. tenant identification checking.Data are read from tenant's table, tenant identification checking is carried out.If illegal tenant Mark, terminates flow process.
2. tenant's quota checking.The quota data of tenant is read from tenant's quota table, the quota of tenant is verified, such as Fruit tenant using quota already exceed the upper limit, terminate flow process.
3. judge resource trustship type:Service tray or Data Hosting.
If Data Hosting in affiliated step, below step is performed:
A) upload hosted data.The hosted data of upload can be Shapefile file formats, Excel forms.
B) hosted data parsing and checking.Hosted data to uploading is verified, carries out the parsing of figure layer, obtain trustship The following message of data:
I. the layers list
Ii. the mark of figure layer
Iii. figure layer field
Iv. coordinate system
C) hosted data priority assignation.Arrange whether hosted data can share to other tenants' uses, if can To arrange the type that can be shared:
I. read:The tenant for sharing the hosted data may only read the spatial data in the tables of data of the hosted data.
Ii. write:The tenant for sharing the hosted data can increase new spatial data toward the tables of data of the hosted data.
D) hosted data storage.By in the hosted data write into Databasce after verifying after parsing, and by the unit of hosted data In data message write metadata table, and the priority assignation of previous step is recorded in tenant data control table.
The hosted data management is with following features:
There is unification in the electric network data in data and electrical network geographical information space service system i. hosted by service application Data base.
Ii. hosted data table name in storage adopts the form of " tenant numbers _ 64 GUIDs ", it is to avoid support The repetition of pipe as shown by data.
Iii. by logic isolation, control schematic diagram is shown in Fig. 6 hosted datas for the isolation of hosted data.
It is used for configuring hosted data in sharing that tenant sees by tenant, three fields of shared tenant and action type Isolation rule.
Tenant field shows the owner of data resource, and owner possesses total-control authority, Ke Yixiu to data Change sharing policy, share and stop shared data;
Shared tenant's field shows data resource sharing to whom, and shared authority records are in corresponding action type.Behaviour Include two kinds of reading and writing as type.
Iv. tenant can carry out symbolization to the data of trustship, issue into Map Services;Tenant can also be by the number of trustship It is combined according to the basic electrical network figure layer with permission to access, symbolization again, and issues into Map Services.
The symbolization is the concept of GIS-Geographic Information System, refers to and arranges the symbol for showing to spatial data;
The Map Services are the concepts of GIS-Geographic Information System, and Map Services are often provided to the spatial data issued Carry out inquiring about, show, map derivation, the function such as analysis of network, and the geographic information standard for supporting WMS, WFS, KML etc. general connects Mouthful.Generally require to develop using the function provided by Map Services when extending new Simulation spatial service.
E) returning result.
If service tray in affiliated step, following step is performed:
A) upload trusteeship service.The program bag of trusteeship service is uploaded to ftp server.
If trusteeship service combination simply to the service of electrical network geographical information space service system Plays, without the need for visiting Additional space data are asked, then directly uploads trusteeship service.If trusteeship service is using have accessed additional space number According to, need by the spatial data of extra access in the way of Data Hosting trustship in electrical network geographical information space service system.
B) it is deployed to service pool.The trusteeship service of upload is deployed to service pool, more new metadata and service pond running example Table.
The service pool is the set of all Simulation spatial services, is not only provided including electrical network geographical information space service system Normed space is serviced, also including the Simulation spatial service of service application regarded as output controlling.All Simulation spatial services are set according to micro services Meter exploitation, in micro services operation container instance, and by dispatching and monitoring manage micro services run the establishment of container instance, deletion, Suspend.
It is described to be deployed to comprising the following steps that for service pool:
I. the example quantity of resource service condition and needs operation of the monitor scheduler according to each host, notifies phase Agent (node operation agency) on the host answered creates running example.
Ii.Agent (node operation agency) downloads foundation image file from ftp server according to the establishment instruction for receiving And program bag, it is created that running example.Foundation image file includes the required middleware of Simulation spatial service operation, the basis of operation Environment.
Iii. monitor scheduler creates situation, more new metadata according to the example that Agent (node operation agency) feeds back With service pool running example table.
C) return and terminate.
(3) monitoring and scheduling.Monitoring and scheduling is that electrical network geographical information space service system resource (storage money is used to each tenant Source, computing resource) situation monitoring, allocated quota when being created according to each tenant carries out the restriction that resource is used.
The dispatching and monitoring includes following several ingredients, sees that the operation of Fig. 5 electrical network geographical information spaces service system is shown It is intended to:
1. Server (monitoring server).It is responsible for receiving data and the status information that monitoring agent is collected;It is responsible for all prisons Control equipment and monitoring project configuration, the storage of data and the generation of form are sent with showing, reporting to the police;To the clothes in Simulation spatial service pond Business is scheduled, and is responsible for the state of the host state and running example uploaded according to Agent (node operation agency), is transported The failure transfer of row example.
2. Agent (node operation agency).A monitor component in monitored device is operated in, it is monitored to collect Various monitoring datas on equipment, and send these data to monitoring server.
3. monitoring data.The data gathered by the configuration information and system of all monitored main frames and monitored project are all Exist in time series database.
And, in the ingredient, Server (monitoring server) is with following features:
1. Server (monitoring server) is individually disposed, and (node runs by each Agent to issue monitoring data collection service Agency) report monitoring data.
2. Server (monitoring server) active analysis monitoring data, and generate the form of analysis resource service condition.
3. Server (monitoring server) is responsible for maintenance operation example table.
4. Server (monitoring server) is responsible for notifying the operation reality that Agent (node operation agency) is safeguarded on host Example, including newly-built, deletion, operation suspension example.
And, in the ingredient, Agent (node operation agency) is with following features:
1. a host disposes an Agent (node operation agency), the Agent (node operation agency) on host The monitoring data that active reporting is collected.
2. Agent (node operation agency) monitors the existing state of place host, and reports at set intervals once The existing state of host.
3. Agent (node operation agency) is responsible for the existing state of host upper container, and reports appearance at set intervals The existing state of device.
4. Agent (node operation agency) monitors the resource service condition of host, and reports at set intervals once The resource service condition of host.If reaching early warning value, Server (monitoring server) is no longer past to create new operation thereon Example.
5. the instruction that Agent (node operation agency) is sent according to Server (monitoring server), creates on host New running example deletes running example.
6. Agent (node operation agency) provides the connection pool of connection background data base, provides data base for running example Connection forwarding.
And, in affiliated ingredient, monitoring data includes following content:
1. the CPU usage of host
2. the memory usage of host
3. the load mean value of host
4. network traffics of host
5. the disk usage amount of host
6. the heartbeat message of host
7. the heartbeat message of running example
(4) Simulation spatial service pond.Simulation spatial service pond is operated in electrical network geographical information space service system basic environment The set of service, both including the standards service of electrical network geographical information space service system, also including each tenant according to service needed The Simulation spatial service of extension.
And, the Simulation spatial service pond has following feature:
I. container technique is adopted, the running example of multiple containers on a host, is run.
Ii. running example can pass through the IP address of host and port accesses.Running example on same host IP address is identical, but the port for using is different.
Iii. the computing resource (CPU, internal memory, disk, network) of the host that each running example can be used should in establishment Specify during running example, and be controlled in running example running.
Iv. the running example independent operating on same host, running environment are mutually isolated.The extension of some running example Fall, do not affect the operation of other running examples on same host.
V. the standards service that electrical network geographical information space service system is provided is developed according to the mode of micro services;Tenant Also developed according to the mode of micro services according to the spatial Information Service of service application regarded as output controlling.Each running example have and The Simulation spatial service of a standards service or regarded as output controlling is disposed only.
Vi. each running example reports the running status of itself by Agent (node operation agency).
Vii. each running example is operated by Agent (node operation agency) connection background data base.
(5) storage resource.Storage resource is the storage system of electrical network geographical information space service system, the content bag of storage Include grid graph data, hosted data, metadata, monitoring data.Storage content is stored by relevant database.
And, grid graph data described in the step refers to the graph data of basic grid equipment, including grid equipment Position coordinateses, the determinant attribute of equipment, topological connection relation.Basic grid equipment graph data is according to power equipment management specialty Carry out Bedding storage, basic grid graph data conducts interviews control according to equipment affiliated unit.
When hosted data described in the step refers to service application, service application has special grid equipment type to be opened up Show, these special grid equipment type not having in basic grid graph data.Electrical network geographical information space service system Provide the foundation framework, and each service application can be stored in electrical network geographical information space service system according to the needs of itself Required special grid equipment, and realize that the superposition of these special grid equipments and basic grid graph data shows.
Hosted data described in the step is exactly the space that service application is stored in electrical network geographical information space service system Data.The hosted data of different tenants is isolated by logic, and electrical network geographical information space service system provides hosted data Storage, the spatial data that stores of management (create, delete, update).
Metadata described in the step, is to retouching that all kinds of data storages in electrical network geographical information space service system are carried out State, including but do not limit to following message:
1. the description of basic electric network data
2. the description of hosted data
3. tenant's information
The data of the various monitoring collections of supervising data storage described in the step, using time series data library storage, in data
Hold and include but is not limited to following information:
1. the CPU usage of host
2. the memory usage of host
3. the load mean value of host
4. network traffics of host
5. the disk usage amount of host
6. the heartbeat message of host
7. the heartbeat message of running example
(6) computing resource.Computing resource is the computing capability of the offer of electrical network geographical information space service system, including CPU, internal memory, hard disk, network, are the set of the computing capability of all hosts.
The use of the computing resource, is to realize Simulation spatial service for the access control of resource using container technique.
The ultimate principle of the present invention
The foundation of the present invention and method, including step is as follows:
(1) system is by multi-tenant access control center, monitoring and scheduling, Simulation spatial service pond, storage resource, computing resource group Into, see Fig. 1 electrical network geographical information space service system installation drawings, Fig. 7 modules deployment schematic diagram, explanation are shown in the deployment of modules It is as follows:
1. module multi-tenant access control center is deployed on two-server, master backup based on two-server is mutual.
2. container instance is run on each host, a container instance disposes a Simulation spatial service.On each host One Agent of deployment (node operation agency), gathers status information, the fortune of each host by Agent (node operation agency) The running status of container of the row on main frame, the running status of Simulation spatial service;Agent (node operation agency) at the same also be responsible for and Background data base cluster sets up connection pool, and access of each container to data base is completed by Agent (node operation agency).
3. Server (dispatching and monitoring) is deployed in single server, is to ensure high availability, using active and standby deployment. The responsible monitoring informations for receiving to report of Server (dispatching and monitoring) are simultaneously stored in time series database influxdb;Meanwhile, Server (dispatching and monitoring) is responsible for carrying out container operation in fact to Agent (node operation agency) the transmission instruction on each host The establishment of example, deletions etc. are operated.
4. time series database influxdb is responsible for storing monitoring data.Data-base cluster storage electric network data, hosted data, Metadata.
5. running example table is stored using Memcached, is the high availability for ensureing running example table, Memcached adopts active and standby deployment.
6. ftp server.Storage foundation image file and the program bag of the trusteeship service for uploading.Create running example from Ftp server downloads required file.
(2) tenant is key concept as herein described, tenant's one integrated business application system of correspondence.Tenant has Different quota restrictions, the quota of tenant are allocated when the tenant is created, and also can be adjusted in the later stage.It is available for tenant to make Quota includes:
1. addressable electric network data:According to the figure layer and unit of basic grid equipment, arrange what the tenant can access Electric network data;
2. the number of times of service call:The electrical network geographical information space service system standards service that tenant can access is set Number of times;
3. the restriction of hosted data:Including can hosted data layer count limit, hosted data can take disk space Size limit;
4. the restriction of trusteeship service:Including can trusteeship service quantity limit, trusteeship service run when take calculating money The upper limit in source (internal memory, disk, CPU, network), the transformation of the running example of the trusteeship service that can be run.
(3) incoming authorization code is needed when tenant accesses electrical network geographical information space service system, authorization code is tenant's access The identity of electrical network geographical information space service system, for verifying whether the tenant is legal.
(4) tenant's management is operated by the personnel for having administrator right in electrical network geographical information space service system.Wound The essential information of tenant is set when building tenant, and distributes the upper limit that can use quota.The application scenarios of tenant mainly include tenant Data Hosting, the service tray of tenant.
(5) implementation steps of tenant data trustship are as follows:
1. upload hosted data.The hosted data that tenant uploads can be Shapefile file formats, Excel forms.
2. hosted data parsing and checking.Trustship number of the resource trustship module in multi-tenant access control center to upload According to being verified, the parsing of figure layer is carried out, obtain the following message of hosted data:
A) the layers list
B) mark of figure layer:The title of figure layer
C) figure layer field:Field name
D) coordinate system:The coordinate system of hosted data
3. hosted data priority assignation.Tenant has whole control authorities to the data of itself trustship, readable writeable, rents The data sharing of oneself trustship can also use to other tenants by family, and the type that can be shared includes:
A) read:The tenant for sharing the hosted data may only read the spatial data in the tables of data of the hosted data.
B) write:The tenant for sharing the hosted data can increase new spatial data toward the tables of data of the hosted data.
4. hosted data storage.By in the hosted data write into Databasce after verifying after parsing, and by the unit of hosted data In data message write metadata table, and the priority assignation of previous step is recorded in tenant data control table.Tenant data Being embodied as trustship is as follows:
A) the basic electric network data in data and electrical network geographical information space service system hosted by service application is present In unified storage data storehouse.
B) parsing obtains the layers list of hosted data, and corresponding table is created in data base, and the table name of hosted data is adopted With the form of " tenant numbers _ 64 GUIDs ", it is to avoid the repetition of hosted data table name.
C) by logic isolation, logic isolation is realized by tenant data control table for the isolation of hosted data.Control is illustrated Figure is shown in Fig. 6 hosted datas.Tenant data control table includes following field:
i.ID:Numbering, major key
Ii. resource object:Figure layer name/the table name of storage hosted data
Iii. the tenant:In the hosted data, figure layer is created by which tenant, and the tenant has whole to the data of trustship Operating right
Iv. share tenant:A certain figure layer in the hosted data is shared to the tenant to use.The exercisable authority of the tenant Record is in action type string.
V. action type:The shared tenant of record can use the authority of hosted data, action type to include two kinds of authorities of reading and writing
It is used for configuring hosted data in sharing that tenant sees by tenant, three fields of shared tenant and action type Isolation rule.
D) returning result.
5. the implementation steps of tenant's service tray are as follows:
A) upload trusteeship service.When trusteeship service is service application, electrical network geographical information space service system standards service is not When meeting demand, the new Simulation spatial service that service application is extended based on standard service components.The Simulation spatial service trustship fortune of new extension , in electrical network geographical information space service system, the trusteeship service program storage of upload is on ftp server for row.
B) it is deployed to service pool.It is described to be deployed to comprising the following steps that for service pool:
The example quantity of resource service condition and needs operation of the i.Server (dispatching and monitoring) according to each host, meter Calculate the quantity of the running example for needing to create on each host.
Ii.Server (dispatching and monitoring) sends instructions to Agent (node operation agency), and transmits foundation image file (foundation image file includes the required middleware of Simulation spatial service operation, the basic environment of operation) and URL, the operation of program bag The parameters such as CPU that example can be used, internal memory, network, disk.
Iii.Agent (node operation agency), according to the parameter for receiving, downloads foundation image file and program bag, creates Go out running example.
The result of establishment is fed back to Server (dispatching and monitoring) by iv.Agent (node operation agency), and is responsible for more Singapore dollar Data and service pool running example table.
V. return and terminate.
(6) implementation steps of tenant's access service:
1. the form of tenant's access service is as follows:
http://IP:Port/sggisserver/services/ tenant's numbering/service name/method nameParameter 1= Parameter value & parameter 2=parameter value & parameter 3=Can Shuozhi &...& ginseng value 4=parameter values, if electrical network geographical information space clothes The standards service that business system is provided, then tenant's numbering is default value gis, and all of standards service is under the jurisdiction of the special tenant of system gis.The authorization code that tenant accesses is transmitted in HTTP heads.
2. required parameter parsing, obtains following message:
A) tenant's numbering:Service to be accessed belongs to the tenant.
B) service name:Service name to be accessed
C) authorization code
3. from tenant's table read tenant's information.Numbered according to tenant, verify that the tenant whether there is.
4. numbered according to tenant, decrypt authorization code, verify whether this access is legal.
5. numbered according to tenant, read quota information, if tenant reaches the quota upper limit to the access times for servicing, accessed Failure;If access times are not up to the quota upper limit, distribute a reference address.The step distributes the concrete reality of reference address Apply step as follows:
A) heart time in service pool running example table is identified and is called time in the heart beating of the running example last time, such as Core is jumped onto and is called time away from too far away, shows that the service that the running example is provided is unavailable, and the inquiry of previous step is by its mistake Filter.
B) last access time in service pool running example table identifies this to record corresponding running example nearest Access time.Numbered according to tenant, service name, heart time inquiry service pool running example table obtains running example The inventory of table, apart from the address recorded as access that present time is farthest in selection last access time field from inventory.
C) the middle last access time for updating selected record is current time.
D) backward reference address.
(7) implementation steps of tenant's quota restrictions.Each tenant is used in electrical network geographical information space service system Resource limited by quota.Quota item in electrical network geographical information space service system includes:
1. addressable electric network data:According to the figure layer and unit of grid equipment, the basis that the tenant can access is set Electric network data.After setting up the addressable basic electrical network figure layer of tenant, the Simulation spatial service of tenant's extension can not access which and can not visit The basic electrical network figure layer asked.The data of its trustship and addressable basic electrical network figure layer can be combined by tenant, issue new Graphical services out conduct interviews.
2. the number of times of service call:The electrical network geographical information space service system standards service that tenant can access is set Number of times.In access service, the Certificate Authority module at multi-tenant access control center carries out the limit of service call number of times to tenant System, when the upper limit that the number of times of service call reaches the full quota, accesses failure.
3. the restriction of hosted data:Including can hosted data layer count limit, hosted data can take disk space Size limit.Tenant's hosted data be limited in tenant upload hosted data when be controlled, more than can hosted data figure Layer number limit the upper limit, can take disk space size limit when, hosted data upload failure.
4. the restriction of trusteeship service:Including can trusteeship service quantity limit, trusteeship service run when take calculating money The upper limit in source (internal memory, disk, CPU, network), the transformation of the running example of the trusteeship service that can be run.Each tenant Can trusteeship service quantity upload trusteeship service bag when be controlled, more than can trusteeship service transformation, then upload support Pipe service is unsuccessful.The upper limit of the computing resource (internal memory, disk, CPU, network) that trusteeship service is taken when running, by container It is controlled, container technique provides outstanding resource isolation mechanism, the mutually isolated mutual not shadow of operation of each Simulation spatial service Ring.The transformation of the running example of the trusteeship service that can be run is completed by Server (monitoring server), Server (monitoring Server) monitoring running example quantity, Mobile state of going forward side by side adjustment.

Claims (7)

1. a kind of method that electrical network geographical information space for setting up tenant's driving is serviced, it is characterised in that as follows including step:
(1) system set up needed for the method, the system include multi-tenant access control center, monitoring and scheduling, Simulation spatial service pond, Storage resource and computing resource;
(2) deployment at multi-tenant access control center, multi-tenant access control center are to access the service of electrical network geographical information space The entrance of system, is the control of authority center of tenant, realizes following function:
1. tenant is carried out creating, is deleted, and the quota that tenant can use is managed,
2. to tenant using the resource of electrical network geographical information space service system conduct interviews control,
3. load balancing is carried out to tenant's access request, multi-tenant access control center provides tenant's management, Certificate Authority, resource Trustship;
(3) monitoring and scheduling is set up, and monitoring and scheduling is electrical network geographical information space service system resource situation to be used to each tenant Monitoring, allocated quota when being created according to each tenant carry out the restriction that resource is used, specifically include:
1. monitoring server, is responsible for receiving data and the status information that monitoring agent is collected;It is responsible for all monitoring devices and monitoring Project configuration, the storage of data and the generation of form are sent with showing and reporting to the police;Service in Simulation spatial service pond is scheduled, It is responsible for running the state for acting on behalf of the host state and running example for uploading according to node, carries out the failure transfer of running example;
2. node operation agency, operates in a monitor component in monitored device, each in monitored device to collect Monitoring data is planted, and sends these data to monitoring server;
3. the data gathered by the configuration information and system of monitoring data, all monitored main frames and monitored project are all present In time series database;
(4) Simulation spatial service pond is set up, Simulation spatial service pond is operated in electrical network geographical information space service system basic environment The set of service, both including the standards service of electrical network geographical information space service system, also including each tenant according to service needed The Simulation spatial service of extension;
(5) set up storage resource, storage resource is the storage system of electrical network geographical information space service system, the content bag of storage Grid graph data, hosted data, metadata and monitoring data are included, storage content is stored by relevant database;
(6) computing resource is set up, computing resource is the computing capability of the offer of electrical network geographical information space service system, including CPU, internal memory, hard disk, network, are the set of the computing capability of all hosts, and the use of computing resource is to use container technique Realize Simulation spatial service for the access control of resource.
2. the method that the electrical network geographical information space for setting up tenant's driving according to claim 1 is serviced, it is characterised in that: Tenant's management in the step (2) 3. includes establishment, the deletion of tenant of tenant, comprises the following steps that:
1. carry out creating the judgement that tenant still deletes tenant
2. the step is 1. if create comprising the following steps that for tenant:
A) essential information of tenant is set, and the essential information of tenant is as follows:
I. tenant numbers:The unique mark of tenant;
Ii. tenant's title:Operation system title corresponding to the tenant is described;
B) resource quota that tenant can use is set, and is written to tenant's quota table, the quota information that tenant uses is as follows:
I. addressable electric network data:According to the figure layer and unit of grid equipment, the electric network data that the tenant can access is set;
Ii. the number of times of service call:The number of times of the electrical network geographical information space service system standards service that tenant accesses is set;
Iii. the restriction of hosted data:Layer count restriction, hosted data including hosted data can take the big of disk space Little restriction;
Iv. the restriction of trusteeship service:Including trusteeship service quantity limit, trusteeship service run when take computing resource it is upper Limit, the transformation of the running example of the trusteeship service of operation;
C) authorization code that distribution is accessed:By essential information write tenant's table of tenant, and authorization code is returned, and, the step institute State authorization code to use when electrical network geographical information space service system is called for tenant, for verifying whether tenant's identity closes Method;
3. the step is 1. if delete comprising the following steps that for tenant:
A) trusteeship service running example is deleted, it is described to comprise the following steps that:
I. service name, the numbering of tenant's trustship are got from metadata;
Ii. monitoring and scheduling module is notified, is responsible for deleting the fortune of tenant's trusteeship service in Service Source pond by monitoring and scheduling module Row example;
Iii. delete in metadata to the description information that services hosted by the tenant;
B) hosted data is deleted, it is described to comprise the following steps that:
I. title, the storage location of hosted data are got from metadata;
Ii. title according to hosted data, storage location, physics delete hosted data;
Iii. delete description information to data hosted by tenant in metadata;
C) relevant information of tenant is deleted, it is described to comprise the following steps that:
I. delete the essential information of the tenant in tenant's table;
Ii. delete instance address corresponding to trusteeship service in service pool running example table;
Iii. delete the related other information of tenant.
3. the method that the electrical network geographical information space for setting up tenant's driving according to claim 1 is serviced, it is characterised in that: Certificate Authority in the step (2) 3., specifically includes:
1. realize the checking to tenant's identity information, it is to avoid illegal request is processed;
2. according to loading condition, load balancing is carried out to the access request of tenant, is comprised the following steps that:
A) required parameter parsing, parses to the call request parameter that client, application end send, obtains the following letter of tenant Breath:
I. tenant numbers;
Ii. authorization code;
Iii. service name:The service name can be the standards service that electrical network geographical information space service system is provided, and also may be used To be Simulation spatial service that tenant is extended according to service needed, the standards service described in the step is electrical network geographical information space clothes Basic electric network data access interface that is that business system is provided and externally being provided by method of service, the standards service is according in incognito Business is designed exploitation, and each micro services provides a class data access interface, a container instance deployment in Simulation spatial service pond One micro services;
B) tenant identification checking, reads tenant's list from tenant's table, verifies identifying whether effectively for tenant;
C) tenant's quota checking, reads the quota information of tenant from tenant's quota table, verifies whether this request has reached this The call number upper limit of tenant's accessible services;
D) distribute reference address, reading service pond running example table gets the reference address of running example.Tenant is changed simultaneously Data in quota table;
Wherein, the running example table includes following information, and the Certificate Authority module in multi-tenant access control center is from operation The inventory of running example is obtained in example table, and the mode according to poll distributes reference address:
I.IP, port:The service of running example offer can be had access to by IP address and port, the running example passes through IP address and port can be had access to from the external world;
Ii. tenant numbers:Which identify the running example to be created by tenant, if electrical network geographical information space service system The standards service of offer, is designated default tenant;
Iii. service name:Identify the service name that the running example is provided.
Iv. heart time:Call time in the heart beating for identifying the running example last time, if heart beating reports time gap too Far, show that the service that the running example is provided is unavailable, not toward access request on the running example during load balancing;
V. last access time:Record this and record the recent access time of corresponding running example;
E) return result to tenant.
4. the method that the electrical network geographical information space for setting up tenant's driving according to claim 1 is serviced, it is characterised in that: Resource trustship in the step (2) 3. includes the trustship of the Simulation spatial service of the spatial data trustship and service application of tenant, tool Body step is as follows:
1. tenant identification checking, from tenant's table reads data, carries out tenant identification checking, if illegal tenant mark Know, terminate flow process;
2. tenant's quota checking, reads the quota data of tenant from tenant's quota table, the quota of tenant is verified, if rented Family using quota already exceed the upper limit, terminate flow process;
3. judge resource trustship type:Service tray or Data Hosting,
A. if Data Hosting in the step, perform below step:
A) hosted data is uploaded, the hosted data of upload can be Shapefile file formats, Excel forms;
B) hosted data parsing and checking, the hosted data to uploading are verified, carry out the parsing of figure layer, obtain hosted data Following message:
I. the layers list
Ii. the mark of figure layer
Iii. figure layer field
Iv. coordinate system
C) hosted data priority assignation, arranges whether hosted data shares to other tenants' uses, if arranging shared type:
I. read:The tenant for sharing the hosted data may only read the spatial data in the tables of data of the hosted data;
Ii. write:The tenant for sharing the hosted data can increase new spatial data toward the tables of data of the hosted data;
D) hosted data storage, by the hosted data write into Databasce after verifying after parsing, and by the metadata of hosted data In information write metadata table, and the priority assignation of previous step is recorded in tenant data control table;
The hosted data management is with following features:
There is uniform data in the electric network data in data and electrical network geographical information space service system i. hosted by service application Storehouse;
Ii. hosted data table name in storage numbers the form of _ 64 GUIDs using tenant, it is to avoid hosted data The repetition for showing;
Iii. the isolation of hosted data is used by tenant, three fields of shared tenant and action type by logic isolation To configure the shared isolation rule that hosted data is shown in tenant, tenant field shows the owner of data resource, owner Total-control authority is possessed to data, sharing policy can be changed, share and stop shared data, shared tenant's field shows number Whom gives according to resource-sharing, in corresponding action type, action type includes two kinds of reading and writing, Zu Huke to shared authority records Symbolization is carried out with the data to trustship, Map Services are issued into, tenant can also be by the data of trustship and permission to access Basic electrical network figure layer is combined, symbolization again, and issues into Map Services;
E) returning result;
B. if service tray in step, perform following step:
A) trusteeship service is uploaded, the program bag of trusteeship service is uploaded to ftp server, if the trusteeship service is to electrical network The combination of geographical information space service system Plays service, need not access additional space data, then directly upload trustship clothes Business.If trusteeship service is needed the spatial data of extra access using have accessed additional space data with data The mode trustship of trustship is in electrical network geographical information space service system;
B) service pool is deployed to, the trusteeship service of upload is deployed to service pool, more new metadata and service pond running example table, institute The set that service pool is all Simulation spatial services is stated, the normed space clothes for not only providing including electrical network geographical information space service system Business, also including the Simulation spatial service of service application regarded as output controlling.All Simulation spatial services are designed exploitation according to micro services, in incognito In business operation container instance, and by the establishment of dispatching and monitoring management micro services operation container instance, deletion, time-out;
Wherein, it is described to be deployed to comprising the following steps that for service pool:
I. the example quantity of resource service condition and needs operation of the monitor scheduler according to each host, notifies corresponding Agent on host creates running example;
Ii.Agent downloads foundation image file and program bag from ftp server according to the establishment instruction for receiving, and is created that fortune Row example, foundation image file include the required middleware of Simulation spatial service operation, the basic environment of operation;
Iii. monitor scheduler creates situation, more new metadata and service pond running example table according to the example that Agent feeds back;
C) return and terminate.
5. the method that the electrical network geographical information space for setting up tenant's driving according to claim 1 is serviced, it is characterised in that: Monitoring server in the step (3) 1. has following features:
1. monitoring server is individually disposed, and is issued monitoring data collection service and is reported monitoring data by each node operation agency;
2. monitoring server active analysis monitoring data, and generate the form of analysis resource service condition;
3. monitoring server is responsible for maintenance operation example table;
4. monitoring server is responsible for notifying the running example on node operation agent maintenance host, including newly-built, deletion, time-out Running example;
In the step (3), 2. node operation agency has following features:
1. a host disposes a node operation agency, and the monitoring of active reporting collection is acted on behalf of in the node operation on host Data;
2. node runs the existing state of agent monitors place host, and reports the survival of a host at set intervals State;
3. node operation agency is responsible for the existing state of host upper container, and reports the survival shape of container at set intervals State;
4. node runs the resource service condition of agent monitors host, and reports the resource of a host at set intervals Service condition, if reaching early warning value, monitoring server is no longer past to create new running example thereon;
5. the instruction that node operation agency is sent according to monitoring server, creates new running example or deletion on host Running example;
6. node operation agency provides the connection pool of connection background data base, provides the connection forwarding of data base for running example;
Monitoring data in the step (3) 3. specifically includes following content:
1. the CPU usage of host;
2. the memory usage of host;
3. the load mean value of host;
4. network traffics of host;
5. the disk usage amount of host;
6. the heartbeat message of host;
7. the heartbeat message of running example.
6. the method that the electrical network geographical information space for setting up tenant's driving according to claim 1 is serviced, it is characterised in that: The Simulation spatial service pond of the step (4) has following feature:
1. container technique is adopted, the running example of multiple containers on a host, is run;
2. running example can pass through the IP address of host and port accesses, the running example IP address on same host It is identical, but the port for using is different;
3. the computing resource of the host that each running example can be used is specified when the running example is created, and in running example It is controlled in running;
4. the running example independent operating on same host, running environment are mutually isolated, and the extension of some running example falls, no Affect the operation of other running examples on same host;
5. electrical network geographical information space service system provide standards service develop according to the mode of micro services, tenant according to The spatial Information Service of service application regarded as output controlling is also developed according to the mode of micro services, and each running example has and only portion The Simulation spatial service of one standards service of administration or regarded as output controlling;
6. each running example reports the running status of itself by node operation agency;
7. each running example is operated by node operation agency's connection background data base.
7. the method that the electrical network geographical information space for setting up tenant's driving according to claim 1 is serviced, it is characterised in that: Grid graph data in the step (5) refers to the graph data of basic grid equipment, including grid equipment position coordinateses, The determinant attribute and topological connection relation of equipment, basic grid equipment graph data are layered according to power equipment management specialty Storage, basic grid graph data conduct interviews control according to equipment affiliated unit;
Hosted data in the step (5) is the space number that service application is stored in electrical network geographical information space service system According to.The hosted data of different tenants is isolated by logic, and electrical network geographical information space service system provides hosted data Storage, the spatial data of management storage;
Metadata in the step (5), is that all kinds of data storages in electrical network geographical information space service system are carried out Description, including but do not limit to following message:
1. the description of basic electric network data;
2. the description of hosted data;
3. tenant's information;
The data of the various monitoring collections of supervising data storage in the step (5), using time series data library storage, data content Including but not limited to following information:
1. the CPU usage of host;
2. the memory usage of host;
3. the load mean value of host;
4. network traffics of host;
5. the disk usage amount of host;
6. the heartbeat message of host;
7. the heartbeat message of running example.
CN201611049720.2A 2016-11-24 2016-11-24 A method of establishing the power grid geographical information space service of tenant's driving Active CN106559488B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611049720.2A CN106559488B (en) 2016-11-24 2016-11-24 A method of establishing the power grid geographical information space service of tenant's driving

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611049720.2A CN106559488B (en) 2016-11-24 2016-11-24 A method of establishing the power grid geographical information space service of tenant's driving

Publications (2)

Publication Number Publication Date
CN106559488A true CN106559488A (en) 2017-04-05
CN106559488B CN106559488B (en) 2019-09-06

Family

ID=58443788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611049720.2A Active CN106559488B (en) 2016-11-24 2016-11-24 A method of establishing the power grid geographical information space service of tenant's driving

Country Status (1)

Country Link
CN (1) CN106559488B (en)

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231291A (en) * 2017-04-24 2017-10-03 全球能源互联网研究院 A kind of micro services partition method and device suitable for electric network information physical system
CN108009001A (en) * 2017-11-10 2018-05-08 中国电力科学研究院有限公司 A kind of power grid GIS and management method based on Docker containerization management
CN108156225A (en) * 2017-12-15 2018-06-12 南瑞集团有限公司 It is micro- using monitoring system and method based on container cloud platform
CN108282368A (en) * 2018-01-24 2018-07-13 云宏信息科技股份有限公司 A kind of micro services management system, method and computer storage media
CN109165135A (en) * 2018-07-18 2019-01-08 平安科技(深圳)有限公司 A kind of data managing method, computer readable storage medium and terminal device
CN109495559A (en) * 2018-11-06 2019-03-19 用友网络科技股份有限公司 Service registration and call method, the registration and calling system of micro services client
CN109862051A (en) * 2017-11-30 2019-06-07 亿阳信通股份有限公司 The realization method and system of multi-tenant under a kind of micro services framework
CN110134511A (en) * 2019-04-12 2019-08-16 浪潮软件集团有限公司 A kind of shared storage optimization method of OpenTSDB
CN110138862A (en) * 2019-05-16 2019-08-16 北京字节跳动网络技术有限公司 Method for processing business, device, gateway and medium based on application service
CN110603802A (en) * 2018-03-27 2019-12-20 甲骨文国际公司 Cross-regional trust for multi-tenant identity cloud services
CN110799961A (en) * 2017-06-27 2020-02-14 易享信息技术有限公司 System and method for creating and deleting tenants in database
CN110955492A (en) * 2019-11-11 2020-04-03 广州供电局有限公司 Service processing method and device based on container technology and computer equipment
CN112039683A (en) * 2019-06-04 2020-12-04 中移(苏州)软件技术有限公司 Service hosting method, system and storage medium
CN112035213A (en) * 2020-08-28 2020-12-04 北京白龙马云行科技有限公司 Multi-tenant network car booking system and dynamic isolation method
CN112541190A (en) * 2020-12-03 2021-03-23 苏州工业园区测绘地理信息有限公司 Map authority control method and control system based on unified user information
CN113190529A (en) * 2021-04-29 2021-07-30 电子科技大学 Multi-tenant data sharing storage system suitable for MongoDB database
CN113377784A (en) * 2021-08-13 2021-09-10 成都市维思凡科技有限公司 Data processing method, system and storage medium based on middleware
CN113612798A (en) * 2021-08-24 2021-11-05 京东科技控股股份有限公司 Service data processing method, device, equipment and medium
CN114039872A (en) * 2021-10-15 2022-02-11 国网山东省电力公司淄博供电公司 Service access visual monitoring method based on service-oriented architecture
CN115037800A (en) * 2022-08-10 2022-09-09 广州明领基因科技有限公司 Construction system and construction method of bioinformatics container based on micro-isolation
CN116360371A (en) * 2023-04-21 2023-06-30 北京易二零环境股份有限公司 Intelligent management method and system for industrial equipment
CN116743876A (en) * 2023-08-14 2023-09-12 云筑信息科技(成都)有限公司 Method for realizing multi-tenant scheduling based on xxl-job
CN116360371B (en) * 2023-04-21 2024-04-19 北京易二零环境股份有限公司 Intelligent management method and system for industrial equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032397A1 (en) * 2012-07-30 2014-01-30 Hyperion Homes Llc Computer-implemented real-estate lease program
CN104680355A (en) * 2013-11-27 2015-06-03 上海墨芋电子科技有限公司 Novel-technology cloud computing enterprise information movement management system
CN107194583A (en) * 2017-05-22 2017-09-22 国家电网公司 A kind of management system for being used to optimize power scheduling

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032397A1 (en) * 2012-07-30 2014-01-30 Hyperion Homes Llc Computer-implemented real-estate lease program
CN104680355A (en) * 2013-11-27 2015-06-03 上海墨芋电子科技有限公司 Novel-technology cloud computing enterprise information movement management system
CN107194583A (en) * 2017-05-22 2017-09-22 国家电网公司 A kind of management system for being used to optimize power scheduling

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231291A (en) * 2017-04-24 2017-10-03 全球能源互联网研究院 A kind of micro services partition method and device suitable for electric network information physical system
CN107231291B (en) * 2017-04-24 2022-04-05 全球能源互联网研究院 Micro-service isolation method and device suitable for power grid information physical system
CN110799961B (en) * 2017-06-27 2023-12-26 硕动力公司 System and method for creating and deleting tenants in database
CN110799961A (en) * 2017-06-27 2020-02-14 易享信息技术有限公司 System and method for creating and deleting tenants in database
CN108009001A (en) * 2017-11-10 2018-05-08 中国电力科学研究院有限公司 A kind of power grid GIS and management method based on Docker containerization management
CN109862051A (en) * 2017-11-30 2019-06-07 亿阳信通股份有限公司 The realization method and system of multi-tenant under a kind of micro services framework
CN108156225A (en) * 2017-12-15 2018-06-12 南瑞集团有限公司 It is micro- using monitoring system and method based on container cloud platform
CN108282368A (en) * 2018-01-24 2018-07-13 云宏信息科技股份有限公司 A kind of micro services management system, method and computer storage media
CN110603802B (en) * 2018-03-27 2022-05-24 甲骨文国际公司 Cross-region trust of multi-tenant identity cloud service
CN110603802A (en) * 2018-03-27 2019-12-20 甲骨文国际公司 Cross-regional trust for multi-tenant identity cloud services
CN109165135A (en) * 2018-07-18 2019-01-08 平安科技(深圳)有限公司 A kind of data managing method, computer readable storage medium and terminal device
WO2020015098A1 (en) * 2018-07-18 2020-01-23 平安科技(深圳)有限公司 Data management method, terminal device, and medium
CN109495559A (en) * 2018-11-06 2019-03-19 用友网络科技股份有限公司 Service registration and call method, the registration and calling system of micro services client
CN109495559B (en) * 2018-11-06 2022-02-22 用友网络科技股份有限公司 Service registration and calling method and system of micro-service client
CN110134511A (en) * 2019-04-12 2019-08-16 浪潮软件集团有限公司 A kind of shared storage optimization method of OpenTSDB
CN110138862A (en) * 2019-05-16 2019-08-16 北京字节跳动网络技术有限公司 Method for processing business, device, gateway and medium based on application service
CN110138862B (en) * 2019-05-16 2022-03-04 北京字节跳动网络技术有限公司 Service processing method, device, gateway equipment and medium based on application service
CN112039683A (en) * 2019-06-04 2020-12-04 中移(苏州)软件技术有限公司 Service hosting method, system and storage medium
CN110955492A (en) * 2019-11-11 2020-04-03 广州供电局有限公司 Service processing method and device based on container technology and computer equipment
CN112035213A (en) * 2020-08-28 2020-12-04 北京白龙马云行科技有限公司 Multi-tenant network car booking system and dynamic isolation method
CN112035213B (en) * 2020-08-28 2023-02-10 北京白龙马云行科技有限公司 Multi-tenant network car booking system and dynamic isolation method
CN112541190A (en) * 2020-12-03 2021-03-23 苏州工业园区测绘地理信息有限公司 Map authority control method and control system based on unified user information
CN112541190B (en) * 2020-12-03 2024-03-12 园测信息科技股份有限公司 Map authority control method and control system based on unified user information
CN113190529A (en) * 2021-04-29 2021-07-30 电子科技大学 Multi-tenant data sharing storage system suitable for MongoDB database
CN113190529B (en) * 2021-04-29 2023-09-19 电子科技大学 Multi-tenant data sharing and storing system suitable for MongoDB database
CN113377784A (en) * 2021-08-13 2021-09-10 成都市维思凡科技有限公司 Data processing method, system and storage medium based on middleware
CN113612798A (en) * 2021-08-24 2021-11-05 京东科技控股股份有限公司 Service data processing method, device, equipment and medium
CN114039872A (en) * 2021-10-15 2022-02-11 国网山东省电力公司淄博供电公司 Service access visual monitoring method based on service-oriented architecture
CN114039872B (en) * 2021-10-15 2023-11-24 国网山东省电力公司淄博供电公司 Service access visual monitoring method based on service oriented architecture
CN115037800A (en) * 2022-08-10 2022-09-09 广州明领基因科技有限公司 Construction system and construction method of bioinformatics container based on micro-isolation
CN115037800B (en) * 2022-08-10 2022-10-25 广州明领基因科技有限公司 Construction system and construction method of bioinformatics container based on micro-isolation
CN116360371A (en) * 2023-04-21 2023-06-30 北京易二零环境股份有限公司 Intelligent management method and system for industrial equipment
CN116360371B (en) * 2023-04-21 2024-04-19 北京易二零环境股份有限公司 Intelligent management method and system for industrial equipment
CN116743876A (en) * 2023-08-14 2023-09-12 云筑信息科技(成都)有限公司 Method for realizing multi-tenant scheduling based on xxl-job
CN116743876B (en) * 2023-08-14 2023-12-08 云筑信息科技(成都)有限公司 Method for realizing multi-tenant scheduling based on xxl-job

Also Published As

Publication number Publication date
CN106559488B (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN106559488B (en) A method of establishing the power grid geographical information space service of tenant's driving
CN106412113B (en) A kind of energy cloud service system and its communication means
CN104618693B (en) A kind of monitor video based on cloud computing handles task management method and system online
CN103957270B (en) Cloud atomic unit delivery and deployment method and device
CN103329063B (en) System and method for monitoring and managing data center resource in real time
CN103339611B (en) Remote access appliance having mss functionality
CN103891209B (en) Controllers for network control system
CN105934919B (en) Network service capabilities automatic adjusting method and system
CN111124670A (en) Tactical cloud-oriented micro-service platform
CN104937895B (en) The method and apparatus for controlling access in a wireless communication system
CN101217400B (en) An integrated intelligent polling method and system
CN107181808A (en) A kind of privately owned cloud system and operation method
CN103329109B (en) For combining the system and method that manageability subsystem monitors in real time and manages data center resource
CN105897946A (en) Obtaining method and system of access address
CN110457134A (en) The method for establishing the video big data cloud platform based on container cloud and micro services framework
CN104539681B (en) The processing method of distributed GIS acceleration systems and GIS service
CN110134455A (en) A kind of application management system and method
CN106713409A (en) SaaS-based cloud disaster recovery system and method
CN103279892B (en) Simulation run time management server and simulation object thereof find method
CN103477326A (en) Infrastructure control fabric system and method
CN104079436A (en) Cross-device and cross-protocol EPON element management system
CN108121705A (en) Multi-source two, three-dimensional geographic information data aggregate and the delivery system of a kind of opening
CN108491164A (en) A kind of mixed cloud storage architecture system
CN107480251A (en) A kind of system for managing data access
CN107888666A (en) A kind of cross-region data-storage system and method for data synchronization 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
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Li Qiang

Inventor after: Zhu Chuanjing

Inventor after: Liu Wanlong

Inventor after: Xu Jun

Inventor after: Chen Wenkang

Inventor after: Zhao Feng

Inventor after: Li Jiangwei

Inventor after: Zhao Guangjun

Inventor after: Wang Ruying

Inventor after: Li Xinrong

Inventor after: Gao Yong

Inventor after: Zhang Haitao

Inventor before: Chen Wenkang

Inventor before: Xu Jun

Inventor before: Li Jiangwei

Inventor before: Zhao Guangjun

Inventor before: Wang Ruying

Inventor before: Li Xinrong

Inventor before: Gao Yong

Inventor before: Zhang Haitao

Inventor before: Zhu Chuanjing

Inventor before: Liu Wanlong