CN110875934B - Service grouping method and device based on multi-tenant service - Google Patents

Service grouping method and device based on multi-tenant service Download PDF

Info

Publication number
CN110875934B
CN110875934B CN201810998110.XA CN201810998110A CN110875934B CN 110875934 B CN110875934 B CN 110875934B CN 201810998110 A CN201810998110 A CN 201810998110A CN 110875934 B CN110875934 B CN 110875934B
Authority
CN
China
Prior art keywords
service
packet
characteristic information
access
resource
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
Application number
CN201810998110.XA
Other languages
Chinese (zh)
Other versions
CN110875934A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810998110.XA priority Critical patent/CN110875934B/en
Publication of CN110875934A publication Critical patent/CN110875934A/en
Application granted granted Critical
Publication of CN110875934B publication Critical patent/CN110875934B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1059Inter-group management mechanisms, e.g. splitting, merging or interconnection of groups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • 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/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a service grouping method and a device based on multi-tenant service, and the method comprises the following steps: determining access characteristic information of a first service, wherein the first service belongs to a tenant; determining a first group matched with the first service according to the access characteristic information, wherein the first group corresponds to a first resource; and allocating the first service to the first packet, wherein the access index and the resource utilization rate of the first packet including the first service meet preset conditions, and the preset conditions are used for representing that the first resource corresponding to the first packet meets the service requirement of the first service.

Description

Service grouping method and device based on multi-tenant service
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for service grouping based on a multi-tenant service.
Background
Multi-tenant is an architecture technology that can implement sharing the same system or program component in a multi-user environment and still ensure isolation of data between users. Wherein each user may be referred to as a tenant. With the development of multi-tenant technology, more and more services, such as distributed databases, cloud computing platforms, etc., which can be oriented to multi-tenancy appear.
Generally, for a multi-tenant service, it can provide services to services of different scenarios. However, in practical applications, since service requirements of different services are different, for example, different services have different requirements on delay, user access error rate, throughput, and the like, peak-to-valley times between services are different, so that interference may be generated between different services, thereby affecting service quality of the services.
Disclosure of Invention
The embodiment of the application provides a method and a device for service grouping based on multi-tenant service, which are used for solving the problem that when the multi-tenant service provides services for services in different scenes, different services generate interference due to different service requirements of the different services, and therefore the service quality of the services is influenced.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in a first aspect, a method for service grouping based on a multi-tenant service is provided, including:
determining access characteristic information of a first service, wherein the first service belongs to a tenant;
determining a first packet matched with the first service according to the access characteristic information, wherein the first packet corresponds to a first resource;
and allocating the first service to the first packet, wherein the access index and the resource utilization rate of the first packet including the first service meet preset conditions, and the preset conditions are used for representing that the first resource corresponding to the first packet meets the service requirement of the first service.
In a second aspect, a traffic grouping apparatus based on a multi-tenant service is provided, including:
the first determining unit is used for determining the access characteristic information of a first service, wherein the first service belongs to a tenant;
a second determining unit, configured to determine, according to the access characteristic information, a first packet matched with the first service, where the first packet corresponds to a first resource;
and the allocating unit is used for allocating the first service to the first group, wherein the access index and the resource utilization rate of the first group including the first service meet preset conditions, and the preset conditions are used for representing that the first resource corresponding to the first group meets the service requirement of the first service.
In a third aspect, an electronic device is provided, which includes:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
determining access characteristic information of a first service, wherein the first service belongs to a tenant;
determining a first packet matched with the first service according to the access characteristic information, wherein the first packet corresponds to a first resource;
and allocating the first service to the first packet, wherein the access index and the resource utilization rate of the first packet including the first service meet preset conditions, and the preset conditions are used for representing that the first resource corresponding to the first packet meets the service requirement of the first service.
In a fourth aspect, a computer-readable storage medium is presented, the computer-readable storage medium storing one or more programs that, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform the method of:
determining access characteristic information of a first service, wherein the first service belongs to a tenant;
determining a first packet matched with the first service according to the access characteristic information, wherein the first packet corresponds to a first resource;
and allocating the first service to the first packet, wherein the access index and the resource utilization rate of the first packet including the first service meet preset conditions, and the preset conditions are used for representing that the first resource corresponding to the first packet meets the service requirement of the first service.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
according to the technical scheme provided by the embodiment of the application, when the service is provided, the service can be intelligently distributed to the matched groups by determining the access characteristic information of the service, and then the service is provided by the resources corresponding to the matched groups. Therefore, by intelligently grouping the services, the interference of the services among different groups can be avoided; in the same group, because the access index and the resource utilization rate of the group can meet the service requirement of the service, stable service can be provided for the service, and the service quality of the service is improved. The whole process of the embodiment of the application is automatic, and the high efficiency and the real-time performance of service grouping can be guaranteed.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a flowchart illustrating a method for grouping services based on a multi-tenant service according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for grouping traffic based on a multi-tenant service according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a traffic grouping apparatus based on a multi-tenant service according to an embodiment of the present application.
Detailed Description
In the existing multi-tenant Service, SLA (Service-Level agent, service Level Agreement) defines indexes of access error rate, delay and the like of a Service, and can be used for measuring Service quality of the Service. When providing services to services of different scenes, the multi-tenant service needs to ensure that the services have stable SLAs.
However, in practical applications, due to different service requirements of different services, interference may occur between different services, thereby affecting SLA and reducing service quality for the services. For example, the same resource may provide services for two or more services simultaneously in a certain period of time, so that interference may occur between different services due to the simultaneous use of the same resource between different services, thereby affecting SLAs of the services and reducing quality of service for the services.
In order to avoid interference between different services, it is common in the prior art to isolate each service individually or to manually group multiple services. Wherein:
each service is isolated independently, namely the same resource only serves one service, so that the condition that the same resource provides services for different services at the same time can be avoided, and the interference among the services can be reduced to the minimum. However, this method is equivalent to a single tenant mode, the resource utilization rate is low, and when the capacity of the service resource needs to be expanded, the process of expanding the capacity is relatively complex.
The multiple services are manually grouped, different services can be distributed to different groups according to service requirements, and different groups correspond to different resources. The manual grouping method can solve the problem of interference between services to a certain extent. However, in practical applications, the manual grouping method generally has hysteresis and poor grouping flexibility, and cannot fundamentally solve the problem of interference between services.
In view of this, an embodiment of the present application provides a method and an apparatus for service grouping based on a multi-tenant service, where the method includes: determining access characteristic information of a first service, wherein the first service belongs to a tenant; determining a first group matched with the first service according to the access characteristic information, wherein the first group corresponds to a first resource; and allocating the first service to the first packet, wherein the access index and the resource utilization rate of the first packet including the first service meet preset conditions, and the preset conditions are used for representing that the first resource corresponding to the first packet meets the service requirement of the first service.
The technical scheme provided by the embodiment of the application can at least achieve the following beneficial effects:
(1) When the service is provided, the service is intelligently distributed to the matched groups, and the service is provided by the resources corresponding to the groups, so that the interference of the service among different groups can be avoided;
(2) In the same group, as the access index and the resource utilization rate of the group can meet the service requirement of the service, the stable service can be ensured to be provided for the service, thereby improving the service quality of the service;
(3) After the service is distributed to the matched groups, the resource utilization rate in the groups can be monitored, and when the resource utilization rate in the groups is higher, the groups can be expanded or the service can be regrouped, so that stable service can be provided for the service; when the utilization rate of resources in the packet is low, the resources in the packet can be released, so that the service in the packet is ensured to have stable SLA and reasonable resource utilization rate;
(4) The resource utilization rate of the resources corresponding to the default grouping can be monitored, and when the resource utilization rate is high, the capacity expansion of the resources grouped by default can be carried out in advance, so that the capacity expansion of the multi-tenant service is realized. Therefore, by expanding the multi-live service, sufficient resources can be provided for the service conveniently, and the service is ensured to have stable SLA;
(5) After determining the access characteristic information of the service, the multi-tenant service can also feed back the access characteristic information to the tenant (namely, a service party), and can also provide an improvement suggestion and the like for the service, so that a user can adjust the requirement of the service, and the SLA of the service is further prevented from being influenced by the hot spot of the service;
(6) In the embodiment of the application, the whole process of allocating the service to the matched group and monitoring the resource utilization rate in the group is a full-automatic process, and the whole process has the advantages of real-time grouping and predictability of the resource utilization rate, so that compared with manual grouping, the method is more efficient and real-time, and can effectively solve the problem of interference between services.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making creative efforts shall fall within the protection scope of the present application.
The multi-tenant service described in the embodiment of the present application may be a distributed cloud service or a distributed database, where the distributed database may specifically be an NOSQL (Not Only SQL (Structured Query Language)) database, that is, a non-relational database. For convenience of understanding, the embodiments of the present application may be described by taking a multitenant service as a distributed NOSQL database as an example.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for grouping services based on a multi-tenant service according to an embodiment of the present application. The embodiment of the present application takes a multi-tenant service as a multi-tenant based distributed database (hereinafter referred to as a database) and groups a first service, where the first service belongs to a tenant (may be regarded as a user). The grouping method is as follows.
S102: access characteristic information of the first service is determined.
In S102, after determining the first service of the user, the database may determine access characteristic information of the first service.
The access characteristic information may characterize a service attribute of the first service, and the access characteristic information may be used to determine a packet matching the first service.
In an embodiment of the present application, the access characteristic information may specifically include at least one of the following: the service type of the first service, the resource required by the first service, the query rate QPS, the delay, the access amount, whether the access performance of the first service among the partitions is stable or not and the peak time period; a peak duration; CPU utilization rate, memory utilization rate and disk utilization rate.
The service type of the first service may include: off-line service, on-line service, and combined off-line and on-line service; the resource required by the first service can be understood as the minimum resource capable of providing service for the first service; the delay may be a delay in a unit time or an average delay in a set time period when the first service accesses the database.
It should be understood that the above-mentioned access characteristic information is only a preferred embodiment of the present application, and in other implementations, the access characteristic information may further include other information, which may be specifically determined according to the actual first service, and is not illustrated here.
In the embodiment of the present application, when determining the access characteristic information of the first service, the database may be determined and obtained by at least one of the following methods:
the first method comprises the following steps: providing service for the first service by using the resource corresponding to the default grouping; and acquiring access data of the first service, and determining access characteristic information of the first service according to the access data.
The second method comprises the following steps: determining access characteristic information of the first service provided by the tenant.
For the first method described above:
after receiving the first service of the user, the database may provide a service for the first service by using a resource corresponding to a default packet in the database when providing the service for the first service. The default grouping may be understood as an initial grouping of resources in the database, all resources in the database may belong to the default grouping before no service is isolated by the grouping, and after the service is isolated by the grouping, other resources except the resources isolated by the grouping may belong to the default grouping. In practical applications, each multi-tenant based database may contain default groupings.
In the process of providing a service for the first service by using the resource corresponding to the default packet, access data of the first service may be observed and collected, where the access data may be understood as detailed access information of the first service, and the access data may be used to determine to obtain the access characteristic information.
When acquiring the access data of the first service, an acquisition period may be set, where the acquisition period may be a day, a week, or the like, and may be determined specifically according to an actual situation, and is not specifically limited herein. The access data may be access data in one acquisition cycle, or average access data corresponding to multiple acquisition cycles.
After the access data is acquired, the access data can be subjected to processing such as summary analysis, and finally the access characteristic information can be determined.
In this embodiment of the application, the access characteristic information determined and obtained according to the access data may include: the service type of the first service, the resource required by the first service, the query rate QPS, the delay, the access amount, whether the access performance of the first service between the partitions is stable, at least one of a peak time period, a peak duration, a CPU usage rate, a memory usage rate, and a disk usage rate.
For the second method described above:
the database may provide a platform for interacting with different users (i.e., tenants), which may be considered a console. In the embodiment of the application, a user can create an instance of the first service in the console, and when the instance is created, the user can provide access characteristic information of the first service through the console according to the known service requirement of the first service.
In this embodiment, the access characteristic information provided by the user may include: at least one of a traffic type of the first traffic, a resource required for the first traffic, an amount of access, a peak time period, and a peak duration.
In practical applications, the access characteristic information may be determined and obtained based on any one or two of the above methods, and specifically, which method is to be selected may be determined according to practical situations, which is not specifically limited herein.
Preferably, in consideration of the fact that in practical applications, the access characteristic information provided by the user may be inaccurate, and the access characteristic information determined according to the access data may also be incomplete, the access characteristic information may be determined by using the above two methods, that is, the access characteristic information determined according to the access data and the access characteristic information provided by the user are combined to obtain final access characteristic information. Therefore, the accuracy of the access characteristic information is high, and when the grouping matched with the first service is determined according to the access characteristic information subsequently, the accuracy of the grouping obtained through matching can be improved.
In an embodiment of the present application, if the access characteristic information of the first service is determined by the first method described above, after the access characteristic information is determined, the access characteristic information may be fed back to the user through the console described above, so that the user may adjust the service requirement of the first service.
Preferably, before feeding back the access characteristic information to the user, it may first be determined whether the access characteristic information provided by the user is consistent with the access characteristic information determined from the access data of the first service (since the access characteristic information provided by the user may be erroneous).
If the access characteristic information is inconsistent with the service requirement of the first service, the access characteristic information can be fed back to the user, and meanwhile, some improved suggestions and the like can be fed back to the user, so that the user can adjust the service requirement of the first service according to the fed-back access characteristic information and the improved suggestions. If the access characteristic information is consistent with the access characteristic information, the user can be selected to be fed back, and the user can also be selected not to be fed back with the access characteristic information.
For example, after determining the access characteristic information according to the access data of the first service, if it is found that the first service has an access hotspot according to the access characteristic information, and the duration of the hotspot is longer and is different from the access characteristic information provided by the user, the access characteristic information determined according to the access data and a suggestion for adjusting the service requirement of the first service may be fed back to the user, so that the user may adjust the service requirement of the first service based on the fed-back suggestion, thereby preventing the first service from affecting the SLA of the service due to the hotspot itself.
In S102, after determining the access characteristic information of the first service, S104 may be performed.
S104: and determining a first group matched with the first service according to the access characteristic information.
After determining the access characteristic information of the first service, a first packet matching the first service may be determined, and the first packet may correspond to a first resource in a database in S104. Wherein the "first" in the first group and the "first" in the first resource are used only for distinguishing from other groups and resources, and have no other special meaning.
In this embodiment of the present application, when determining the first packet matching the first service, if the resources in the database are not isolated by the packet (that is, the database in the initial state does not include the isolated packet, and all the resources in the database belong to a default packet), determining that the first packet matching the first service may be to create a packet for the first service according to the access characteristic information, where the packet may correspond to the first resource in the database, and the first resource may provide a service for the first service, where the packet is the first packet.
When creating a group for the first service, a part of resources can be selected from the resources of the default group as a group, wherein when selecting the resources, it is required to ensure that the selected resources can meet the service requirements of the first service, so that the first service can have a stable SLA, and in addition, it is also required to ensure that the resource utilization rate of the resources is not too high when the part of resources provides services for the first service, so as to ensure that the group has a reasonable resource utilization rate.
If the database contains the isolated at least one packet, determining a first packet matching the first service may include:
matching the access characteristic information with the grouping characteristic information of the existing grouping;
and if the matching is successful, determining the group corresponding to the group characteristic information matched with the access characteristic information as the first group.
Specifically, after isolating the resources in the database and obtaining one or more groups, the resource usage of each group may be analyzed to determine group feature information of each group, where the group feature information may be the same as the access feature information of the first service, and specifically, reference may be made to the description of the access feature information in S102, and a description thereof is not repeated here.
After the grouping feature information of each group is determined, that is, after a corresponding tag (tag) is determined for each group, a mapping relationship between the grouping feature information and the group can be established.
In this way, when the first packet matching the first service is determined, the access characteristic information of the first service may be matched with the packet characteristic information in the mapping relationship, and if the matching is successful, the packet corresponding to the packet characteristic information matching the access characteristic information of the first service may be determined, and the packet may be determined as the first packet matching the first service.
For example, when it is determined that the first service is an online service with low latency and few access hotspots according to the access characteristic information of the first service, if a packet of the online service with low latency and few access hotspots exists in an existing packet, the packet may be regarded as a first packet matching the first service.
When the access characteristic information of the first service is matched with the packet characteristic information in the mapping relationship, if the matching is not successful, it can be stated that the existing packet does not include a packet matched with the first service, and then:
in one implementation, a new packet may be created for the first service based on the access characteristic information of the first service, and the packet may be regarded as the first packet. For the method for creating a packet for the first service, reference may be made to the above-mentioned method for creating a packet for the first service when the database does not group resources. The description is not repeated here.
For example, when it is determined that the first service is an offline service with low latency and few access hotspots according to the access characteristic information, if the packet characteristic information of the existing packet corresponds to the online service, a new packet may be created for the first service based on the service characteristics of the offline service with low latency and few access hotspots of the first service, where the new packet is the first packet matched with the first service.
For another example, if the first service requires more resources and cannot share a packet with other services, a new packet may be created for the first service to isolate the first service from other services. Wherein the packet created for the first service is the first packet.
In another implementation, if the matching is not successful, the first service may be served by a resource corresponding to the default packet, that is, the default packet is used as the first packet.
In the process of providing services for the first service by using the resource corresponding to the default packet, the access characteristic information of the first service can be determined again, and the first packet matched with the first service is determined again based on the determined access characteristic information.
In S104, after determining the first packet matching the first service, S106 may be performed.
S106: allocating the first traffic into the first packet.
After determining a first packet matching the first service, the first service may be allocated to the first packet in S106. The following description will take the first packet as an existing packet as an example.
In the embodiment of the application, after the first service is allocated to the first group, the access index and the resource utilization rate of the first group including the first service can meet preset conditions. The access index may be an SLA (service level agreement), that is, an access error rate, a delay and other indexes, the resource utilization rate may be a utilization rate of a resource corresponding to a first group when the first group provides a service for a plurality of services including the first service, and the preset condition may be used to represent that a first resource corresponding to the first group may meet a service requirement of the first service.
The access index meeting the preset condition may be that the access index is not greater than a set index, the resource utilization rate of the first group meeting the preset condition may be that the resource utilization rate of the first group is not greater than a set threshold, and the set index and the set threshold may be determined according to an actual situation, which is not specifically limited herein.
After the first service is allocated to the first group, the first group can enable the access index and the resource utilization rate of the first group to meet the preset conditions in a load balancing mode, so that interference among different services in the group is avoided, and each service is guaranteed to have a stable SLA.
In an embodiment of the present application, in order to ensure that the resource usage rate of the first packet including the first service meets the preset condition, when the first service is allocated to the first packet, a resource may be further added to the first packet, and the added resource may be a resource required by the first service. In this way, since the resource required by the first packet is added to the first packet while the first service is allocated to the first packet, it can be ensured that the resource usage rate of the first packet can satisfy the preset condition after the first service is allocated to the first packet. Wherein the resources added in the first packet may be from a default packet.
Based on the technical scheme provided by the embodiment of the application, the services with the matched access characteristic information can be distributed into one group by intelligently grouping the services, so that the interference between the services in the group can be avoided, and the interference between the services in different groups can also be avoided.
It should be noted that, because the service requirements of the online service and the offline service are greatly different, in order to avoid interference between services in a packet, when grouping the services, it is necessary to avoid that the online service and the offline service share one packet.
For example, online traffic with relatively smooth access and few hot spots may be assigned to one packet, offline traffic with significantly staggered traffic peaks may be assigned to one packet, and traffic with frequent access to hot spots may be assigned to one packet individually. Each group can correspond to different resources, so that the interference of services among different groups can be avoided due to different resources for providing services for the services in different groups.
It should be further noted that, after the first service is allocated to the first packet, the packet characteristic information of the first packet will change, and at this time, the changed packet characteristic information may be determined, so that when a packet is subsequently allocated to a new service, a packet matching the new service may be further determined according to the changed packet characteristic information and the access characteristic information of the new service.
In one embodiment of the present application, after the first service is allocated to the first packet matching therewith, the method further includes:
monitoring a first resource usage of the first packet;
when the first resource utilization rate is greater than a first preset threshold value, generating first prompt information so as to expand the first packet according to the first prompt information;
and when the first resource utilization rate is smaller than a second preset threshold value, releasing the set resource in the first group according to the first resource utilization rate.
Specifically, after the first service is allocated to the first packet, the resource utilization of the first packet may be monitored in real time, so as to determine the service condition of the first packet as the first service in real time. To facilitate differentiation from the resource usage of other packets, the resource usage of the first packet may be referred to herein as the resource usage of the first packet.
After the first resource usage of the first packet is obtained through monitoring, whether the first resource usage is too high may be determined. Specifically, the first resource utilization rate may be compared with a first preset threshold, and whether the first resource utilization rate is greater than the first preset threshold is determined, if yes, it may be said that the resource utilization rate in the first group is too high; if not, the first resource utilization rate can be determined to be more reasonable.
The first preset threshold may be determined according to an actual traffic type, for example, if the traffic in the first packet is an offline traffic, the first preset threshold may be higher, for example, between 40% and 60%, because the offline traffic has a smaller access amount during non-computation periods and is not particularly sensitive to delay, and the throughput is weighted; if the traffic in the first packet is online traffic, the first preset threshold may be lower, for example, between 20% and 40%, since online traffic is sensitive to delay. Of course, the specific size may be determined according to actual conditions, and is not specifically limited herein.
In an embodiment of the present application, when the first resource utilization is too high, the first prompt information may be generated, so that capacity expansion may be performed on the first packet according to the first prompt information, thereby reducing the resource utilization of the first packet.
The first prompt information may be a voice prompt, a text prompt, or the like, and is not limited in this respect.
In another embodiment of the present application, when the first resource usage is too high, the method may include:
re-determining access characteristic information of the first service;
determining a second packet matched with the first service according to the redetermined access characteristic information, wherein the second packet corresponds to a second resource;
and allocating the first service to the second packet, wherein the access index and the resource utilization rate of the second packet including the first service meet the preset conditions.
Specifically, when the first resource usage is too high, it may be indicated that the first service is not suitable for allocation into the first packet, and at this time, the first service may be moved out of the first packet and provided with a common service by a default packet.
When the first service is served by the default packet, the access characteristic information of the first service may be re-determined according to the access data of the first service. After the access characteristic information of the first service is re-determined, the packet matching the first service may be re-determined according to the above-described method based on the access characteristic information, where the second packet represents the re-determined packet of the first service.
The second packet may correspond to a second resource, and after determining the second packet, the first traffic may be allocated to the second packet and serviced by the second resource corresponding to the second packet. After the first service is allocated to the second packet, the access index and the resource utilization rate of the second packet including the first service may satisfy a preset condition, where the preset condition may be used to represent that the second resource corresponding to the second packet satisfies the service requirement of the first service.
Therefore, after the first service is allocated to the first packet, the service condition of the first service can be determined by monitoring the first resource utilization rate of the first packet, and if the first resource utilization rate is too high, the capacity of the first packet can be expanded, or the allocation packet can be re-determined for the first service. Therefore, the resources for providing services for different services in the first packet are ensured not to conflict with each other, and stable services are provided for the first service in real time.
For example, when it is determined that the number of access hot spots of the first service in the first packet is large or the resource usage rate is too high due to resource conflict with other services according to the access data, capacity expansion may be performed on the first packet, or it may be determined that the first service is not suitable for being allocated to the first packet, and a suitable packet is newly allocated to the first service.
In the embodiment of the application, after the first resource utilization rate is obtained through monitoring, whether the first resource utilization rate is too low can be further judged. Specifically, the first resource utilization rate may be compared with a second preset threshold, and whether the first resource utilization rate is smaller than the second preset threshold is determined, if yes, it may be stated that the first resource utilization rate is too low, and if not, it may be stated that the first resource utilization rate is more reasonable. The second preset threshold is smaller than the first preset threshold, and may be specifically determined according to an actual situation.
When it is determined that the first resource usage is too low, the set resource in the first packet may be selected to be released in order to increase the resource usage. The set resource may be determined according to the first resource usage rate, and is not particularly limited herein. When the provisioning resources are released, the provisioning resources may be released into a default packet.
In the embodiment of the application, for the existing packets in the database, the resource utilization rate can be monitored according to the method described above, and once the resource utilization rate is found to be too high, the packets can be expanded or a certain service in the packets can be moved out of the packets and matched packets can be determined for the moved packets again; once the resource utilization rate is found to be too low, the resources in the packet can be released to ensure that the service in the packet has a stable SLA and reasonable resource utilization rate.
In the embodiment of the application, besides monitoring the resource utilization rate of the existing group in the database, the resource utilization rate of the database can be monitored. In particular, resource usage of resources of a default grouping in the database may be monitored. To facilitate differentiation from the resource usage of the packet, the resource usage of the default packet may be made by the second resource usage.
After the second resource usage rate of the default packet is monitored, whether the second resource usage rate is too high may be determined, specifically, the second resource usage rate may be compared with a third preset threshold, and whether the second resource usage rate is greater than the third preset threshold may be determined.
When the second resource utilization rate is too high, second prompt information can be generated, so that capacity expansion can be performed on the default grouped resources according to the second prompt information, namely capacity expansion can be performed on the database. Therefore, the database can provide more stable service for a plurality of services, and resource conflict is avoided.
The third preset threshold may be determined according to actual conditions, and the second prompt information may be a voice prompt or a text prompt, which is not specifically limited herein.
In this embodiment of the present application, the default grouping may play a role in resource buffering for the database, specifically: when a new service needs to be allocated to a group, the service can be provided by using the resource in the default group, the access characteristic information of the service is determined, and then the group is created for the service according to the access characteristic information. When creating a packet, the resources within the packet come from a default packet.
When other packets need to be created, the resources of the other packets are also from the default packet. The default packet will always exist in the database. When the resource utilization rate of other groups is too high, the capacity of other groups can be expanded by using the resources in the default group, and when the resource utilization rate of other groups is too low, partial resources of other groups can be released to the default group.
When the resource utilization rate of the default grouping is too high, the capacity expansion of the database can be realized by performing capacity expansion on the default grouping.
It should be noted that, because the packet expansion can be completed within the minute level, the time spent on expanding the database is long, and purchasing and moving may be involved, and the like, the expansion of the database needs to be predicted in advance, that is, whether the expansion of the database needs to be performed may be predicted according to the second resource usage rate of the default packet.
According to the technical scheme provided by the embodiment of the application, when the service is provided, the service can be intelligently distributed to the matched groups by determining the access characteristic information of the service, and then the service is provided by the resources corresponding to the matched groups. Therefore, by intelligently grouping the services, the interference of the services among different groups can be avoided; in the same group, because the access index and the resource utilization rate of the group can meet the service requirement of the service, stable service can be provided for the service, and the service quality of the service is improved. The whole process of the embodiment of the application is automatic, and the high efficiency and the real-time performance of grouping the services can be ensured.
In addition, after the service is distributed to the matched groups, the resource utilization rate in the groups can be monitored, when the resource utilization rate in the groups is higher, the groups can be expanded or a certain service in the groups can be grouped again, when the resource utilization rate in the groups is higher, the resources in the groups can be released, and therefore the service in the groups can be ensured to have stable SLA and reasonable resource utilization rate; the resource utilization rate of the default grouping can be monitored, and when the resource utilization rate of the default grouping is high, the capacity expansion of the resource of the default grouping can be performed in advance, so that sufficient resources can be provided for services, and the services are guaranteed to have stable SLAs.
In the embodiment of the application, the whole process of allocating the service to the matched group and monitoring the resource utilization rate in the group is a full-automatic process, and the whole process has the advantages of real-time grouping and predictability of the resource utilization rate, so that compared with manual grouping, the method is more efficient and real-time, and can effectively solve the problem of interference between services.
To facilitate understanding of the whole technical solution, see fig. 2. Fig. 2 is a flowchart illustrating a service grouping method based on a multi-tenant service according to an embodiment of the present application. Fig. 2 illustrates an example of a multi-tenant based database. The method is as follows.
S201: determining access characteristic information of a first service provided by a user.
The multi-tenant database may provide a console as an interactive platform with users (tenants) in which the users may create instances of the first service and provide access characteristic information for the first service.
The user-provided access characteristic information may include at least one of: a service type of the first service; a resource required by the first service; a visit amount; a peak time period; the peak duration.
S202: the first traffic is assigned to a default packet.
The default grouping may be understood as a grouping of resources in the database except for the resources isolated by the grouping. The purpose of assigning the first service to the default packet is to determine access characteristic information of the service in order to assign the first service to the matching existing packet.
S203: and acquiring access data of the first service, and determining access characteristic information of the first service according to the access data.
When the default packet provides a service for the first service, the access data of the first service may be observed and collected, and the access characteristic information of the first service is determined according to the access data, where the access characteristic information is the same as the access characteristic information described in S201.
S204: and determining a first group matched with the first service according to the access characteristic information.
The access characteristic information in S204 may be a combination of the access characteristic information provided by the user in S201 and the access characteristic information determined by the collected access data in S203. The first service corresponds to a first resource in a database.
When determining the first packet matching the first service, the specific implementation method may refer to the contents described in the embodiment shown in fig. 1, and a description thereof is not repeated here.
S205: allocating the first traffic into the first packet.
The access index and the resource utilization rate of the first packet including the first service meet preset conditions, and the preset conditions are used for representing that the first resource corresponding to the first packet meets the service requirement of the first service.
When the first service is allocated to the first packet, the resource required by the first service may be further added to the first packet, so as to ensure that the resource usage rate of the first packet may meet the preset condition. After the first service is allocated to the first packet, the first service may be served by resources in the first packet.
S206: a first resource usage of the first packet is determined.
S207: and judging whether the first resource utilization rate is greater than a first threshold value.
The first threshold may be equal to the first preset threshold described above. If the first resource utilization rate is greater than the first threshold, it may be determined that the first resource utilization rate is too high, and at this time, S208 may be performed; otherwise, S206 may be executed, i.e., the monitoring of the first resource usage is continued.
S208: and generating first prompt information so as to expand the first packet according to the first prompt information.
S209: and determining a second resource utilization rate of the resource corresponding to the default grouping.
S210: and judging whether the second resource utilization rate is greater than a second threshold value.
The second threshold value may be equal to the third preset threshold value described above. If the second resource usage rate is greater than the second threshold, it may be indicated that the second resource usage rate is too high, and at this time, S211 may be executed; otherwise, S209 may be executed, i.e., the monitoring of the second resource usage is continued.
S211: and generating second prompt information so as to expand the default grouping according to the second prompt information.
It should be noted that the access characteristic information in S204 may also be the access characteristic information provided by the user in S201, that is, the first service is directly grouped according to the access characteristic information provided by the user, or may also be the access characteristic information determined by the acquired access data in S203, that is, the first service is grouped only according to the actually observed access characteristic information.
In S203, after the access characteristic information is acquired, feedback may also be performed to the user, so that the user can adjust the service requirement of the first service.
S206 and S209 may be executed simultaneously, that is, while monitoring the resource usage of the first packet, the resource usage of the default packet may also be monitored.
In S207, if the first resource utilization is greater than the first threshold, the first packet may be further shifted out of the first packet, and a packet matching the first packet is determined again.
In addition, after the first resource utilization rate is determined, whether the first resource utilization rate is too low can be judged, if the first resource utilization rate is too low, a part of resources in the first grouping can be released to the default grouping, and therefore the utilization rate of the resources in the first grouping is improved.
In the embodiment shown in fig. 2, when providing services for services, services are allocated to matched packets, and then resources corresponding to the packets provide services for the services, so that interference of services between different packets can be avoided; in the same group, the resource utilization rate in the group is monitored, so that the interference between different services in the same group can be avoided, stable service is guaranteed to be provided for the different services, and the service quality of the services is improved.
In addition, the resource utilization rate of the first packet and the resource utilization rate of the default packet are monitored, and a prompt is generated when the resource utilization rate is high, so that the capacity expansion of the first packet and the default packet is facilitated, and therefore the service can be guaranteed to have stable SLA and reasonable resource utilization rate. The whole process is automatic, and is more efficient and real-time compared with manual grouping.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 3, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a Random-access memory (RAM), and may further include a non-volatile memory, such as at least 1 disk memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 3, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads a corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a service grouping device based on the multi-tenant service on a logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
determining access characteristic information of a first service, wherein the first service belongs to a tenant;
determining a first packet matched with the first service according to the access characteristic information, wherein the first packet corresponds to a first resource;
and allocating the first service to the first packet, wherein the access index and the resource utilization rate of the first packet including the first service meet preset conditions, and the preset conditions are used for representing that the first resource corresponding to the first packet meets the service requirement of the first service.
The method executed by the traffic grouping device based on the multi-tenant service according to the embodiment shown in fig. 3 of the present application can be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and combines hardware thereof to complete the steps of the method.
The electronic device may further execute the method in fig. 1, and implement the functions of the service grouping apparatus based on the multi-tenant service in the embodiment shown in fig. 1, which is not described herein again in this embodiment of the present application.
Of course, besides the software implementation, the electronic device of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Embodiments of the present application further propose a computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a portable electronic device comprising a plurality of application programs, enable the portable electronic device to perform the method of the embodiment shown in fig. 1, and in particular to perform the following operations:
determining access characteristic information of a first service, wherein the first service belongs to a tenant;
determining a first group matched with the first service according to the access characteristic information, wherein the first group corresponds to a first resource;
and allocating the first service to the first packet, wherein the access index and the resource utilization rate of the first packet including the first service meet preset conditions, and the preset conditions are used for representing that the first resource corresponding to the first packet meets the service requirement of the first service.
Fig. 4 is a schematic structural diagram of a traffic grouping apparatus 40 based on a multi-tenant service according to an embodiment of the present application. Referring to fig. 4, in a software implementation, the grouping unit 40 may include: a first determining unit 41, a second determining unit 42 and an assigning unit 43, wherein:
a first determining unit 41, configured to determine access characteristic information of a first service, where the first service belongs to a tenant;
a second determining unit 42, configured to determine, according to the access characteristic information, a first packet matched with the first service, where the first packet corresponds to a first resource;
the allocating unit 43 allocates the first service to the first packet, where an access index and a resource utilization rate of the first packet including the first service meet preset conditions, where the preset conditions are used to represent that the first resource corresponding to the first packet meets a service requirement of the first service.
Optionally, the first determining unit 41 determines the access characteristic information of the first service, where the access characteristic information includes at least one of:
providing service for the first service by using the resource corresponding to the default grouping; acquiring access data of the first service, and determining access characteristic information of the first service according to the access data;
determining access characteristic information of the first service provided by the tenant.
Optionally, the traffic grouping apparatus 40 based on the multi-tenant service may further include a sending apparatus 44, where:
the sending device 44, after the first determining unit 41 determines the access characteristic information of the first service according to the access data, feeds back the access characteristic information determined according to the access data to the tenant.
Optionally, the access characteristic information includes at least one of:
the service type of the first service, the resource required by the first service, the query rate QPS, the delay, the access amount, whether the access performance of the first service between the partitions is stable, the peak time period, the peak duration, the CPU utilization rate, the memory utilization rate, and the disk utilization rate.
Optionally, the determining, by the second determining unit 42, a first packet matching the first service according to the access characteristic information includes:
matching the access characteristic information with the grouping characteristic information of the existing grouping;
and if the matching is successful, determining the group corresponding to the group characteristic information matched with the access characteristic information as the first group.
Optionally, when the access characteristic information is matched with the packet characteristic information of the existing packet, if the matching is not successful, the second determining unit 42:
creating the first packet for the first service according to the access characteristic information; or the like, or a combination thereof,
and taking a group formed by the resources which are not grouped as the first group.
Optionally, the traffic grouping apparatus 40 based on the multi-tenant service may further include: a monitoring device 45, wherein:
the monitoring unit 45, after the allocating unit 43 allocates the first service to the first packet, monitors a first resource usage rate of the first packet;
when the first resource utilization rate is greater than a first preset threshold value, generating first prompt information so as to expand the first packet according to the first prompt information;
and when the first resource utilization rate is smaller than a second preset threshold value, releasing the set resource in the first group according to the first resource utilization rate.
Optionally, the monitoring unit 45 is further configured to monitor a second resource usage rate of the resource corresponding to the default packet;
and when the utilization rate of the second resource is greater than a third preset threshold, generating second prompt information so as to expand the non-grouped resources according to the second prompt information.
Optionally, when the monitoring unit 45 determines that the first resource usage rate is greater than a first preset threshold, the first determining unit 41 determines access characteristic information of the first service again;
the second determining unit 42 determines a second packet matching the first service according to the access characteristic information determined again, where the second packet corresponds to a second resource;
the allocating unit 43 allocates the first service to the second packet, where the access index and the resource utilization of the second packet including the first service satisfy the preset condition.
Optionally, the grouping means 40 is applied to a distributed non-relational NOSQL database.
The service grouping device 40 based on the multi-tenant service can also execute the method shown in fig. 1, and implement the functions of the service grouping device based on the multi-tenant service in the embodiment shown in fig. 1, which is not described herein again in this embodiment of the present application.
In short, the above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
The systems, apparatuses, modules or units described in the above embodiments may be specifically implemented by a computer chip or an entity, or implemented by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or apparatus comprising the element.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the system embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.

Claims (11)

1. A business grouping method based on multi-tenant service comprises the following steps:
determining access characteristic information of a first service, wherein the first service belongs to a tenant;
determining a first packet matched with the first service according to the access characteristic information, wherein the first packet corresponds to a first resource;
allocating the first service to the first packet, where an access index and a resource utilization rate of the first packet including the first service satisfy preset conditions, where the preset conditions are used to characterize that the first resource corresponding to the first packet satisfies a service requirement of the first service, and resources providing services for services in different packets are different, and the resource utilization rate of the first packet is a utilization rate of the resource corresponding to the first packet when the first packet provides services for multiple services;
wherein, the determining the access characteristic information of the first service includes:
acquiring access data of the first service, and determining access characteristic information of the first service according to the access data, wherein the access characteristic information comprises a service type of the first service, and the service type comprises an offline service and an online service;
after allocating the first traffic into the first packet, the method further comprises:
monitoring a first resource usage of the first packet;
when the first resource utilization rate is greater than a first preset threshold value, re-determining the access characteristic information of the first service;
determining a second packet matched with the first service according to the redetermined access characteristic information, wherein the second packet corresponds to a second resource;
and allocating the first service to the second packet, wherein the access index and the resource utilization rate of the second packet including the first service meet the preset conditions.
2. The method of claim 1, after determining access characteristic information of the first service based on the access data, the method further comprising:
and feeding back the access characteristic information determined according to the access data to the tenant.
3. The method of any of claims 1 to 2, the access characteristic information further comprising at least one of:
the resource required by the first service, query rate QPS, delay, access amount, whether the access performance of the first service among all partitions is stable, peak time period, peak duration, CPU utilization rate, memory utilization rate and disk utilization rate.
4. The method of claim 1, determining a first packet matching the first service based on the access characteristic information, comprising:
matching the access characteristic information with the grouping characteristic information of the existing grouping;
and if the matching is successful, determining the group corresponding to the group characteristic information matched with the access characteristic information as the first group.
5. The method of claim 4, further comprising:
when the access characteristic information is matched with the grouping characteristic information of the existing grouping, if the matching is not successful, the following steps are carried out:
creating the first group for the first service according to the access characteristic information; or the like, or, alternatively,
and taking a group formed by the resources which are not grouped as the first group.
6. The method of claim 1, further comprising:
when the first resource utilization rate is greater than a first preset threshold value, generating first prompt information so as to expand the first packet according to the first prompt information;
and when the first resource utilization rate is smaller than a second preset threshold value, releasing the set resources in the first group according to the first resource utilization rate.
7. The method of claim 6, further comprising:
monitoring a second resource utilization rate of the resource corresponding to the default grouping;
and when the second resource utilization rate is greater than a third preset threshold value, generating second prompt information so as to expand the default grouped resources according to the second prompt information.
8. The method of claim 1, wherein the first and second light sources are selected from the group consisting of a red light source, a green light source, and a blue light source,
the method is applied to a distributed non-relational NOSQL database.
9. A traffic grouping apparatus based on a multi-tenant service, comprising:
the first determining unit is used for determining the access characteristic information of a first service, wherein the first service belongs to a tenant;
a second determining unit, configured to determine, according to the access characteristic information, a first packet matching the first service, where the first packet corresponds to a first resource;
the allocation unit is configured to allocate the first service to the first packet, where an access index and a resource utilization rate of the first packet including the first service meet preset conditions, where the preset conditions are used to represent that the first resource corresponding to the first packet meets a service requirement of the first service, and resources providing services for services in different packets are different, and the resource utilization rate of the first packet is a utilization rate of the resource corresponding to the first packet when the first packet provides services for multiple services;
wherein, the determining the access characteristic information of the first service by the first determining unit includes:
acquiring access data of the first service, and determining access characteristic information of the first service according to the access data, wherein the access characteristic information comprises a service type of the first service, and the service type comprises an offline service and an online service;
the monitoring unit is used for monitoring the first resource utilization rate of the first grouping after the first service is distributed to the first grouping by the distributing unit;
the first determining unit is used for re-determining the access characteristic information of the first service when the first resource utilization rate is greater than a first preset threshold value;
the second determining unit determines a second packet matched with the first service according to the redetermined access characteristic information, wherein the second packet corresponds to a second resource;
the allocation unit allocates the first service to the second packet, wherein the access index and the resource utilization rate of the second packet including the first service meet the preset conditions.
10. An electronic device, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
determining access characteristic information of a first service, wherein the first service belongs to a tenant;
determining a first group matched with the first service according to the access characteristic information, wherein the first group corresponds to a first resource;
allocating the first service to the first group, wherein an access index and a resource utilization rate of the first group including the first service meet preset conditions, the preset conditions are used for representing that the first resource corresponding to the first group meets service requirements of the first service, and resources providing services for services in different groups are different, and the resource utilization rate of the first group is the utilization rate of the resource corresponding to the first group when the first group provides services for a plurality of services;
wherein, the determining the access characteristic information of the first service comprises:
acquiring access data of the first service, and determining access characteristic information of the first service according to the access data, wherein the access characteristic information comprises a service type of the first service, and the service type comprises an offline service and an online service;
after allocating the first traffic into the first packet, the method further comprises:
monitoring a first resource usage of the first packet;
when the first resource utilization rate is greater than a first preset threshold value, re-determining the access characteristic information of the first service;
determining a second packet matched with the first service according to the access characteristic information which is determined again, wherein the second packet corresponds to a second resource;
and allocating the first service to the second packet, wherein the access index and the resource utilization rate of the second packet including the first service meet the preset conditions.
11. A computer readable storage medium storing one or more programs which, when executed by an electronic device including a plurality of application programs, cause the electronic device to perform a method of:
determining access characteristic information of a first service, wherein the first service belongs to a tenant;
determining a first group matched with the first service according to the access characteristic information, wherein the first group corresponds to a first resource;
allocating the first service to the first group, wherein an access index and a resource utilization rate of the first group including the first service meet preset conditions, the preset conditions are used for representing that the first resource corresponding to the first group meets service requirements of the first service, and resources providing services for services in different groups are different, and the resource utilization rate of the first group is the utilization rate of the resource corresponding to the first group when the first group provides services for a plurality of services;
wherein, the determining the access characteristic information of the first service includes:
acquiring access data of the first service, and determining access characteristic information of the first service according to the access data, wherein the access characteristic information comprises a service type of the first service, and the service type comprises an offline service and an online service;
after allocating the first traffic into the first packet, the method further comprises:
monitoring a first resource usage of the first packet;
when the first resource utilization rate is greater than a first preset threshold value, re-determining the access characteristic information of the first service;
determining a second packet matched with the first service according to the access characteristic information which is determined again, wherein the second packet corresponds to a second resource;
and allocating the first service to the second packet, wherein the access index and the resource utilization rate of the second packet including the first service meet the preset conditions.
CN201810998110.XA 2018-08-29 2018-08-29 Service grouping method and device based on multi-tenant service Active CN110875934B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810998110.XA CN110875934B (en) 2018-08-29 2018-08-29 Service grouping method and device based on multi-tenant service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810998110.XA CN110875934B (en) 2018-08-29 2018-08-29 Service grouping method and device based on multi-tenant service

Publications (2)

Publication Number Publication Date
CN110875934A CN110875934A (en) 2020-03-10
CN110875934B true CN110875934B (en) 2023-01-31

Family

ID=69714838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810998110.XA Active CN110875934B (en) 2018-08-29 2018-08-29 Service grouping method and device based on multi-tenant service

Country Status (1)

Country Link
CN (1) CN110875934B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103399942A (en) * 2013-08-14 2013-11-20 山大地纬软件股份有限公司 Data engine system supporting SaaS multi-tenant function and working method of data engine system
CN103970607A (en) * 2013-01-28 2014-08-06 国际商业机器公司 Computing Optimized Virtual Machine Allocations Using Equivalence Combinations
CN104142864A (en) * 2014-08-07 2014-11-12 浪潮电子信息产业股份有限公司 Multi-tenant performance isolation framework based on virtualization technology
CN105323282A (en) * 2014-07-28 2016-02-10 神州数码信息系统有限公司 Enterprise application deployment and management system for multiple tenants
CN106385329A (en) * 2016-08-31 2017-02-08 华为数字技术(成都)有限公司 Processing method and device of resource pool and equipment
CN106484540A (en) * 2016-10-20 2017-03-08 腾讯科技(深圳)有限公司 A kind of resource allocation method and device
CN107133243A (en) * 2016-02-29 2017-09-05 华为技术有限公司 A kind of data processing method and server
CN107688492A (en) * 2016-08-05 2018-02-13 阿里巴巴集团控股有限公司 Control method, device and the cluster resource management system of resource
CN108259422A (en) * 2016-12-29 2018-07-06 中兴通讯股份有限公司 A kind of multi-tenant access control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8539078B2 (en) * 2010-07-08 2013-09-17 International Business Machines Corporation Isolating resources between tenants in a software-as-a-service system using the estimated costs of service requests

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970607A (en) * 2013-01-28 2014-08-06 国际商业机器公司 Computing Optimized Virtual Machine Allocations Using Equivalence Combinations
CN103399942A (en) * 2013-08-14 2013-11-20 山大地纬软件股份有限公司 Data engine system supporting SaaS multi-tenant function and working method of data engine system
CN105323282A (en) * 2014-07-28 2016-02-10 神州数码信息系统有限公司 Enterprise application deployment and management system for multiple tenants
CN104142864A (en) * 2014-08-07 2014-11-12 浪潮电子信息产业股份有限公司 Multi-tenant performance isolation framework based on virtualization technology
CN107133243A (en) * 2016-02-29 2017-09-05 华为技术有限公司 A kind of data processing method and server
CN107688492A (en) * 2016-08-05 2018-02-13 阿里巴巴集团控股有限公司 Control method, device and the cluster resource management system of resource
CN106385329A (en) * 2016-08-31 2017-02-08 华为数字技术(成都)有限公司 Processing method and device of resource pool and equipment
CN106484540A (en) * 2016-10-20 2017-03-08 腾讯科技(深圳)有限公司 A kind of resource allocation method and device
CN108259422A (en) * 2016-12-29 2018-07-06 中兴通讯股份有限公司 A kind of multi-tenant access control method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DGS/NFV-SWA001.GROUP SPECIFICATION Network Functions Virtualisation (NFV) *
Virtual Network Functions Architecture Disclaimer This document has been produced and approved by the Network Functions Virtualisation (NFV) ETSI Industry Specification Group (ISG) and represents the views of those members who participated in this ISG. It does not necessarily represent the views of the entire ETSI membership..《ETSI GS NFV-SWA 001》.2014, *
面向多租户的门户资源管理框架;高蕾等;《计算机工程与设计》;20120816(第08期);全文 *

Also Published As

Publication number Publication date
CN110875934A (en) 2020-03-10

Similar Documents

Publication Publication Date Title
JP7127010B2 (en) Resource allocation methods, apparatus, electronic equipment, computer readable media and computer programs
TWI743458B (en) Method, device and system for parallel execution of blockchain transactions
CN107450979B (en) Block chain consensus method and device
CN107241281B (en) Data processing method and device
WO2017016423A1 (en) Real-time new data update method and device
US8843632B2 (en) Allocation of resources between web services in a composite service
US20180227139A1 (en) Method of Terminal-Based Conference Load-Balancing, and Device and System Utilizing Same
US9485193B2 (en) Method and apparatus for allocating network medium data resources
CN108845876B (en) Service distribution method and device
CN111786984B (en) Pod communication connection method and device, electronic equipment and storage medium
CN110046187B (en) Data processing system, method and device
CN110633900A (en) Virtual resource allocation method and device and electronic equipment
CN108241535B (en) Resource management method and device and server equipment
WO2022110796A1 (en) Cloud service request responding method and apparatus, electronic device, and storage medium
CN107391541B (en) Real-time data merging method and device
CN110875934B (en) Service grouping method and device based on multi-tenant service
TWI706343B (en) Sample playback data access method, device and computer equipment
CN111539606A (en) Service processing method, device and equipment
CN112600765B (en) Method and device for scheduling configuration resources
CN109117423B (en) Table partition configuration method, device and system of database system
WO2017133421A1 (en) Method and device for sharing resources among multiple tenants
CN111427682B (en) Task allocation method, system, device and equipment
CN114153594A (en) Content distribution network preheating method, system, electronic equipment and storage medium
CN110147944B (en) Ranking method and device
CN109412973B (en) Audio processing method and device and storage medium

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