CN112039683A - Service hosting method, system and storage medium - Google Patents

Service hosting method, system and storage medium Download PDF

Info

Publication number
CN112039683A
CN112039683A CN201910481732.XA CN201910481732A CN112039683A CN 112039683 A CN112039683 A CN 112039683A CN 201910481732 A CN201910481732 A CN 201910481732A CN 112039683 A CN112039683 A CN 112039683A
Authority
CN
China
Prior art keywords
service
level
capability
publishing
browser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910481732.XA
Other languages
Chinese (zh)
Other versions
CN112039683B (en
Inventor
杨巍巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910481732.XA priority Critical patent/CN112039683B/en
Publication of CN112039683A publication Critical patent/CN112039683A/en
Application granted granted Critical
Publication of CN112039683B publication Critical patent/CN112039683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5051Service on demand, e.g. definition and deployment of services in real time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a service hosting method, a system and a storage medium, which can improve the success rate of service instance creation, and the method can comprise the following steps: when a service instance creating request of a first service capacity is received, determining login authority according to the service instance creating request; determining a state mark of a first service agent broker corresponding to the first service capability and a first publishing object associated with the first broker; when the state is marked as a normal state, determining the number of idle service instances of the first service capacity; and when the number of idle service instances meets the creation condition, creating a first service instance corresponding to the first service capability based on the first publishing object so as to realize the hosting process of the first service capability.

Description

Service hosting method, system and storage medium
Technical Field
The present invention relates to the field of internet, and in particular, to a service hosting method, system, and storage medium.
Background
The hosting of the basic Service capabilities of the middleware database services mysql, oracle and the like in the cloud platform becomes a popular trend, and the application can use the basic Service capabilities provided by a third party in the cloud platform, wherein a Service Catalog project of a Kubernets cloud platform provides a Service hosting mode. In the current cloud platform, a method for using a Service Catalog to perform Service hosting is to deploy a servicecatalog in a cluster, register a Service capability provided by a third party into the cluster through a Service proxy broker, automatically create a corresponding Service capability class and a Service template plan by a Service Catalog, and support the management of a plurality of classes by one broker, that is, register one broker with a plurality of capabilities for use at the same time, enable a user to create a Service instance and an instance binding corresponding to a class, and bind the information of the binding into an application, and at this time, the user can conveniently operate the Service resource of the third party in the application.
However, in the current service directory, once the browser is registered, the associated service capability class is automatically created, but when the browser has a problem or needs to be changed, an exception is created when a service instance corresponding to the class is created; and the number of the service instances created by each class is fixed, and when the service instance corresponding to the class is created, the service instance corresponding to the class is caused to create an exception.
Disclosure of Invention
In order to solve the above technical problems, embodiments of the present invention provide a service hosting method, a service hosting system, and a storage medium, which can improve the success rate of creating a service instance.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a service hosting method, which comprises the following steps:
when a service instance creating request of a first service capacity is received, determining login authority according to the service instance creating request;
determining a state mark of a first service agent broker corresponding to the first service capability and a first publishing object associated with the first broker;
when the state mark is a normal state, determining the number of idle service instances of the first service capacity;
and when the number of the idle service instances meets the creation condition, creating a first service instance corresponding to the first service capability based on the first publishing object so as to realize the hosting process of the first service capability.
In the above method, before determining the login right according to the service instance creation request when receiving the service instance creation request of the first service instance, the method further includes:
when a publishing request of a first browser is received, determining a publishing level and a state mark of the first browser according to the publishing request;
adding the publishing level and the state mark into a data model corresponding to the first browser;
creating service capability corresponding to the first browser according to the release level;
associating the first browser with the first publishing object corresponding to the publishing level to obtain an association relation between the browser and the publishing object;
correspondingly, the determining the state flag of the first service proxy broker corresponding to the first service capability includes:
and searching the state mark of the first browser from the data model corresponding to the first browser.
In the above method, the determining the number of idle service instances of the first service capability includes:
searching a first quota corresponding to the first service capacity;
searching the upper limit of the service instance of the first service capacity and the number of the created service instances from the first quota;
and determining the number of idle service instances according to the service instance upper limit and the created service instance number.
In the above method, after the searching for the first quota corresponding to the first service capability, the method further includes:
when the first quota is not found, the first service capability is found in the first browser;
when the first service capability is found in the first browser, matching the issuing level with the login authority;
when the issuing level is successfully matched with the login authority, creating the first quota;
adding the service instance upper limit of the first service capacity in the first quota, and setting the created service instance quantity to be 0.
In the above method, the creating, according to the publishing level, the service capability corresponding to the first broker includes:
determining a service capability range corresponding to the release level;
and creating the service capability corresponding to the first browser according to the service capability range.
In the above method, the publication level includes a cluster level and a tenant level; the associating the first spoke with the first publishing object corresponding to the publishing level includes:
when the release level is the cluster level, determining at least one cluster corresponding to the first release object;
associating the first spoke with the at least one cluster.
In the above method, after the first broker is associated with the first publishing object corresponding to the publishing level to obtain an association relationship between the broker and the publishing object, the method further includes:
when a service capability query request is received, determining login authority according to the service capability query request;
determining the creatable service capability corresponding to the login authority according to the login authority;
searching a first publishing object corresponding to the creatable service capability from the incidence relation between the service capability and the publishing object;
receiving the service instance creation request when a touch operation of the first service capability of the first publishing object is received.
In the above method, after the creating of the first service instance corresponding to the first service capability based on the first distribution object, the method further includes:
and displaying an operation interface corresponding to the first service instance so as to bind the first service instance and the application through the operation interface.
An embodiment of the present invention provides a service hosting system, where the service hosting system includes: the processor is used for executing the running program stored in the memory so as to realize the following steps:
when a service instance creating request of a first service capacity is received, determining login authority according to the service instance creating request; determining a state mark of a first service agent broker corresponding to the first service capability and a first publishing object associated with the first broker; when the state mark is a normal state, determining the number of idle service instances of the first service capacity; and when the number of the idle service instances meets the creation condition, creating a service instance corresponding to the first service capability based on the first publishing object so as to realize a hosting process of the first service capability.
In the system, the processor is further configured to determine, when receiving a publication request of a first broker, a publication level and a state flag of the first broker according to the publication request; adding the publishing level and the state mark into a data model corresponding to the first browser; creating service capability corresponding to the first browser according to the release level; associating the first browser with the first publishing object corresponding to the publishing level to obtain an association relation between the browser and the publishing object; and searching the state mark of the first browser from the data model corresponding to the first browser.
In the above system, the processor is further configured to search for a first quota corresponding to the first service capability; searching the upper limit of the service instance of the first service capacity and the number of the created service instances from the first quota; and determining the number of idle service instances according to the service instance upper limit and the created service instance number.
In the above system, the processor is further configured to search the first service capability in the first broker when the first quota is not found; when the first service capability is found in the first browser, matching the issuing level with the login authority; when the issuing level is successfully matched with the login authority, creating the first quota; adding the service instance upper limit of the first service capacity in the first quota, and setting the created service instance quantity to be 0.
In the system, the processor is further configured to determine a service capability range corresponding to the release level; according to the service capability range, establishing the service capability corresponding to the first browser;
or the processor is further used for determining login authority according to the service capability query request when the service capability query request is received; determining the creatable service capability corresponding to the login authority according to the login authority; searching a first publishing object corresponding to the creatable service capability from the incidence relation between the service capability and the publishing object; receiving the service instance creation request when a touch operation of the first service capability of the first publishing object is received.
In the system, the publication level comprises a cluster level and a tenant level;
the processor is further configured to determine at least one cluster corresponding to the first distribution object when the distribution level is the cluster level; associating the first spoke with the at least one cluster.
In the system, the processor is further configured to display an operation interface corresponding to the first service instance, so as to bind the first service instance and the application through the operation interface.
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, for application to a service hosting system, where the computer program is configured to implement the method according to any one of the above descriptions when executed by a processor.
The embodiment of the invention provides a service hosting method, a system and a storage medium, wherein the method comprises the following steps: when a service instance creating request of a first service capacity is received, determining login authority according to the service instance creating request; determining a state mark of a first service agent broker corresponding to the first service capability and a first publishing object associated with the first broker; when the state is marked as a normal state, determining the number of idle service instances of the first service capacity; and when the number of idle service instances meets the creation condition, creating a first service instance corresponding to the first service capability based on the first publishing object so as to realize the hosting process of the first service capability. By adopting the implementation scheme of the method, firstly, the service hosting system records the state mark of the first broker, when the service instance of the first service capacity is created, the service hosting system firstly determines the state mark of the first broker corresponding to the first service capacity, and only when the state mark is in a normal state, the service hosting system creates the first service instance, secondly, the service hosting system records the number of idle service instances of the first service capacity, and when the number of the idle service instances meets the creation condition, the service hosting system creates the first service instance of the first service capacity, so that the success rate of creating the service instance can be improved.
Drawings
FIG. 1 is a diagram of a service directory architecture;
fig. 2 is a flowchart of a service hosting method according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the design architecture of an exemplary service hosting system provided by an embodiment of the present invention;
FIG. 4 is a model diagram of an exemplary brooker model according to an embodiment of the present invention;
FIG. 5 is a model diagram of an exemplary cluster service model provided by an embodiment of the present invention;
fig. 6 is a flowchart of exemplary creating a broker according to an embodiment of the present invention;
FIG. 7 is a model diagram of an exemplary quota data model provided by an embodiment of the present invention;
FIG. 8 is a flowchart of an exemplary process for creating quota according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a service hosting system according to an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The Service Catalog project in the Kubernetes cloud platform provides a way of Service hosting. Fig. 1 is a diagram of a Service directory architecture, which includes an Application Programming Interface (API) Server layer, a Service Catalog resource management layer, an Application requiring Service capability in a cluster, and a Service Broker. The application uses the Service resource of the third party by binding the Service instance in the Service Catalog; the service catalog resource management and control layer provides management capabilities of resources such as a Cluster Cluster service Broker, a Cluster service class, a Cluster service Plan, a service instance, a service binding and the like, and the means represented by the resource management and control layer are a service agent broker resource registered by a user, service capability related to the broker resource, a Plan template related to the service capability, a service instance and service binding; the service broker is a core of a service directory architecture, wherein the service capability is management of the service capability corresponding to the service broker, one service broker supports management of a plurality of service capabilities, and the service broker follows an Open service broker API specification and provides functions of capability of automatically discovering catalog, service instance management, service binding management and the like.
Example one
An embodiment of the present invention provides a service hosting method, as shown in fig. 2, the method may include:
s101, when a service instance creating request of a first service capability is received, determining login authority according to the service instance creating request.
The service hosting method provided by the embodiment of the invention is suitable for hosting the service resources provided by the third party by the service hosting system so as to bind the service resources to the application scene.
In the embodiment of the present invention, the service hosting system is deployed in the management cluster, the service hosting system is composed of three function modules, namely, a service directory, my instance, and my service, the three function modules adopt the same authentication scheme, as shown in fig. 3, the authentication authority is divided into a deparatment platform level and a tenant level, specific authority items can be added according to actual situations, and the two authorities are taken as examples here. In fig. 3, a broker a is associated with a cluster 1 and a cluster 2, and a broker b is associated with the cluster 2, when a cluster N is newly added, the newly added cluster N can check the service capability and order the broker a and the broker b, the published services can appear in all clusters in a service directory, and the service function module also provides functions of setting down, deleting, checking service details and the like; the function module of the my instance is mainly used for creating a cluster instance according to the service capability corresponding to the issued broker, and binding the created cluster instance with the corresponding cluster 1; the functional module of the service directory comprises information of associated service capabilities in the cluster, an operation interface of a service instance and all the clusters, and when a user clicks the cluster 1 in all the clusters, the cluster 1 and a corresponding service capability list are displayed in the current cluster; the third party service may use the integrated service capabilities on cluster 1 and cluster 2 in advance of opening the network.
In the embodiment of the invention, after receiving a login name and a login password, a service hosting system authenticates the login name to obtain login authority corresponding to the login name, displays service capacity to be created corresponding to the login authority on a self-instance function module according to the login authority, selects a first service capacity from the service capacity to be created by a user, clicks a service instance creating button, and receives a service instance creating request of the first service capacity.
In the embodiment of the present invention, the login right includes a platform level and a tenant level, and is specifically extended according to an actual situation, and the embodiment of the present invention is not specifically limited.
Further, before the service hosting system receives a service instance creating request of a first service capability, the service hosting system issues a first broker by using the my service function module to create a process of the service capability corresponding to the first broker, specifically, when the service hosting system receives an issuing request of the first broker, the service hosting system determines an issuing level and a state mark of the first broker according to the issuing request; then adding the issuing level and the state mark into a data model corresponding to the first browser; creating service capability corresponding to the first browser according to the release level; and the service hosting system associates the service capability corresponding to the first browser with the first publishing object corresponding to the publishing level to obtain the association relationship between the service capability and the publishing object.
In the embodiment of the present invention, a broker data model (a data model corresponding to a first broker) is added in a metadata layer, and is specifically designed as shown in fig. 4, where id represents a unique identifier, name represents a name issued by the broker, level represents a level (issue level) issued by the broker, resource represents a specific location to which a resource belongs, logo _ id represents an icon of the resource, type represents an issue type of the resource, status represents a state (state flag) of the resource, and includes two states, that is, Up (normal state) and down (lock creation state), and provider represents provider information of the issued resource.
It can be understood that the broker data model is added in the metadata layer, so that when the broker is issued, the metadata information can be added into the broker database, and when the service capability is searched, the search is performed according to the level, so that the service capability to be created corresponding to the login right can be found.
In the embodiment of the invention, when the release level is the cluster level, the service hosting system determines at least one cluster corresponding to the first release object; and associating the service capability corresponding to the first browser with at least one cluster.
Further, the Service hosting system provides a cluster Service model, when the release level is the cluster level, the Service hosting system records the association relationship between the first broker and the at least one cluster in the cluster Service model, and then creates the first broker in the Service Catalog.
Illustratively, fig. 5 is a cluster service model, in which a name represents a name of a cluster, and a broker _ name indicates a name of a published broker.
Illustratively, when a user issues a platform-level broker1 to clusters c1 and c2, it is first determined whether the user has authority according to authentication rules, then a level added to the metadata of the broker is organization, and meanwhile, in the cluster Service model, 2 records are added, < c1, broker1>, < c2, broker1>, and then resource broker1 is created in a Service Catalog; when a user publishes a cookie 2 at a tenant level and does not relate to a cluster, the level of adding level in metadata of the cookie is tentant, and tentant _ id information is recorded in resource, and then creation of the cookie 2 is performed in a Service Catalog.
It can be understood that the service hosting system can create service capabilities in different ranges corresponding to different publication levels, and when the publication level is a cluster level, the service hosting system can publish the broker to multiple clusters at the same time, and the published broker capability can also change the publication range, thereby improving the flexibility and speed of publishing the broker.
In the embodiment of the present invention, the creating, by the service hosting system according to the release level, the service capability corresponding to the first broker includes: the service hosting system determines a service capacity range corresponding to the release level; and the service hosting system creates the service capability corresponding to the first browser according to the service capability range.
Illustratively, when the release level is a platform level, the service hosting system determines a platform service capability range according to the platform level, and creates a service capability corresponding to the first broker according to the platform service capability range; when the release level is the tenant level, the service hosting system determines a tenant service capability range according to the tenant level, and creates a service capability corresponding to the first broker according to the tenant service capability range.
It should be noted that the platform level has a greater scope for creating service capabilities than the tenant level.
Exemplarily, fig. 6 is a publishing process of a browser, which specifically includes:
1. when a browser creation request is received, checking the validity of a request field;
2. when the request field is legal, checking whether a brooker name carried by a brooker establishing request exists;
3. when the name of the browser does not exist, adding related contents of the browser in a browser data table;
4. determining a publication level from the broker creation request;
5. when the release level is a platform level, adding the released cluster information, and executing 7;
6. when the release level is the tenant level, adding tenant information and executing 7;
7. a brooker is created in the catalog management cluster.
S102, determining a state mark of a first service agent broker corresponding to the first service capability and a first publishing object associated with the first broker.
After the service hosting system determines the login authority according to the service instance creating request, the service hosting system determines a state mark of a first broker corresponding to the first service capability and a first publishing object associated with the first broker.
In the embodiment of the invention, the service hosting system searches the state mark of the first broker from the data model corresponding to the first broker, and determines the first publishing object associated with the first broker from the cluster service model corresponding to the first broker according to the publishing level of the first broker.
In the embodiment of the invention, the state mark of the first browser comprises a normal state and a lock creating state, and when the state mark of the first browser is the normal state, a process of creating a service instance can be carried out; when the first broker is in a creation locking state, the first broker is represented to be in states of updating, upgrading and the like, a service instance cannot be created at the moment, the service hosting system prompts information that the service instance cannot be created and returns information that the first broker is off-shelf, and for the created instance, the state of the first broker does not need to be judged and the first broker can be used continuously.
In the embodiment of the invention, when the user judges that the first broker is in the states of updating, upgrading and the like, the state mark of the first broker can be changed into the locking state, and when the first broker is updated and upgraded, the user changes the state mark of the first broker into the normal state; or when the service hosting system determines that the first broker is in the states of updating, upgrading and the like, automatically changing the state mark of the first broker into the creation locking state, when the service hosting system determines that the first broker is updated and upgraded, automatically changing the state mark of the first broker into the normal state by the service hosting system, and specifically selecting a mode for changing the state mark of the first broker according to the actual situation, wherein the embodiment of the invention is not specifically limited.
In the embodiment of the invention, when the release level is a cluster level, the service hosting system determines at least one cluster corresponding to the first spoke from the cluster service model, and when the service hosting system receives a selection operation on a first cluster in the at least one cluster, the service hosting system determines the first cluster as a first release object; when the release level is the tenant level, the service hosting system determines tenant information corresponding to the first broker from the data model corresponding to the first broker, and determines the tenant information as a first release object.
S103, when the state mark is in a normal state, determining the number of idle service instances of the first service capacity.
After the service hosting system determines the state mark of the first spoke corresponding to the first service capability and the first publishing object associated with the first spoke, the service hosting system judges whether the first spoke is normal according to the state mark, and when the service hosting system determines that the state mark is normal, the service hosting system determines the number of idle service instances of the first service capability.
In the embodiment of the invention, when the service hosting system determines that the state of the first browser is marked as the normal state, the representation can create the service instance, and at the moment, the service hosting system determines the number of idle service instances of the first service capacity.
Specifically, the service hosting system searches for a first quota corresponding to the first service capability; searching the upper limit of the service instance of the first service capacity and the number of the created service instances from the first quota; then, the service hosting system determines the number of idle service instances according to the upper limit of the service instances and the number of created service instances. When the service hosting system does not find the first quota, the service hosting system searches the first service capacity in the first broker; when the service hosting system finds the first service capability in the first browser, the service hosting system matches the release level with the login authority; when the matching is successful, the service hosting system creates a first quota; the service hosting system adds the service instance upper limit of the first service capacity in the first quota and sets the created number of the service instances to 0.
In the embodiment of the present invention, a design model of quota is shown in fig. 7, where name is a name of a browser, class is a specific service capability name, total is a service instance upper limit that can be created based on the service capability, and used is the number of created service instances based on the service capability.
In the embodiment of the present invention, a creating flow of quota is shown in fig. 8, and includes:
1. when a service instance establishing request of a first service capability is acquired, checking the legality of a request field;
2. when the request field is legal, judging whether a quota corresponding to the first service capability exists or not;
3. when judging that no quota corresponding to the first service capability exists, searching a browser corresponding to the quota;
4. when the browser corresponding to the qota is found, judging whether the browser belongs to a request object corresponding to the service instance creation request;
5. when the browser is judged to belong to the request object, the name of the browser and the name of the service capability are added into the quota, the service capability can be established as the upper limit of the service instance, and the established number of the service instances of the service capability is four fields.
And S104, when the number of the idle service instances meets the creation condition, creating a first service instance corresponding to the first service capability based on the first publishing object so as to realize the hosting process of the first service capability.
When the service hosting system determines the number of idle service instances of the first service capability, the service hosting system judges whether the number of idle service instances meets the creation condition, and when the service hosting system judges that the number of idle service instances meets the creation condition, the service hosting system creates a first service instance corresponding to the first service capability based on the first publishing object.
In the embodiment of the present invention, the service hosting system determines whether the number of idle service instances meets the creation condition, specifically, the service hosting system determines the number of service instances to be created from the service instance creation request, then, the service hosting system compares the number of idle service instances with the number of service instances to be created, when the number of idle service instances is greater than or equal to the number of service instances to be created, the service hosting system determines that the number of idle service instances meets the creation condition, and at this time, the service hosting system creates the first service instance based on the first publishing object.
In the embodiment of the present invention, after the service hosting system creates the first service instance based on the first publishing object, the service hosting system displays an operation interface corresponding to the first service instance on the service directory function module, so as to bind the first service instance and the application through the operation interface.
It can be understood that, firstly, the service hosting system records the state flag of the first broker, when creating the service instance of the first service capability, the service hosting system determines the state flag of the first broker corresponding to the first service capability first, and only when the state flag is in a normal state, the service hosting system creates the service instance, secondly, the service hosting system records the number of idle service instances of the first service capability, and when the number of idle service instances meets the creation condition, the service hosting system creates the service instance of the first service capability, thereby being capable of improving the success rate of creating the service instance.
Example two
Fig. 9 is a schematic structural diagram of a first composition of a service hosting system according to an embodiment of the present invention, and in practical applications, based on the same inventive concept of the first embodiment to the second embodiment, as shown in fig. 9, a service hosting system 1 according to an embodiment of the present invention includes: a processor 10, a memory 11, and a communication bus 12. In a specific embodiment, the Processor 10 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronic devices used to implement the processor functions described above may be other devices, and embodiments of the present invention are not limited in particular.
In the embodiment of the present invention, the communication bus 12 is used for realizing connection communication between the processor 10 and the memory 11; the processor 10 is configured to execute the operating program stored in the memory 11 to implement the following steps:
the processor 10 is configured to, when receiving a service instance creation request of a first service capability, determine a login right according to the service instance creation request; determining a state mark of a first service agent broker corresponding to the first service capability and a first publishing object associated with the first broker; when the state mark is a normal state, determining the number of idle service instances of the first service capacity; and when the number of the idle service instances meets the creation condition, creating a service instance corresponding to the first service capability based on the first publishing object so as to realize a hosting process of the first service capability.
In this embodiment of the present invention, the processor 10 is further configured to determine, when receiving a publishing request of a first broker, a publishing level and a state flag of the first broker according to the publishing request; adding the publishing level and the state mark into a data model corresponding to the first browser; creating service capability corresponding to the first browser according to the release level; associating the first browser with the first publishing object corresponding to the publishing level to obtain an association relation between the browser and the publishing object; and searching the state mark of the first browser from the data model corresponding to the first browser.
In this embodiment of the present invention, further, the processor 10 is further configured to search a first quota corresponding to the first service capability; searching the upper limit of the service instance of the first service capacity and the number of the created service instances from the first quota; and determining the number of idle service instances according to the service instance upper limit and the created service instance number.
In this embodiment of the present invention, further, the processor 10 is further configured to search the first service capability in the first broker when the first quota is not found; when the first service capability is found in the first browser, matching the issuing level with the login authority; when the issuing level is successfully matched with the login authority, creating the first quota; adding the service instance upper limit of the first service capacity in the first quota, and setting the created service instance quantity to be 0.
In this embodiment of the present invention, further, the processor 10 is further configured to determine a service capability range corresponding to the release level; and creating the service capability corresponding to the first browser according to the service capability range.
In this embodiment of the present invention, further, the processor 10 is further configured to determine, when receiving a service capability query request, a login right according to the service capability query request; determining the creatable service capability corresponding to the login authority according to the login authority; searching a first publishing object corresponding to the creatable service capability from the incidence relation between the service capability and the publishing object; receiving the service instance creation request when a touch operation of the first service capability of the first publishing object is received.
In the embodiment of the present invention, further, the publishing level includes a cluster level and a tenant level;
the processor 10 is further configured to determine at least one cluster corresponding to the first distribution object when the distribution level is the cluster level; associating the first spoke with the at least one cluster. In this embodiment of the present invention, the processor 10 is further configured to display an operation interface corresponding to the first service instance, so as to bind the first service instance and the application through the operation interface.
According to the service hosting system provided by the embodiment of the invention, when a service instance creating request of a first service capacity is received, a login authority is determined according to the service instance creating request; determining a state mark of a first service agent broker corresponding to the first service capability and a first publishing object associated with the first broker; when the state is marked as a normal state, determining the number of idle service instances of the first service capacity; and when the number of idle service instances meets the creation condition, creating a first service instance corresponding to the first service capability based on the first publishing object so as to realize the hosting process of the first service capability. Therefore, in the service hosting system provided by the embodiment of the present invention, firstly, the service hosting system records the state flag of the first broker, when creating the service instance with the first service capability, the service hosting system determines the state flag of the first broker corresponding to the first service capability, and only when the state flag is in a normal state, the service hosting system creates the service instance, secondly, the service hosting system records the number of idle service instances with the first service capability, and when the number of idle service instances meets the creating condition, the service hosting system creates the service instance with the first service capability, so that the success rate of creating the service instance can be improved.
The embodiment of the present invention provides a computer-readable storage medium, where one or more programs are stored, where the one or more programs are executable by one or more processors and applied to a service hosting system, and when the program is executed by the processors, the method according to the first embodiment is implemented.
Specifically, when program instructions corresponding to a service hosting method in this embodiment are read or executed by an electronic device, the method includes the following steps:
when a service instance creating request of a first service capacity is received, determining login authority according to the service instance creating request;
determining a state mark of a first service agent broker corresponding to the first service capability and a first publishing object associated with the first broker;
when the state mark is a normal state, determining the number of idle service instances of the first service capacity;
and when the number of the idle service instances meets the creation condition, creating a first service instance corresponding to the first service capability based on the first publishing object so as to realize the hosting process of the first service capability.
In this embodiment of the present invention, further, before determining the login right according to the service instance creation request when receiving the service instance creation request of the first service instance, the one or more programs are executed by the one or more processors, and the following steps are further implemented:
when a publishing request of a first browser is received, determining a publishing level and a state mark of the first browser according to the publishing request;
adding the publishing level and the state mark into a data model corresponding to the first browser;
creating service capability corresponding to the first browser according to the release level;
associating the first browser with the first publishing object corresponding to the publishing level to obtain an association relation between the browser and the publishing object;
correspondingly, the determining of the state flag of the first service broker corresponding to the first service capability, where the one or more programs are executed by the one or more processors, specifically implements the following steps:
and searching the state mark of the first browser from the data model corresponding to the first browser.
In an embodiment of the present invention, further, determining the number of idle service instances of the first service capability, where the one or more programs are executed by the one or more processors, and specifically implementing the following steps:
searching a first quota corresponding to the first service capacity;
searching the upper limit of the service instance of the first service capacity and the number of the created service instances from the first quota;
and determining the number of idle service instances according to the service instance upper limit and the created service instance number.
In this embodiment of the present invention, further, after the first quota corresponding to the first service capability is found, the one or more programs are executed by the one or more processors, and the following steps are further implemented:
when the first quota is not found, the first service capability is found in the first browser;
when the first service capability is found in the first browser, matching the issuing level with the login authority;
when the issuing level is successfully matched with the login authority, creating the first quota;
adding the service instance upper limit of the first service capacity in the first quota, and setting the created service instance quantity to be 0.
In an embodiment of the present invention, further, a service capability corresponding to the first broker is created according to the publishing level, and the one or more programs are executed by the one or more processors, so that the following steps are specifically implemented:
determining a service capability range corresponding to the release level;
and creating the service capability corresponding to the first browser according to the service capability range.
In an embodiment of the present invention, further, the publication level includes a cluster level and a tenant level; associating the first spoke with the first publishing object corresponding to the publishing level, wherein the one or more programs are executed by the one or more processors, and the following steps are specifically realized:
when the release level is the cluster level, determining at least one cluster corresponding to the first release object;
associating the first spoke with the at least one cluster.
In this embodiment of the present invention, further, after associating the first spoke with the first publishing object corresponding to the publishing level to obtain an association relationship between the spoke and the publishing object, the one or more programs are executed by the one or more processors, and the following steps are further implemented:
when a service capability query request is received, determining the login authority according to the service capability query request;
determining the creatable service capability corresponding to the login authority according to the login authority;
searching a first publishing object corresponding to the creatable service capability from the incidence relation between the service capability and the publishing object;
receiving the service instance creation request when a touch operation of the first service capability of the first publishing object is received.
In this embodiment of the present invention, further, after creating the first service instance corresponding to the first service capability based on the first distribution object, the one or more programs are executed by the one or more processors, and the following steps are further implemented:
and displaying an operation interface corresponding to the first service instance so as to bind the first service instance and the application through the operation interface.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a service hosting system, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (16)

1. A service hosting method, comprising:
when a service instance creating request of a first service capacity is received, determining login authority according to the service instance creating request;
determining a state mark of a first service agent broker corresponding to the first service capability and a first publishing object associated with the first broker;
when the state mark is a normal state, determining the number of idle service instances of the first service capacity;
and when the number of the idle service instances meets the creation condition, creating a first service instance corresponding to the first service capability based on the first publishing object so as to realize the hosting process of the first service capability.
2. The method of claim 1, wherein before determining login rights according to the service instance creation request when receiving the service instance creation request of the first service instance, the method further comprises:
when a publishing request of a first browser is received, determining a publishing level and a state mark of the first browser according to the publishing request;
adding the publishing level and the state mark into a data model corresponding to the first browser;
creating service capability corresponding to the first browser according to the release level;
associating the first browser with the first publishing object corresponding to the publishing level to obtain an association relation between the browser and the publishing object;
correspondingly, the determining the state flag of the first service proxy broker corresponding to the first service capability includes:
and searching the state mark of the first browser from the data model corresponding to the first browser.
3. The method of claim 1, wherein the determining the number of idle service instances of the first service capability comprises:
searching a first quota corresponding to the first service capacity;
searching the upper limit of the service instance of the first service capacity and the number of the created service instances from the first quota;
and determining the number of idle service instances according to the service instance upper limit and the created service instance number.
4. The method according to claim 3, wherein after the searching for the first quota corresponding to the first service capability, the method further comprises:
when the first quota is not found, the first service capability is found in the first browser;
when the first service capability is found in the first browser, matching the issuing level with the login authority;
when the issuing level is successfully matched with the login authority, creating the first quota;
adding the service instance upper limit of the first service capacity in the first quota, and setting the created service instance quantity to be 0.
5. The method of claim 2, wherein the creating the service capability corresponding to the first broker according to the publishing level comprises:
determining a service capability range corresponding to the release level;
and creating the service capability corresponding to the first browser according to the service capability range.
6. The method of any of claims 1-5, wherein the publication level comprises a cluster level and a tenant level; the associating the first spoke with the first publishing object corresponding to the publishing level includes:
when the release level is the cluster level, determining at least one cluster corresponding to the first release object;
associating the first spoke with the at least one cluster.
7. The method according to claim 2, wherein after associating the first spoke with the first publishing object corresponding to the publishing level to obtain an association relationship between the spoke and the publishing object, the method further comprises:
when a service capability query request is received, determining login authority according to the service capability query request;
determining the creatable service capability corresponding to the login authority according to the login authority;
searching a first publishing object corresponding to the creatable service capability from the incidence relation between the service capability and the publishing object;
receiving the service instance creation request when a touch operation of the first service capability of the first publishing object is received.
8. The method of claim 1, wherein after creating the first service instance corresponding to the first service capability based on the first distribution object, the method further comprises:
and displaying an operation interface corresponding to the first service instance so as to bind the first service instance and the application through the operation interface.
9. A service hosting system, characterized in that the service hosting system comprises: the processor is used for executing the running program stored in the memory so as to realize the following steps:
when a service instance creating request of a first service capacity is received, determining login authority according to the service instance creating request; determining a state mark of a first service agent broker corresponding to the first service capability and a first publishing object associated with the first broker; when the state mark is a normal state, determining the number of idle service instances of the first service capacity; and when the number of the idle service instances meets the creation condition, creating a service instance corresponding to the first service capability based on the first publishing object so as to realize a hosting process of the first service capability.
10. The system of claim 9,
the processor is further used for determining a publishing level and a state mark of the first broker according to the publishing request when the publishing request of the first broker is received; adding the publishing level and the state mark into a data model corresponding to the first browser; creating service capability corresponding to the first browser according to the release level; associating the first browser with the first publishing object corresponding to the publishing level to obtain an association relation between the browser and the publishing object; and searching the state mark of the first browser from the data model corresponding to the first browser.
11. The system of claim 9,
the processor is further configured to search a first quota corresponding to the first service capability; searching the upper limit of the service instance of the first service capacity and the number of the created service instances from the first quota; and determining the number of idle service instances according to the service instance upper limit and the created service instance number.
12. The system of claim 11,
the processor is further configured to search the first service capability in the first broker when the first quota is not found; when the first service capability is found in the first browser, matching the issuing level with the login authority; when the issuing level is successfully matched with the login authority, creating the first quota; adding the service instance upper limit of the first service capacity in the first quota, and setting the created service instance quantity to be 0.
13. The system of claim 10,
the processor is further configured to determine a service capability range corresponding to the release level; according to the service capability range, establishing the service capability corresponding to the first browser;
or the processor is further used for determining login authority according to the service capability query request when the service capability query request is received; determining the creatable service capability corresponding to the login authority according to the login authority; searching a first publishing object corresponding to the creatable service capability from the incidence relation between the service capability and the publishing object; receiving the service instance creation request when a touch operation of the first service capability of the first publishing object is received.
14. The system of any of claims 9-13, wherein the publication level comprises a cluster level and a tenant level;
the processor is further configured to determine at least one cluster corresponding to the first distribution object when the distribution level is the cluster level; associating the first spoke with the at least one cluster.
15. The system of claim 9,
the processor is further configured to display an operation interface corresponding to the first service instance, so as to bind the first service instance and the application through the operation interface.
16. A computer-readable storage medium, on which a computer program is stored, for use in a service hosting system, wherein the computer program, when executed by a processor, implements the method of any one of claims 1-8.
CN201910481732.XA 2019-06-04 2019-06-04 Service hosting method, system and storage medium Active CN112039683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910481732.XA CN112039683B (en) 2019-06-04 2019-06-04 Service hosting method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910481732.XA CN112039683B (en) 2019-06-04 2019-06-04 Service hosting method, system and storage medium

Publications (2)

Publication Number Publication Date
CN112039683A true CN112039683A (en) 2020-12-04
CN112039683B CN112039683B (en) 2022-06-10

Family

ID=73576568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910481732.XA Active CN112039683B (en) 2019-06-04 2019-06-04 Service hosting method, system and storage medium

Country Status (1)

Country Link
CN (1) CN112039683B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660315A (en) * 2021-07-28 2021-11-16 北京宝兰德软件股份有限公司 Cloud computing service providing method, device, equipment and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559488A (en) * 2016-11-24 2017-04-05 天津市普迅电力信息技术有限公司 A kind of method of the electrical network geographical information space service for setting up tenant's driving

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559488A (en) * 2016-11-24 2017-04-05 天津市普迅电力信息技术有限公司 A kind of method of the electrical network geographical information space service for setting up tenant's driving

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660315A (en) * 2021-07-28 2021-11-16 北京宝兰德软件股份有限公司 Cloud computing service providing method, device, equipment and readable storage medium
CN113660315B (en) * 2021-07-28 2023-12-01 北京宝兰德软件股份有限公司 Cloud computing service providing method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN112039683B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
US10229283B2 (en) Managing applications in non-cooperative environments
CN103049692B (en) A kind of application installation method, device and equipment
US20200228622A1 (en) Dynamic Runtime Interface for Device Management
CN108293181B (en) Processing method for binding communication identifier and terminal
US20130110903A1 (en) File fetch from a remote client device
US11095648B2 (en) Dashboard as remote computing services
CN110084033B (en) User identity management method, system and computer readable storage medium
EP2875442B1 (en) Systems and methods for facilitating service provision between applications
JP2003504721A (en) Reconfiguration manager that controls electronic device upgrades
WO2017214241A1 (en) Information presentation method, device, and system
US11669850B2 (en) Selecting between client-side and server-side market detection
CN112818309A (en) Method and device for controlling data access authority and storage medium
US20190369986A1 (en) Modeling lifetime of hybrid software application using application manifest
US11882154B2 (en) Template representation of security resources
US8484748B2 (en) Method and device for classifying and processing data in instant messaging system
CN112039683B (en) Service hosting method, system and storage medium
CN106649588B (en) Method, device and system for acquiring installed application program list
US11244031B2 (en) License data structure including license aggregation
CN116595047A (en) Rights management method, rights management device, electronic device and computer-readable storage medium
CN109218259B (en) License management method and device, APPLM functional entity and computer readable storage medium
CN111857736B (en) Cloud computing product generation method, device, equipment and storage medium
EP2798510B1 (en) Systems and methods for the management and distribution of settings
CN113721936A (en) Application management method, intelligent terminal, device and storage medium
CN112579956A (en) Website account management method and device and electronic equipment
CN115865436B (en) Multi-application multi-page authority management method and device and computer 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