CN108282527B - Generate the distributed system and method for Service Instance - Google Patents
Generate the distributed system and method for Service Instance Download PDFInfo
- Publication number
- CN108282527B CN108282527B CN201810059381.9A CN201810059381A CN108282527B CN 108282527 B CN108282527 B CN 108282527B CN 201810059381 A CN201810059381 A CN 201810059381A CN 108282527 B CN108282527 B CN 108282527B
- Authority
- CN
- China
- Prior art keywords
- server
- information
- service
- service instance
- target
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/30—Scenes; Scene-specific elements in albums, collections or shared content, e.g. social network photos or video
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application discloses the distributed system and method for generating Service Instance.It includes server cluster that one specific embodiment of the system, which includes: the distributed system, which includes primary server and at least two from server;The primary server, for obtaining the configuration information of Service Instance to be created, obtain title, the version information of the service model of the Service Instance, obtain resource using information, based on the configuration information and resource using information, distribution information is generated, the distribution information, the configuration information and the title, version information are sent;This is at least two from server, for receiving the distribution information, the configuration information and the title, version information, the corresponding service model of the title, version information is obtained from service model database, is based on the distribution information, the configuration information is arranged to acquired service model, generates Service Instance.The embodiment of the present application carries out task processing by least two Service Instances, and treatment effeciency can be improved.
Description
Technical field
The invention relates to field of computer technology, and in particular to Internet technical field, more particularly to generate clothes
The distributed system and method for pragmatic example.
Background technique
The existing service such as recognition of face generallys use the mode of single machine deployment, is only executed and is appointed using a Service Instance
Business, processing capacity are limited.When the magnitude of request reaches certain scale, the return time delay of request is larger.
Summary of the invention
The embodiment of the present application proposes the distributed system and method for generating Service Instance.
In a first aspect, the embodiment of the present application provides a kind of distributed system for generating Service Instance, wherein distribution system
System includes server cluster, and server cluster includes primary server and at least two from server;Primary server is used
In the configuration information for obtaining Service Instance to be created, title, the version information of the service model of Service Instance are obtained, from least
Two obtain resource using information from server, configuration information and resource using information are based on, from least two from server
It determines the slave server for creating each Service Instance, generates the slave server for being used to indicate creation Service Instance and to be created
Service Instance needed for the distribution information of resource that occupies, send distribution information, configuration information and title, version information;At least
Two, from server, for receiving distribution information, configuration information and title, version information, obtain name from service model database
Claim, the corresponding service model of version information, based on distribution information, configuration information is arranged to acquired service model, generates clothes
Pragmatic example, wherein each generate at least one Service Instance from server.
In some embodiments, distributed system further includes gateway server, and gateway server is stored with including each clothes
The forwarding table of the Protocol IP address and port information that are interconnected between the network of pragmatic example;Gateway server, in response to receiving
To recognition of face task, from each Service Instance of generation, the Service Instance for executing face identification mission is determined, based on forwarding
Recognition of face task is sent to the slave server of Service Instance determined by running by table.
In some embodiments, distributed system further includes configuration server;Configuration server, for determining service model
Title, version information, determine the configuration information of Service Instance, wherein configuration information includes the number of Service Instance, server-side
Mouth, physical node mapping.
In some embodiments, gateway server is also used to know in response to the face for receiving the transmission of target terminal equipment
It does not invite and asks, from each Service Instance of generation, determine that the Service Instance for executing face identification mission is that first object service is real
Example, the slave server for determining operation first object Service Instance are first object from server, are sent out to first object from server
Recognition of face is sent to request, recognition of face request includes two target facial images;First object is from server, in response to connecing
Recognition of face request is received, the face characteristic for the face that two target images are presented is extracted by first object Service Instance,
Similarity is sent to gateway server by the similarity that two target images are determined based on extracted face characteristic;Gateway clothes
Business device is also used to send similarity in response to receiving similarity and give target terminal equipment.
In some embodiments, configuration server is also used to the facial feature database sent based on target terminal equipment
Service Instance configuration information, create the Service Instance of facial feature database;Gateway server is also used to receive target end
What end equipment was sent includes the user's registration request of subscriber identity information and facial image, is based on each Service Instance generated
Load information, determine that the Service Instance for executing face feature extraction tasks is that the second destination service is real from each Service Instance
Second target of example, Xiang Yunhang the second destination service example sends user's registration request from server;Second target from server,
For extracting the face characteristic of face that facial image is presented in response to receiving user's registration request, by face characteristic and
Subscriber identity information is sent to the operation electronic equipment of the Service Instance of facial feature database, so as to run electronic equipment for people
Face feature and subscriber identity information are used as with reference to face characteristic and are stored in face characteristic data with reference to subscriber identity information correspondence
Library.
In some embodiments, gateway server is also used to recognize in response to the user for receiving the transmission of target terminal equipment
Card request determines that the Service Instance for executing face identification mission is that third destination service is real from each Service Instance of generation
The third target of example, Xiang Yunhang third destination service example sends user authentication request from server, and user authentication request includes
Designated user's identity information and specified facial image;Third target is from server, in response to receiving user authentication request,
It will be determined as specified face characteristic by the face characteristic of the extracted specified facial image of third destination service example, in face
In property data base, believed by the reference user identity that third destination service case retrieval and designated user's identity information match
Breath, obtains reference face characteristic corresponding to the reference subscriber identity information retrieved, in response to determine specified face characteristic and
Match with reference to face characteristic, sends authentication pass information to gateway server;Gateway server is also used in response to receiving
Authentication pass information sends authentication pass information to target terminal equipment.
In some embodiments, primary server is also used to send in response to the slave server for receiving operation service example
Service Instance exception information, receive the data of Service Instance from the slave server migration of operation service example, obtain at least
Two resource using informations from least one of server from server, based in data configuration information and at least one
From the resource using information of server, the slave server for the data that primary server to be received is sent is determined, by data to be received
It is determined as the 4th target from server from server;Generate the slave server for being used to indicate data to be received and service to be created
The distribution information of the resource occupied needed for example sends distribution information to the 4th target from server, to the 4th target from service
Device migrating data;4th target is obtained for receiving distribution information and data from local or service model database from server
It is named the corresponding service model of title, version information, based on distribution information, to the configuration in acquired service model setting data
Information generates Service Instance.
In some embodiments, primary server is also used to increase information in response to the number for receiving Service Instance, receive
It is real to receive the destination service that configuration server is sent for the configuration information for the destination service example to be increased that configuration server is sent
The title of the service model of example, version information obtain resource using information from least two from server;Based on configuration information and
Resource using information determines that the 5th target for increasing destination service example from server, is generated from least two from server
To indicate to increase the 5th target of destination service example from the distribution of the resource of occupancy needed for server and destination service example
Information sends distribution information, configuration information and title, version information;5th target from server, for receive distribution information,
Configuration information and title, version information obtain title, the corresponding service model of version information from service model database, are based on
Information is distributed, configuration information is arranged to acquired service model, generates Service Instance.
Second aspect, the embodiment of the present application provide a kind of method of generation Service Instance for distributed system,
In, distributed system includes server cluster, and server cluster includes primary server and at least two from server;
Method includes: the configuration information that primary server obtains Service Instance to be created, obtain the service model of Service Instance title,
Version information obtains resource using information from least two from server, configuration information and resource using information is based on, from least
Two slave servers determined from server for creating each Service Instance, generate be used to indicate creation Service Instance from
The distribution information of the resource occupied needed for server and Service Instance to be created, transmission distribution information, configuration information and title,
Version information;At least two receive distribution information, configuration information and title, version information from server, from service model data
Library obtains title, the corresponding service model of version information, based on distribution information, matches confidence to acquired service model setting
Breath generates Service Instance, wherein each generate at least one Service Instance from server.
In some embodiments, distributed system further includes gateway server, and gateway server is stored with including each clothes
The forwarding table of the Protocol IP address and port information that are interconnected between the network of pragmatic example;Method further include: gateway server response
In receiving recognition of face task, from each Service Instance of generation, the Service Instance for executing face identification mission, base are determined
In forwarding table, recognition of face task is sent to the slave server of Service Instance determined by running.
In some embodiments, distributed system further includes configuration server;Method further include: configuration server determines clothes
Be engaged in the title of model, version information, determine the configuration information of Service Instance, wherein configuration information include Service Instance number,
Serve port, physical node mapping.
In some embodiments, method further include: the people that gateway server is sent in response to receiving target terminal equipment
Face identification request determines that the Service Instance for executing face identification mission is first object clothes from each Service Instance of generation
Pragmatic example, the slave server for determining operation first object Service Instance are first object from server, to first object from service
Device sends recognition of face request, and recognition of face request includes two target facial images;First object is from server in response to connecing
Recognition of face request is received, the face characteristic for the face that two target images are presented is extracted by first object Service Instance,
Similarity is sent to gateway server by the similarity that two target images are determined based on extracted face characteristic;Gateway clothes
Business device sends similarity and gives target terminal equipment in response to receiving similarity.
In some embodiments, method further include: the face characteristic number that configuration server is sent based on target terminal equipment
According to the configuration information of the Service Instance in library, the Service Instance of facial feature database is created;Gateway server receives target terminal
What equipment was sent includes the user's registration request of subscriber identity information and facial image, based on each Service Instance generated
Load information determines that the Service Instance for executing face feature extraction tasks is that the second destination service is real from each Service Instance
Second target of example, Xiang Yunhang the second destination service example sends user's registration request from server;Second target is from server
In response to receiving user's registration request, the face characteristic for the face that facial image is presented is extracted, by face characteristic and user
Identity information is sent to the operation electronic equipment of the Service Instance of facial feature database, so that operation electronic equipment is special by face
Subscriber identity information of seeking peace is used as with reference to face characteristic and is stored in facial feature database with reference to subscriber identity information correspondence.
In some embodiments, method further include: the use that gateway server is sent in response to receiving target terminal equipment
Family certification request determines that the Service Instance for executing face identification mission is third target clothes from each Service Instance of generation
The third target of pragmatic example, Xiang Yunhang third destination service example sends user authentication request, user authentication request from server
Including designated user's identity information and specified facial image;Third target from server in response to receiving user authentication request,
It will be determined as specified face characteristic by the face characteristic of the extracted specified facial image of third destination service example, in face
In property data base, believed by the reference user identity that third destination service case retrieval and designated user's identity information match
Breath, obtains reference face characteristic corresponding to the reference subscriber identity information retrieved, in response to determine specified face characteristic and
Match with reference to face characteristic, sends authentication pass information to gateway server;Gateway server is logical in response to receiving certification
Information is crossed, sends authentication pass information to target terminal equipment.
In some embodiments, method further include: primary server is in response to receiving the slave server of operation service example
The Service Instance exception information of transmission receives the data of Service Instance from the slave server migration of operation service example, obtains
At least two resource using information from least one of server from server, based on the configuration information in data and at least
One resource using information from server determines the slave server for the data that primary server to be received is sent, by number to be received
According to slave server be determined as the 4th target from server;It generates and is used to indicate the slave server of data to be received and to be created
The distribution information of the resource occupied needed for Service Instance sends distribution information to the 4th target from server, to the 4th target from
Server migration data;4th target receives distribution information and data from server, obtains from local or service model database
It is named the corresponding service model of title, version information, based on distribution information, to the configuration in acquired service model setting data
Information generates Service Instance.
In some embodiments, method further include: primary server increases information in response to receiving the number of Service Instance,
The configuration information for the destination service example to be increased that configuration server is sent is received, the target clothes that configuration server is sent are received
The title of the service model of pragmatic example, version information obtain resource using information from least two from server;Based on confidence
Breath and resource using information, from least two determined from server the 5th target for increasing destination service example from server,
The 5th target to indicate to increase destination service example is generated from the resource of occupancy needed for server and destination service example
Information is distributed, distribution information, configuration information and title, version information are sent;5th target receives distribution information from server, matches
Confidence breath and title, version information obtain title, the corresponding service model of version information from service model database, are based on dividing
With information, configuration information is arranged to acquired service model, generates Service Instance.
The distributed system and method provided by the embodiments of the present application for generating Service Instance, distributed system include scheduling clothes
It is engaged in device cluster, server cluster includes primary server and at least two from server;Primary server, it is to be created for obtaining
Service Instance configuration information, title, the version information of the service model of Service Instance are obtained, from least two from server
Resource using information is obtained, configuration information and resource using information are based on, is determined from server for creating from least two
The slave server of each Service Instance generates the slave server for being used to indicate creation Service Instance and Service Instance institute to be created
The distribution information for the resource that need to be occupied sends distribution information, configuration information and title, version information;At least two from server,
For receiving distribution information, configuration information and title, version information, title, version information pair are obtained from service model database
The service model answered is arranged configuration information to acquired service model, generates Service Instance, wherein is every based on distribution information
It is a to generate at least one Service Instance from server.The embodiment of the present application carries out task processing by least two Service Instances,
Treatment effeciency can be improved.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is in the distributed system according to the generation Service Instance of the application, primary server and one of them from service
The data interaction schematic diagram of device;
Fig. 3 is the structural schematic diagram according to one embodiment of the distributed system of the generation Service Instance of the application;
Fig. 4 is one embodiment according to a kind of method of generation Service Instance for distributed system of the application
Flow chart.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method for the distributed system or generation Service Instance of the generation Service Instance of the application
Embodiment exemplary system architecture 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server cluster,
Wherein server cluster includes server 105,106,107.Network 104 is in terminal device 101,102,103 and server
105, the medium of communication link is provided between 106,107.Network 104 may include various connection types, such as wired, channel radio
Believe link or fiber optic cables etc..
User can be used terminal device 101,102,103 by server 105 in network 104 and server cluster,
106,107 interaction, to receive or send message etc..Various telecommunication customer ends can be installed on terminal device 101,102,103
Using, such as face recognition application, shopping class application, searching class application, instant messaging tools, mailbox client, social platform
Software etc..
Terminal device 101,102,103 can be various electronic equipments that are with display screen and supporting data transmit-receive, packet
Include but be not limited to smart phone, tablet computer, E-book reader, pocket computer on knee and desktop computer etc..Eventually
End equipment 101,102,103 can send to server 105,106,107 and present the image of face, for server 105,
106,107 recognition of face is carried out.
Server 105,106,107 in server cluster can be to provide the server of various services, such as to terminal
The face recognition result shown in equipment 101,102,103 provides the background server supported.Background server can be to reception
To the data such as the image for presenting face carry out the processing such as analyzing, and processing result (such as face recognition result) is fed back to
Terminal device.
It should be noted that the distributed system for generating Service Instance provided by the embodiment of the present application is generally positioned at clothes
It is engaged in device cluster, correspondingly, the method for generating Service Instance is normally at server cluster execution.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, show in the distributed system according to the generation Service Instance of the application, primary server 3011
With one of them from the data interaction schematic diagram of server.
The distributed system of the generation Service Instance of the present embodiment includes server cluster 301, dispatch server collection
Group 301 includes primary server 3011 and at least two from server 3012;Wherein, primary server 3011, it is to be created for obtaining
Service Instance configuration information, title, the version information of the service model of Service Instance are obtained, from least two from server
3012 obtain resource using information, are based on configuration information and resource using information, determine from server 3012 from least two
For creating the slave server of each Service Instance, the slave server and clothes to be created for being used to indicate creation Service Instance are generated
The distribution information of the resource occupied needed for pragmatic example sends distribution information, configuration information and title, version information;At least two
From server 3012, for receiving distribution information, configuration information and title, version information, name is obtained from service model database
Claim, the corresponding service model of version information, based on distribution information, configuration information is arranged to acquired service model, generates clothes
Pragmatic example, wherein each generate at least one Service Instance from server.
As shown in Fig. 2, in step 201, primary server 3011 obtains the configuration information of Service Instance to be created, obtain
The title of the service model of Service Instance, version information obtain resource using information from least two from server 3012.
In the present embodiment, primary server 3011 (master) can obtain to be created from local or other electronic equipments
The configuration information of Service Instance, the also title and version information of the service model of available Service Instance to be created.In addition,
Resource using information can also be obtained from least two from server 3012.Service Instance is provided by cloud infrastructure system
The specific example of service.Service model is the model to generate Service Instance.Usually, service model includes that service is complete
Functional information.After to model, configuration information is set, available Service Instance.The title of different service models and/
Or version information is different.Resource using information is each in above-mentioned at least two server of instruction to make from the resource of server
With the information of situation, resource may include the memory of disk space, IP (Internet Protocol), the memory of CPU, GPU
Deng.
Herein, primary server 3011 obtains the name of configuration information and service model up for the Service Instance of creation
Claim, version information, in order to subsequent creation Service Instance.Three above-mentioned acquisition process can be held using arbitrary sequencing
Row, also may be performed simultaneously.
In step 202, primary server 3011 is based on configuration information and resource using information, from least two from server
The slave server for creating each Service Instance is determined in 3012.
In the present embodiment, above-mentioned primary server 3011 be based on above-mentioned configuration information and resource using information, from it is above-mentioned to
Few two slave servers determined from server 3012 for creating each Service Instance.Each from server for creating one
A or more than two Service Instances.According to the available available resources from server of resource using information.Thus, it is main
Server 3011 distributes the slave server of creation Service Instance based on resource using information, it is ensured that has from server enough
Resource can create Service Instance.Also, other than the resource situation from server, it is also necessary to based on Service Instance to be created
Configuration information, determine the resource occupied needed for creation Service Instance, and then be determined to provide the slave server of these resources.
In step 203, primary server 3011, which generates, is used to indicate the creation slave server of Service Instance and to be created
The distribution information of the resource occupied needed for Service Instance.
In the present embodiment, the slave server for creating each Service Instance is being determined, is also determining each service
After the resource occupied needed for example, above-mentioned primary server 3011 generates distribution information.Distribution information is used to indicate creation service
The resource of occupancy needed for the slave server and Service Instance to be created of example.Here distribution information can be for each from
Multiple and different information of server are also possible to for all information from server.
In step 204, primary server 3011 sends distribution information, configuration information and title, version information.
In the present embodiment, above-mentioned primary server 3011 sends above-mentioned distribution information, above-mentioned configuration information and service model
Title, version information.
In step 205, at least two distribution information, configuration information and title, version information are received from server 3012,
Title, the corresponding service model of version information are obtained from service model database.
In the present embodiment, above-mentioned at least two from each from server in server 3012, receives above-mentioned main service
Distribution information, the title of configuration information and service model, version information of the transmission of device 3011.It is each from server from service model
Database obtains above-mentioned title, the corresponding service model of version information.The different services stored in service model database
Model can be used to generate different Service Instances.
In step 206, at least two it is based on distribution information from server 3012, acquired service model setting is matched
Confidence breath, generates Service Instance.
In the present embodiment, above-mentioned at least two from server 3012 based on the distribution information received, to acquired
Configuration information is arranged in service model, generates Service Instance, generates Service Instance.It is determined from server based on primary server 3011
Should the Service Instance that created from server, above-mentioned configuration information is arranged to acquired service model, obtains Service Instance.
In practice, at least one Service Instance each is generated from server.Service Instance generated can be used for holding
Pedestrian's face identification mission.
The present embodiment carries out task processing by least two Service Instances, processing capacity can be improved, and then improve
To the treatment effeciency of task, concurrency performance is enhanced.Especially when request amount is larger, the processing speed of system is fast, return time delay
It is short.In addition, distributed task processing mode also improves the stability of system, avoids to handle caused by Single Point of Faliure and stagnate
The problem of.
In some optional implementations of the present embodiment, the distributed system for generating Service Instance further includes gateway clothes
It is engaged in device 302, gateway server 302, in response to receiving recognition of face task, from each Service Instance of generation, really
Surely the Service Instance of face identification mission is executed.
In the present embodiment, gateway server 302 is stored with the agreement interconnected between the network including each Service Instance
The forwarding table of IP address and port information.Gateway server 302 responds after receiving recognition of face task: from institute
In each Service Instance generated, the Service Instance for executing face identification mission is determined.Gateway server 302 is according to each service
The task processing capacity of example determines that can each Service Instance handle recognition of face task.Here operation service example
Refer to Service Instance from server or will run electronic equipment thereon.Meanwhile gateway server 302 passes through task
Distribution, realize each Service Instance load balancing among the nodes.Herein, node includes generating Service Instance and fortune
The slave server of row Service Instance, the slave server of the slave server and operation service example that generate Service Instance can be same
It is a.
In practice, gateway server 302 may include one or more server.
In some optional implementations of the present embodiment, gateway server 302 is also provided for distributed system
The access interface to access.
In the present embodiment, in the case where gateway server 302 provides access interface, the equipment other than system can lead to
Gateway server 302 is crossed to access to system.
Recognition of face task is sent to Service Instance determined by operation for being based on forwarding table by gateway server 302
Slave server.
In the present embodiment, gateway server 302 is run based on the IP address and port information that record in forwarding table
The IP address and port information of the slave server of identified Service Instance, are then sent to this from service for recognition of face task
Device.
The present embodiment carries out planning as a whole between each Service Instance by gateway server 302 and information forwards, and reaches each
A Service Instance load balancing among the nodes.It, can be to avoid in new and old service in the case where service changes
Between carry out prolonged load balancing.Meanwhile distributed treatment is carried out to recognition of face task using at least two Service Instances,
The efficiency of recognition of face can be significantly increased.When service is broken down, quick sensing and troubleshooting can be carried out, avoided
The problem of recognition of face task because that cannot handle for a long time caused by failure.
In some optional implementations of the present embodiment, the distributed system for generating Service Instance further includes configuration clothes
Business device 303, configuration server 303 determine the configuration information of Service Instance for determining title, the version information of service model.
In the present embodiment, configuration server 303 can determine the title of service model, version information, can also determine
The configuration information of Service Instance.Specifically, configuration server 303 can receive or from other electronic equipments obtain title,
Version information and configuration information.It can also be according to the function of different service models, to determine the service mould of each Service Instance
Type, and then determine the title of service model, version information.In practice, configuration information may include the number of Service Instance, clothes
Business port, physical node mapping.Above- mentioned information can be sent to tune after above- mentioned information have been determined by configuration server 303
Server cluster 301 is spent, in order to which server cluster 301 carries out the acquisition of information.
In practice, configuration server 303 may include one or more server.
Various information needed for the configuration server 303 of the present embodiment can determine generation Service Instance, in order to accurate
Ground generates each Service Instance.
In some optional implementations of the present embodiment, gateway server 302 is also used in response to receiving target
The recognition of face request that terminal device is sent determines the service for executing face identification mission from each Service Instance of generation
Example is first object Service Instance.
In the present embodiment, gateway server 302 receive target terminal equipment transmission recognition of face request after,
It responds: from each Service Instance generated, determining the Service Instance for executing face identification mission, and the service is real
Example is used as first object Service Instance.Wherein, recognition of face request includes two target facial images.Specifically, it can be based on
Preset Service Instance selection sequence, can also choose a Service Instance based on the load of each Service Instance.
Gateway server 302, the slave server for being also used to determine operation first object Service Instance are first object from clothes
Business device sends recognition of face request to first object from server.
In the present embodiment, gateway server 302 can determine that the slave server of operation first object Service Instance is the
One target from server, rear send recognition of face request to first object from server.First object can from server
Image procossing is carried out as processor so that GPU is arranged, to accelerate the processing speed of task.
First object is from server, for being mentioned by first object Service Instance in response to receiving recognition of face request
The face characteristic for the face for taking two target images to be presented.
In the present embodiment, first object can make following sound after receiving recognition of face request from server
Answer: the face that the face that each image in above-mentioned two target image is presented is extracted by first object Service Instance is special
Sign.Face characteristic is the data that can embody the facial characteristics of face.Face characteristic may include shape of face, the relevant feature of face
The ratio etc. of distance between the relevant characteristic point of dimension ratio and face between point, face.
First object is from server, will for determining the similarity of two target images based on extracted face characteristic
Similarity is sent to gateway server 302.
In the present embodiment, first object can be based on the face characteristic of two target images, to determine two from server
The similarity of a target image.Later, which is sent to gateway server 302.
Gateway server 302 is also used to send similarity in response to receiving similarity and give target terminal equipment.
In the present embodiment, gateway server 302 can receive similarity that first object is sent from server it
Afterwards, it makes following response: sending similarity to above-mentioned target terminal equipment, so that the user of target terminal equipment can receive
Above-mentioned similarity.
The present embodiment carries out recognition of face by Service Instance determined by gateway server 302, to realize each service
Load balancing between example, and accelerate the treatment effeciency of recognition of face task.
In some optional implementations of the present embodiment, configuration server 303 is also used to based on target terminal equipment
The configuration information of the Service Instance of the facial feature database of transmission creates the Service Instance of facial feature database.
In the present embodiment, what configuration server 303 can be sent based on received target terminal equipment matches confidence
Breath, creates the Service Instance of facial feature database.Configuration information refers to the configuration information of the Service Instance of facial feature database,
For creating the Service Instance of facial feature database.Facial feature database refers to the data for storing face characteristic data
Library.The Service Instance of facial feature database is the Service Instance for realizing facial feature database service.Create face characteristic
According to the Service Instance in library other than based on configuration information, it is also based on the electricity of the Service Instance of creation facial feature database
The resource using information of sub- equipment.
Gateway server 302, be also used to receive the transmission of target terminal equipment includes subscriber identity information and facial image
User's registration request.
In the present embodiment, gateway server 302 can receive the user's registration request of target terminal equipment transmission, the use
Family registration request includes subscriber identity information and facial image.The information that user's registration request registers user for request.
Subscriber identity information may include up for the name of the user of registration and/or ID of user etc..Facial image is to present
The image of face.
Gateway server 302 is also used to the load information based on each Service Instance generated, from each Service Instance
The middle determining Service Instance for executing face feature extraction tasks is the second destination service example.
In the present embodiment, gateway server 302 can be real from each service based on the load information of each Service Instance
The Service Instance for executing face feature extraction tasks is determined in example, and using the Service Instance as the second destination service example.Root
Determine that each executes the Service Instance of face feature extraction tasks according to the load information of each Service Instance, it is each to realize
The load balancing of Service Instance.
Gateway server 302 is also used to send user from server to the second target of the second destination service example of operation
Registration request.
In the present embodiment, gateway server 302 can determine that the slave server of the second destination service example of operation is the
Two targets from server, rear send user's registration request to the second target from server.The second target can from server
Image procossing is carried out as processor so that GPU is arranged, to accelerate the processing speed of task.
Second target is from server, for extracting the people that facial image is presented in response to receiving user's registration request
The face characteristic of face.
In the present embodiment, the second target can make following sound after receiving user's registration request from server
It answers: extracting the face characteristic for the face that above-mentioned facial image is presented.
Second target is from server, for face characteristic and subscriber identity information to be sent to the clothes of facial feature database
The operation electronic equipment of pragmatic example, so that operation electronic equipment is using face characteristic and subscriber identity information as with reference to face characteristic
It is corresponding with reference subscriber identity information to be stored in facial feature database.
In the present embodiment, the second target from server after extracting face characteristic, can be by above-mentioned user identity
Information and its face characteristic extracted are sent to the operation electronic equipment of the Service Instance of facial feature database.In this way, fortune
Row electronic equipment can be using face characteristic and subscriber identity information as with reference to face characteristic and referring to subscriber identity information, and will
Facial feature database is stored in reference to face characteristic and with reference to subscriber identity information correspondence.In the present embodiment, it completes
Facial feature database stores the process of face characteristic and subscriber identity information, namely completes the registration process of user.At this
In, operation electronic equipment not only can receive face characteristic and subscriber identity information, can also receive face characteristic and use
The corresponding relationship of family identity information.
The present embodiment configuration server 303 can create the Service Instance of facial feature database, in order to other services
Device extracts face characteristic from facial feature database to execute face identification mission.
In some optional implementations of the present embodiment, gateway server 302 is also used in response to receiving target
The user authentication request that terminal device is sent determines the service for executing face identification mission from each Service Instance of generation
Example is third destination service example.
In the present embodiment, gateway server 302 can be in the user authentication request for receiving the transmission of target terminal equipment
Later, from each Service Instance of generation, determine execute face identification mission Service Instance, and using the Service Instance as
Third destination service example.Herein, user authentication request includes designated user's identity information and specified facial image.User recognizes
Card request makes requests the information of certification for instruction user.Designated user's identity information is the finger that received terminal device is sent
Show the information of user identity, and the subscriber identity information of the user up for certification.Specified facial image is received end
The image of the face of the user up for certification is generally presented in the image for presenting face that end equipment is sent.
Gateway server 302, the third target of Xiang Yunhang third destination service example, which sends user authentication from server, asks
It asks.
In the present embodiment, gateway server 302 can make the slave server for running above-mentioned third destination service example
It is third target from server, sends user authentication request to third target from server.
Third target is from server, for that will pass through third destination service example in response to receiving user authentication request
The face characteristic for the face that extracted specified facial image is presented is determined as specified face characteristic.
In the present embodiment, third target can make following sound after receiving user authentication request from server
It answers: the face characteristic of the face presented by the extracted specified facial image of third destination service example is determined as specifying
Face characteristic.Specifically, third target can be in by the specified facial image of third destination service Cass collection from server
The face characteristic of existing face, later using extracted face characteristic as specified face characteristic.
Third target is from server, for by third destination service case retrieval and referring in facial feature database
Determine the reference subscriber identity information that subscriber identity information matches, obtains ginseng corresponding to the reference subscriber identity information retrieved
Examine face characteristic.
In the present embodiment, third target can pass through third destination service in facial feature database from server
Example, the reference subscriber identity information that retrieval matches with designated user's identity information.Later, the reference user retrieved is obtained
Identity information reference face characteristic corresponding in facial feature database.Because of the ginseng stored in facial feature database
It is corresponding with being characterized in reference to face to examine subscriber identity information, it, can be with so retrieving with reference to after subscriber identity information
Reference face characteristic corresponding to the reference subscriber identity information retrieved is obtained directly from facial feature database.At this
In, designated user's identity information with match that can be two subscriber identity informations identical with reference to subscriber identity information,
It can be designated user's identity information to be contained in reference to subscriber identity information, can also be specified subscriber identity information and with reference to use
The similarity of family identity information is higher than default similarity threshold.
It is that processor carries out image procossing that GPU can be set from server in third target, to accelerate the processing of task
Speed.
Third target is from server, for specifying face characteristic to match with reference to face characteristic in response to determining, to net
It closes server 302 and sends authentication pass information.
In the present embodiment, third target matches in determining specified face characteristic with reference to face characteristic from server,
It then makes following response: sending authentication pass information to gateway server 302.It specifies face characteristic and refers to face characteristic phase
It is identical with two face characteristics that can be above-mentioned, it is also possible to specified face characteristic and is contained in reference to face characteristic, also
It can be specified face characteristic and be higher than default characteristic threshold value with reference to the similarity of face characteristic.Authentication pass information is for referring to
Show that the information of user passes through the information of certification.Indicate that the user is certain specified user by certification.For example, user passes through end
End equipment uploads the name and photo of Zhang San, to determine being Zhang San indicated by name and photo, and by authenticating then table
Show it is Zhang San.
Gateway server 302 is also used to send authentication pass information to target end in response to receiving authentication pass information
End equipment.
In the present embodiment, gateway server 302 can make following response after receiving authentication pass information:
It sends authentication pass information and gives target terminal equipment.
The present embodiment completes the verification process of user by Service Instance, strong to the processing capacity of authentication tasks, and improves
Treatment effeciency.
In some optional implementations of the present embodiment, primary server 3011 is also used in response to receiving operation
The Service Instance exception information that the slave server of Service Instance is sent, receive it is from the slave server migration of operation service example,
The data of Service Instance obtain at least two resource using informations from least one of server 3012 from server.
In the present embodiment, the service that above-mentioned primary server 3011 is sent in the slave server for receiving operation service example
It after example exception information, then responds: receiving the data of the Service Instance from the slave server migration of operation service example.
In addition, above-mentioned primary server 3011 can also obtain at least two resources from least one of server 3012 from server
Use information.Service Instance exception information is to indicate Service Instance exception.Service Instance exception information shows Service Instance
Operation electronic equipment is unable to operate normally, and needing will be on the Data Migration of Service Instance to other electronic equipments.
Primary server 3011 is also used to make at least one from the resource of server based on the configuration information in above-mentioned data
With information, the slave server for the data that primary server 3011 to be received is sent is determined, the slave server of data to be received is determined
It is the 4th target from server.
In the present embodiment, primary server 3011 based in the data of Service Instance configuration information and at least one from clothes
The resource using information of business device, determines the slave server for the data that primary server 3011 to be received is sent, and should be from service
Device is determined as the 4th target from server.It specifically, include configuration information in the data of Service Instance.Based on configuration information with
And resource using information, it can determine the slave server for receiving data to be migrated.
Primary server 3011 is also used to generate the slave server and Service Instance to be created for being used to indicate data to be received
The distribution information of the resource of required occupancy.
In the present embodiment, primary server 3011 can be generated distribution information, distribution information generated be used to indicate to
The slave server of above-mentioned data is received, and also indicates that the resource occupied needed for Service Instance to be created.Herein, it needs to create
A Service Instance is built to replace abnormal Service Instance to realize function.
Primary server 3011 is also used to send distribution information to the 4th target from server, to the 4th target from server
Migrating data.
In the present embodiment, the 4th target is being determined after server, primary server 3011 is to the 4th target from clothes
Device of being engaged in sends distribution information, it is also desirable to the 4th target from the above-mentioned data of server migration.
4th target is from server, for receiving distribution information and data, obtains from local or service model database
The corresponding service model of title, version information.
In the present embodiment, above-mentioned 4th target receives above-mentioned distribution information and above-mentioned data from server.It can also be from
Local or service model database obtain title, the corresponding service model of version information.
4th target is from server, for the configuration in data to be arranged to acquired service model based on distribution information
Information generates Service Instance.
In the present embodiment, above-mentioned 4th target is based on above-mentioned distribution information from server, to acquired service model
Configuration information in migrated data is set, Service Instance is generated.
It executes task in this way, the Service Instance generated can replace abnormal Service Instance and realizes function.Later, abnormal
Service Instance can then delete.
The present embodiment realizes the slave server where the Data Migration of Service Instance to newly created Service Instance new
Service Instance replace abnormal Service Instance to execute task and realize function, avoid the not available problem of service.
In some optional implementations of the present embodiment, primary server 3011 is also used in response to receiving service
The number of example increases information, receives the configuration information for the destination service example to be increased that configuration server 303 is sent, and receives
The title of service model for the destination service example that configuration server 303 is sent, version information, from least two from server
3012 obtain resource using information.
In the present embodiment, primary server 3011 can be made after the number for receiving Service Instance increases information
Response: receiving the configuration information for the destination service example to be increased that configuration server 303 is sent, and receives configuration server 303
The title of the service model of the destination service example of transmission, version information are obtained from above-mentioned at least two from server 3012 and are provided
Source use information.The personal of Service Instance increases the information that information is the number that instruction needs increased Service Instance.This implementation
Example can be by increasing Service Instance come the function of expansion service.Herein, Service Instance to be increased is known as destination service
Example.
Primary server 3011, is also used to based on configuration information and resource using information, from least two from server 3012
Middle determining the 5th target for increasing destination service example is from server.
In the present embodiment, above-mentioned primary server 3011 can be based on configuration information and resource using information, from it is above-mentioned to
Few two determine from server 3012 and increase the 5th target of destination service example from server.Specifically, increasing can be determined
Add the slave server of object instance, and should from server as the 5th target from server.
Primary server 3011 is generated to indicate the 5th target for increasing destination service example from server and destination service
The distribution information of the resource occupied needed for example sends distribution information, configuration information and title, version information.
In the present embodiment, distribution information can be generated in above-mentioned primary server 3011, which increases to indicate
Resource of 5th target of destination service example from occupancy needed for server and destination service example.Generate distribution information it
Afterwards, above-mentioned primary server 3011 sends distribution information.In addition, above-mentioned primary server 3011 also need to send above-mentioned configuration information with
And title, the version information of service model.
5th target is from server, for receiving distribution information, configuration information and title, version information, from service model
Database obtains title, the corresponding service model of version information.
In the present embodiment, the 5th target can receive distribution information, configuration information and title, version letter from server
Breath can also obtain above-mentioned title, the corresponding service model of version information from service model database.
5th target is from server, for configuration information being arranged to acquired service model, generates based on distribution information
Service Instance.
In the present embodiment, the 5th target can be based on the distribution information received, to acquired service from server
Above-mentioned configuration information is arranged in model, generates Service Instance.
The present embodiment realizes the extension of system, enhances the processing capacity of system by increasing Service Instance.
With further reference to Fig. 3 as the realization to method shown in above-mentioned each figure, this application provides a kind of generation service is real
One embodiment of the distributed system of example, the system specifically can be applied in various electronic equipments.
As shown in figure 3, the distributed system 300 of the generation Service Instance of the present embodiment includes: server cluster
301, gateway server 302 and configuration server 303, wherein server cluster 301 is including primary server 3011 and at least
Two from server 3012.
With continued reference to Fig. 4, a kind of method of generation Service Instance for distributed system according to the application is shown,
Wherein, distributed system includes server cluster, and server cluster includes primary server and at least two from service
Device.
This method comprises:
Step 401, primary server obtains the configuration information of Service Instance to be created, obtains the service model of Service Instance
Title, version information, from least two from server obtain resource using information.
Step 402, configuration information and resource using information are based on.It is determined from server for creating respectively from least two
The slave server of a Service Instance.
Step 403, occupancy needed for generating the slave server and Service Instance to be created that are used to indicate creation Service Instance
Resource distribution information.
Step 404, distribution information, configuration information and title, version information are sent.
Step 405, at least two distribution information, configuration information and title, version information are received from server, from service mould
Type database obtains title, the corresponding service model of version information.
Step 406, based on distribution information, configuration information is arranged to acquired service model, generates Service Instance,
In, each at least one Service Instance is generated from server.
In some optional implementations of the present embodiment, distributed system further includes gateway server, gateway service
Device can store the forwarding table of the Protocol IP address and port information that interconnect between the network including each Service Instance;Method
Further include: gateway server is in response to receiving recognition of face task, from each Service Instance of generation, determines and executes face
The Service Instance of identification mission is based on forwarding table, and recognition of face task is sent to the slave clothes of Service Instance determined by running
Business device.
In some optional implementations of the present embodiment, distributed system further includes configuration server;Method is also wrapped
Include: configuration server can determine the title of service model, version information, determine the configuration information of Service Instance, wherein configuration
Information includes the number of Service Instance, serve port, physical node mapping.
In some optional implementations of the present embodiment, this method further include: gateway server can be in response to connecing
The recognition of face request for receiving the transmission of target terminal equipment determines that executing recognition of face appoints from each Service Instance of generation
The Service Instance of business be first object Service Instance, determine operation first object Service Instance slave server be first object from
Server sends recognition of face request to first object from server, and recognition of face request includes two target facial images;The
One target, in response to receiving recognition of face request, extracts two target image institutes by first object Service Instance from server
The face characteristic of the face of presentation is determined the similarity of two target images based on extracted face characteristic, similarity is sent out
Give gateway server;Gateway server sends similarity and gives target terminal equipment in response to receiving similarity.
In some optional implementations of the present embodiment, this method further include: configuration server can be based on target
The configuration information of the Service Instance for the facial feature database that terminal device is sent, the service for creating facial feature database are real
Example;Gateway server receives the user's registration request including subscriber identity information and facial image that target terminal equipment is sent,
Based on the load information of each Service Instance generated, is determined from each Service Instance and execute face feature extraction tasks
Service Instance is the second destination service example, and the second target of Xiang Yunhang the second destination service example sends user's note from server
Volume request;Second target, in response to receiving user's registration request, extracts the people for the face that facial image is presented from server
Face characteristic and subscriber identity information are sent to the operation electronic equipment of the Service Instance of facial feature database by face feature,
So that operation electronic equipment is using face characteristic and subscriber identity information as with reference to face characteristic and with reference to subscriber identity information pair
Facial feature database should be stored in.
In some optional implementations of the present embodiment, this method further include: gateway server can be in response to connecing
The user authentication request for receiving the transmission of target terminal equipment determines that executing recognition of face appoints from each Service Instance of generation
The Service Instance of business is third destination service example, and the third target of Xiang Yunhang third destination service example is sent from server to be used
Family certification request, user authentication request include designated user's identity information and specified facial image;Third target is rung from server
Ying Yu receives user authentication request, will be true by the face characteristic of the extracted specified facial image of third destination service example
It is set to specified face characteristic, in facial feature database, is believed by third destination service case retrieval and designated user's identity
Manner of breathing is matched to refer to subscriber identity information, obtains reference face characteristic corresponding to the reference subscriber identity information retrieved,
In response to determining that specified face characteristic matches with reference to face characteristic, authentication pass information is sent to gateway server;Gateway
Server sends authentication pass information in response to receiving authentication pass information, to target terminal equipment.
In some optional implementations of the present embodiment, this method further include: primary server can be in response to receiving
The Service Instance exception information sent to the slave server of operation service example, reception are moved from the slave server of operation service example
Data move, Service Instance obtain at least two resource using informations from least one of server from server, base
Configuration information in data, from the resource using information of server, determines the number that primary server to be received is sent at least one
According to slave server, the slave server of data to be received is determined as the 4th target from server;Generation is used to indicate to be received
The distribution information of the resource of occupancy needed for the slave server and Service Instance to be created of data is sent out to the 4th target from server
Distribution information is sent, to the 4th target from server migration data;4th target receives distribution information and data from server, from this
Ground or service model database obtain title, the corresponding service model of version information, based on distribution information, to acquired clothes
The configuration information being engaged in model setting data, generates Service Instance.
In some optional implementations of the present embodiment, this method further include: primary server can be in response to receiving
Number to Service Instance increases information, receives the configuration information for the destination service example to be increased that configuration server is sent,
The title of service model, the version information for receiving the destination service example that configuration server is sent, from least two from server
Obtain resource using information;Based on configuration information and resource using information, is determined from server from least two and increase target
5th target of Service Instance generates the 5th target to indicate to increase destination service example from server and mesh from server
The distribution information of the resource occupied needed for Service Instance is marked, distribution information, configuration information and title, version information are sent;5th
Target receives distribution information, configuration information and title, version information from server, obtains title, version from service model database
The corresponding service model of this information is arranged configuration information to acquired service model, it is real to be generated service based on distribution information
Example.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (14)
1. a kind of distributed system for generating Service Instance, wherein the distributed system includes server cluster, described
Server cluster includes primary server and at least two from server;
The primary server obtains the service mould of the Service Instance for obtaining the configuration information of Service Instance to be created
The title of type, version information obtain resource using information from described at least two from server, are based on the configuration information and money
Source use information determines from server slave server for creating each Service Instance from described at least two, generates and use
The distribution information of the resource of the occupancy needed for the slave server and Service Instance to be created of instruction creation Service Instance, sends institute
State distribution information, the configuration information and the title, version information;
Described at least two from server, for receiving the distribution information, the configuration information and the title, version letter
Breath obtains the title, the corresponding service model of version information from service model database, the distribution information is based on, to institute
The configuration information is arranged in the service model of acquisition, generates Service Instance, wherein each generate at least one service from server
Example;
The distributed system further includes gateway server, and the gateway server is stored with the network including each Service Instance
Between the forwarding table of Protocol IP address and port information that interconnects;
The gateway server, in response to receiving recognition of face task, from each Service Instance of generation, determination to be held
The Service Instance of pedestrian's face identification mission is based on the forwarding table, the recognition of face task is sent to determined by operation
The slave server of Service Instance.
2. the distributed system according to claim 1 for generating Service Instance, wherein the distributed system further includes matching
Set server;
The configuration server, for determining title, the version information of the service model, determine Service Instance matches confidence
Breath, wherein configuration information includes the number of Service Instance, serve port, physical node mapping.
3. the distributed system according to claim 1 for generating Service Instance, wherein
The gateway server is also used to the recognition of face request in response to receiving the transmission of target terminal equipment, from generation
In each Service Instance, determines that the Service Instance for executing face identification mission is first object Service Instance, determine described in operation
The slave server of first object Service Instance is first object from server, and Xiang Suoshu first object sends the people from server
Face identification request, the recognition of face request includes two target facial images;
The first object is taken for requesting in response to receiving the recognition of face by the first object from server
The face characteristic for the face that the business described two target images of Cass collection are presented, based on described in the determination of extracted face characteristic
The similarity is sent to the gateway server by the similarity of two target images;
The gateway server is also used to send the similarity to the target terminal in response to receiving the similarity
Equipment.
4. the distributed system according to claim 2 for generating Service Instance, wherein
The configuration server, the configuration of the Service Instance for the facial feature database for being also used to send based on target terminal equipment
Information creates the Service Instance of facial feature database;
The gateway server, be also used to receive the target terminal equipment transmission includes subscriber identity information and facial image
User's registration request executor is determined from each Service Instance based on the load information of each Service Instance generated
The Service Instance of face feature extraction tasks is the second destination service example, to the second mesh for running the second destination service example
Mark sends the user's registration request from server;
Second target extracts the facial image institute for requesting in response to receiving the user's registration from server
The face characteristic and the subscriber identity information are sent to the facial feature database by the face characteristic of the face of presentation
Service Instance operation electronic equipment so that the operation electronic equipment is by the face characteristic and the subscriber identity information
The facial feature database is stored in as reference face characteristic and with reference to subscriber identity information correspondence.
5. the distributed system according to claim 1 for generating Service Instance, wherein
The gateway server is also used to the user authentication request in response to receiving the transmission of target terminal equipment, from generation
In each Service Instance, determine that the Service Instance for executing face identification mission is third destination service example, to running described the
The third target of three destination service examples sends the user authentication request from server, and the user authentication request includes specified
Subscriber identity information and specified facial image;
The third target is from server, for that will pass through the third target in response to receiving the user authentication request
The face characteristic of the extracted specified facial image of Service Instance is determined as specified face characteristic, in facial feature database
In, believed by the reference user identity that the third destination service case retrieval and designated user's identity information match
Breath, obtains reference face characteristic corresponding to the reference subscriber identity information retrieved, special in response to the determination specified face
Sign matches with described with reference to face characteristic, and Xiang Suoshu gateway server sends authentication pass information;
The gateway server is also used in response to receiving the authentication pass information, and Xiang Suoshu target terminal equipment is sent
The authentication pass information.
6. the distributed system according to claim 1 for generating Service Instance, wherein
The primary server, the Service Instance for being also used to send in response to the slave server for receiving operation service example are believed extremely
Breath receives the data of Service Instance from the slave server migration of the operation service example, obtains at least two from server
At least one of from the resource using information of server, based on the data in configuration information and it is described at least one from clothes
The resource using information of business device, determines the slave server for the data that primary server to be received is sent, by the number to be received
According to slave server be determined as the 4th target from server;Generation is used to indicate the slave server of the data to be received and wait create
The distribution information of the resource occupied needed for the Service Instance built, the 4th target of Xiang Suoshu send the distribution information from server,
To the 4th target from data described in server migration;
4th target is from server, for receiving the distribution information and the data, from local or service model number
The title, the corresponding service model of version information are obtained according to library, the distribution information is based on, acquired service model is set
The configuration information in the data is set, Service Instance is generated.
7. the distributed system according to claim 2 for generating Service Instance, wherein
The primary server is also used to increase information in response to the number for receiving Service Instance, receives the configuration server
The configuration information of the destination service example to be increased sent receives the destination service example that the configuration server is sent
The title of service model, version information, obtain resource using information from described at least two from server;Based on the configuration
Information and resource using information determine the 5th target for increasing destination service example from clothes from described at least two from server
Business device is generated to indicate to increase the 5th target of destination service example from the money of occupancy needed for server and destination service example
The distribution information in source sends the distribution information, the configuration information and the title, version information;
5th target is from server, for receiving distribution information, the configuration information and the title, version information, from
Service model database obtains the title, the corresponding service model of version information, the distribution information is based on, to acquired
The configuration information is arranged in service model, generates Service Instance.
8. a kind of method of the generation Service Instance for distributed system, wherein the distributed system includes dispatch service
Device cluster, the server cluster include primary server and at least two from server;
The described method includes:
The primary server obtains the configuration information of Service Instance to be created, obtains the name of the service model of the Service Instance
Claim, version information, obtains resource using information from described at least two from server, used based on the configuration information and resource
Information determines from server slave server for creating each Service Instance from described at least two, and generation is used to indicate
The distribution information of the resource of occupancy needed for creating the slave server and Service Instance to be created of Service Instance, sends the distribution
Information, the configuration information and the title, version information;
Described at least two receive the distribution information, the configuration information and the title, version information from server, from clothes
Business model database obtains the title, the corresponding service model of version information, the distribution information is based on, to acquired clothes
The configuration information is arranged in business model, generates Service Instance, wherein each generate at least one Service Instance from server;
The distributed system further includes gateway server, and the gateway server is stored with the network including each Service Instance
Between the forwarding table of Protocol IP address and port information that interconnects;
The method also includes:
The gateway server from each Service Instance of generation, determines executor in response to receiving recognition of face task
The Service Instance of face identification mission is based on the forwarding table, and the recognition of face task is sent to service determined by operation
The slave server of example.
9. the method for the generation Service Instance according to claim 8 for distributed system, wherein the distributed system
System further includes configuration server;
The method also includes:
The configuration server determines the title of the service model, version information, determines the configuration information of Service Instance,
In, configuration information includes the number of Service Instance, serve port, physical node mapping.
10. the method for the generation Service Instance according to claim 9 for distributed system, wherein the method is also
Include:
The gateway server is requested in response to receiving the recognition of face of target terminal equipment transmission, from each service of generation
In example, determines that the Service Instance for executing face identification mission is first object Service Instance, determine and run the first object
The slave server of Service Instance is first object from server, and Xiang Suoshu first object sends the recognition of face from server and asks
It asks, the recognition of face request includes two target facial images;
The first object is requested from server in response to receiving the recognition of face, and the first object Service Instance is passed through
The face characteristic for extracting the face that described two target images are presented determines described two mesh based on extracted face characteristic
The similarity is sent to the gateway server by the similarity of logo image;
The gateway server sends the similarity to the target terminal equipment in response to receiving the similarity.
11. the method for the generation Service Instance according to claim 9 for distributed system, wherein the method is also
Include:
The configuration information of the Service Instance for the facial feature database that the configuration server is sent based on target terminal equipment, wound
Build the Service Instance of facial feature database;
The gateway server receives the user including subscriber identity information and facial image that the target terminal equipment is sent
Registration request is determined from each Service Instance based on the load information of each Service Instance generated and is executed face characteristic
The Service Instance of extraction task is the second destination service example, to running the second target of the second destination service example from clothes
The device transmission user's registration of being engaged in is requested;
Second target is requested from server in response to receiving the user's registration, extracts what the facial image was presented
The face characteristic and the subscriber identity information are sent to the service of the facial feature database by the face characteristic of face
The operation electronic equipment of example, so that the operation electronic equipment is using the face characteristic and the subscriber identity information as ginseng
It examines face characteristic and is stored in the facial feature database with reference to subscriber identity information correspondence.
12. the method for the generation Service Instance according to claim 9 for distributed system, wherein the method is also
Include:
The user authentication request that the gateway server is sent in response to receiving target terminal equipment, from each service of generation
In example, determines that the Service Instance for executing face identification mission is third destination service example, taken to the third target is run
The third target of pragmatic example sends the user authentication request from server, and the user authentication request includes designated user's identity
Information and specified facial image;
The third target, in response to receiving the user authentication request, will pass through the third destination service reality from server
The face characteristic of the extracted specified facial image of example is determined as specified face characteristic, in facial feature database, leads to
The reference subscriber identity information that the third destination service case retrieval and designated user's identity information match is crossed, is obtained
Reference face characteristic corresponding to the reference subscriber identity information retrieved, in response to the determination specified face characteristic with it is described
Match with reference to face characteristic, Xiang Suoshu gateway server sends authentication pass information;
The gateway server sends the certification in response to receiving the authentication pass information, Xiang Suoshu target terminal equipment
Pass through information.
13. the method for the generation Service Instance according to claim 8 for distributed system, wherein the method is also
Include:
The Service Instance exception information that the primary server is sent in response to receiving the slave server of operation service example, receives
From the slave server migration of the operation service example, Service Instance data, obtain at least two from server to
A few resource using information from server, based on the data in configuration information and it is described at least one from server
Resource using information determines the slave server for the data that primary server to be received is sent, by the data to be received from
Server is determined as the 4th target from server;Generate the slave server and clothes to be created for being used to indicate the data to be received
The distribution information of the resource occupied needed for pragmatic example, the 4th target of Xiang Suoshu send the distribution information, Xiang Suoshu from server
4th target is from data described in server migration;
4th target receives the distribution information and the data from server, obtains from local or service model database
The corresponding service model of the title, version information is taken, the distribution information is based on, to described in acquired service model setting
Configuration information in data generates Service Instance.
14. the method for the generation Service Instance according to claim 9 for distributed system, wherein the method is also
Include:
The primary server increases information in response to receiving the number of Service Instance, receive that the configuration server sends to
The configuration information of increased destination service example receives the service mould for the destination service example that the configuration server is sent
The title of type, version information obtain resource using information from described at least two from server;Based on the configuration information and money
Source use information is given birth to from described at least two the 5th targets that determination increases destination service example from server from server
At to indicate to increase the 5th target of destination service example from point of the resource of occupancy needed for server and destination service example
With information, the distribution information, the configuration information and the title, version information are sent;
5th target receives distribution information, the configuration information and the title, version information from server, from service mould
Type database obtains the title, the corresponding service model of version information, the distribution information is based on, to acquired service mould
The configuration information is arranged in type, generates Service Instance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810059381.9A CN108282527B (en) | 2018-01-22 | 2018-01-22 | Generate the distributed system and method for Service Instance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810059381.9A CN108282527B (en) | 2018-01-22 | 2018-01-22 | Generate the distributed system and method for Service Instance |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108282527A CN108282527A (en) | 2018-07-13 |
CN108282527B true CN108282527B (en) | 2019-07-09 |
Family
ID=62804464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810059381.9A Active CN108282527B (en) | 2018-01-22 | 2018-01-22 | Generate the distributed system and method for Service Instance |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108282527B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109120678B (en) * | 2018-07-26 | 2021-05-14 | 北京百度网讯科技有限公司 | Method and apparatus for service hosting of distributed storage system |
CN109726626A (en) * | 2018-09-27 | 2019-05-07 | 合肥博焱智能科技有限公司 | Face identification system based on GPU |
CN109302399B (en) * | 2018-10-15 | 2021-09-21 | 视联动力信息技术股份有限公司 | Method and system for remotely comparing versions of core servers |
CN109586970B (en) * | 2018-12-13 | 2022-07-08 | 新华三大数据技术有限公司 | Resource allocation method, device and system |
CN111340230B (en) * | 2018-12-18 | 2024-01-23 | 北京小桔科技有限公司 | Service providing method, device, server and computer readable storage medium |
CN111800285B (en) * | 2019-04-08 | 2024-04-09 | 阿里巴巴集团控股有限公司 | Instance migration method and device and electronic equipment |
CN113111354A (en) * | 2020-01-10 | 2021-07-13 | 北京地平线机器人技术研发有限公司 | Target retrieval method and system, terminal device, cloud server, medium and device |
CN111371684B (en) * | 2020-03-02 | 2022-08-09 | 中国邮政储蓄银行股份有限公司 | Routing processing method and device and double-activity data center system |
US20220067607A1 (en) * | 2020-08-26 | 2022-03-03 | Capital One Services, Llc | Cloud resources allocation system |
CN114168307A (en) * | 2020-09-10 | 2022-03-11 | 华为云计算技术有限公司 | Method, device and system for creating instances |
CN112468325B (en) * | 2020-11-11 | 2023-07-11 | 广州鲁邦通物联网科技股份有限公司 | Multiplexing VPN architecture and VPN scheduling method |
CN115174687B (en) * | 2022-07-21 | 2024-06-25 | 亚信科技(中国)有限公司 | Service calling method, device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095317A (en) * | 2014-05-23 | 2015-11-25 | 中国银联股份有限公司 | Distributive database service management system |
CN106570087A (en) * | 2016-10-20 | 2017-04-19 | 中国电子科技集团公司第二十八研究所 | Distributed face recognition system |
CN106817408A (en) * | 2016-12-27 | 2017-06-09 | 中国银联股份有限公司 | A kind of distributed server cluster dispatching method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2018027A1 (en) * | 2005-11-03 | 2009-01-21 | KTFreetel Co., Ltd. | Business logic device and processing method |
CN107105049B (en) * | 2017-05-10 | 2018-10-02 | 腾讯科技(深圳)有限公司 | Data migration method and device |
-
2018
- 2018-01-22 CN CN201810059381.9A patent/CN108282527B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095317A (en) * | 2014-05-23 | 2015-11-25 | 中国银联股份有限公司 | Distributive database service management system |
CN106570087A (en) * | 2016-10-20 | 2017-04-19 | 中国电子科技集团公司第二十八研究所 | Distributed face recognition system |
CN106817408A (en) * | 2016-12-27 | 2017-06-09 | 中国银联股份有限公司 | A kind of distributed server cluster dispatching method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108282527A (en) | 2018-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108282527B (en) | Generate the distributed system and method for Service Instance | |
CN107193894B (en) | Data processing method, individual identification method and related device | |
CN105721629B (en) | User identifier matching process and device | |
US10970322B2 (en) | Training an artificial intelligence to generate an answer to a query based on an answer table pattern | |
CN108701309A (en) | A kind of distributed user profile authentication system for security of e-commerce transactions | |
CN110728455B (en) | Service processing method, service processing device, storage medium and electronic equipment | |
JP7397094B2 (en) | Resource configuration method, resource configuration device, computer equipment, and computer program | |
CN103164416A (en) | Identification method and device of user relationship | |
CN107637026A (en) | Order is performed in virtual machine instance in a distributed computing environment | |
CN110019080A (en) | Data access method and device | |
CN108846753A (en) | Method and apparatus for handling data | |
CN109582873A (en) | Method and apparatus for pushed information | |
CN109542757A (en) | Interface testing environment determines method, apparatus, electronic equipment and storage medium | |
WO2020213763A1 (en) | Method and system for verifying block-chain data stored in storage having different format from block-chain | |
CN108600250A (en) | Authentication method | |
CN108259555B (en) | The configuration method and device of parameter | |
CN115328611A (en) | Virtual machine management method, device, server and readable storage medium | |
CN110019363A (en) | A kind of method and apparatus verifying data | |
CN109005167B (en) | Authentication data processing method and device, server and storage medium | |
WO2021169811A1 (en) | Method, apparatus, system and device for generating special effects, and storage medium | |
CN110225102A (en) | Method, equipment and the system of pushed information | |
US10776411B2 (en) | Systematic browsing of automated conversation exchange program knowledge bases | |
CN109885400A (en) | Method and apparatus for sending instruction | |
CN110851853B (en) | Data isolation method, device, computer equipment and storage medium | |
CN110909072B (en) | Data table establishment method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |