CN113971088A - Reservation method, reservation device, electronic equipment, storage medium and reservation system - Google Patents

Reservation method, reservation device, electronic equipment, storage medium and reservation system Download PDF

Info

Publication number
CN113971088A
CN113971088A CN202010722377.3A CN202010722377A CN113971088A CN 113971088 A CN113971088 A CN 113971088A CN 202010722377 A CN202010722377 A CN 202010722377A CN 113971088 A CN113971088 A CN 113971088A
Authority
CN
China
Prior art keywords
reservation
server
user
time period
reserved
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010722377.3A
Other languages
Chinese (zh)
Inventor
刘鸿
张卓豫
张绍文
许声红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202010722377.3A priority Critical patent/CN113971088A/en
Publication of CN113971088A publication Critical patent/CN113971088A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a reservation method, a reservation device, electronic equipment, a storage medium and a reservation system, wherein the reservation method is applied to a server management system and comprises the following steps: receiving a resource query request of a reservation user; returning server resource information to the reservation user based on the resource query request; receiving a reservation request of the reservation user; judging whether the reservation server is in an un-reserved state in the reserved time period; and when the reservation server is in an unreserved state in the reservation time period, distributing the use authority of the reservation server in the reservation time period to the reservation user. Therefore, self-service reservation and on-line reservation of the server can be realized, the utilization rate of the server is improved, and waste of server resources in the manual distribution process is avoided.

Description

Reservation method, reservation device, electronic equipment, storage medium and reservation system
Technical Field
The present application relates to the field of server management technologies, and in particular, to a reservation method, an apparatus, an electronic device, a storage medium, and a system.
Background
An Intelligent Platform Management Interface (IPMI) is an industrial standard adopted by peripheral devices in an enterprise system based on an internet architecture, and the standard is commonly established by companies such as intel, hewlett-packard, japan electrical, american dell computer, and american ultra micro computer. The user may monitor the physical state of the server, such as power supply, voltage, temperature, etc., using IPMI. However, under the condition that the server resources are limited, how to reasonably allocate the server resources and how to maximally utilize the server for development or test use to achieve efficient utilization of the server become problems that need to be considered currently by those skilled in the art.
Disclosure of Invention
The present application mainly aims to provide a reservation method, device, electronic device, storage medium and system, which can implement time-sharing of a server and achieve maximum utilization of server resources.
In order to achieve the purpose, the technical scheme of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a reservation method, which is applied to a server management system, and the method includes:
receiving a resource query request of a reservation user;
returning server resource information to the reservation user based on the resource query request; the server resource information indicates resource information of all servers in the server management system or indicates resource information of servers meeting the resource query request in the server management system;
receiving a reservation request of the reservation user; the reservation request is used for indicating a reservation server and a reservation time period selected by the reservation user according to the server resource information;
judging whether the reservation server is in an un-reserved state in the reserved time period;
and when the reservation server is in an unreserved state in the reservation time period, distributing the use authority of the reservation server in the reservation time period to the reservation user.
In a second aspect, an embodiment of the present application provides a reservation apparatus applied to a server management system, where the reservation apparatus includes an inquiry unit, a return unit, a receiving unit, a judgment unit, and a reservation unit; wherein the content of the first and second substances,
the query unit is configured to receive a resource query request of a reservation user;
a return unit configured to return server resource information to the reservation user based on the resource query request; the server resource information indicates resource information of all servers in the server management system or indicates resource information of servers meeting the resource query request in the server management system;
a receiving unit configured to receive a reservation request of the reservation user; the reservation request is used for indicating a reservation server and a reservation time period selected by the reservation user according to the server resource information;
a determination unit configured to determine whether the reservation server is in an unreserved state within the reservation period;
a reservation unit configured to assign a usage right of the reservation server to the reservation user within the reservation period when the reservation server is in an unreserved state within the reservation period.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor; wherein the content of the first and second substances,
the memory for storing a computer program operable on the processor;
the processor is adapted to perform the steps of the method as described in the first aspect when running the computer program.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a reservation program, which when executed by at least one processor implements the steps of the method as described in the first aspect.
In a fifth aspect, an embodiment of the present application provides a server management system, which includes at least a reservation server and a reservation apparatus according to the second aspect.
The embodiment of the application provides a reservation method, a reservation device, electronic equipment, a storage medium and a reservation system, wherein the reservation method is applied to a server management system and comprises the following steps: receiving a resource query request of a reservation user; returning server resource information to the reservation user based on the resource query request; the server resource information indicates resource information of all servers in the server management system or indicates resource information of servers meeting the resource query request in the server management system; receiving a reservation request of the reservation user; the reservation request is used for indicating a reservation server and a reservation time period selected by the reservation user according to the server resource information; judging whether the reservation server is in an un-reserved state in the reserved time period; and when the reservation server is in an unreserved state in the reservation time period, distributing the use authority of the reservation server in the reservation time period to the reservation user. Therefore, the self-service reservation and the on-line reservation of the server can be realized through the reservation method, so that the time-sharing of the server is realized, and the utilization rate of the server can be improved; the reservation method can also avoid lengthy examination and approval procedures and flows, thereby achieving the purpose of saving communication cost.
Drawings
Fig. 1 is a schematic flowchart of a reservation method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another reservation method provided in an embodiment of the present application;
fig. 3 is a schematic application architecture diagram of a server management system according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another reservation method provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a reservation apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another reservation apparatus provided in an embodiment of the present application;
fig. 7 is a hardware structure example of an electronic device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a system according to an embodiment of the present application.
Detailed Description
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.
Generally, a development test center needs to purchase a large number of servers for development and test to ensure that a product is stable before being online. IPMI is a new generation of universal interface standard that makes hardware management "intelligent" and allows users to monitor the physical state of the server, such as power supply, voltage, temperature, etc. using IPMI. Along with the expansion of the research and development test team scale of a company, how to effectively utilize server resources and realize the maximization of the utilization rate of the server is a proposition which must be solved. Under the condition that the server resources are limited under the online condition, how to maximally utilize the server for development or test use, prevent the server from being in an idle state, how to efficiently utilize the server resources, how to monitor, how to reasonably distribute the resources, and how to manage are all problems to be solved urgently.
In the prior art, a reservation application of a server is completed through manual approval, a user needs to fill configuration requirements and usage days of a specific server in a technical service support system, and initiate a server application to a server administrator, and the server administrator performs compliance check on the application and provides an Internet Protocol (IP) address and user name and password information of an applied server management network to an applicant. The method is long in application flow and needs manual approval, an applicant usually applies for the server at least in weeks in order to ensure that the development test has enough time to use the server, and the actual server is idle for most of the time. In summary, the service period reservation application scheme in the prior art mainly has the following two problems:
(1) the utilization rate of the server is low: after the development tester finishes using the server, the development tester can only wait for the expiration of the reserved use time of the server, and the server can be idle for the latter half period of the application time or a period of time;
(2) the application process is long: the server manager and the server user are usually different departments, some emergency tasks can only go through a tedious application process to wait for manual approval, and sometimes the progress of the whole development test is delayed because the server resources cannot be quickly applied.
Based on this, the embodiment of the present application provides a reservation method, which is applied to a server management system, and includes: receiving a resource query request of a reservation user; returning server resource information to the reservation user based on the resource query request; the server resource information indicates resource information of all servers in the server management system or indicates resource information of servers meeting the resource query request in the server management system; receiving a reservation request of the reservation user; the reservation request is used for indicating a reservation server and a reservation time period selected by the reservation user according to the server resource information; judging whether the reservation server is in an un-reserved state in the reserved time period; and when the reservation server is in an unreserved state in the reservation time period, distributing the use authority of the reservation server in the reservation time period to the reservation user. Therefore, the self-service reservation and the on-line reservation of the server can be realized through the reservation method, so that the time-sharing of the server is realized, and the utilization rate of the server can be improved; meanwhile, the granularity of the distribution time interval of the reservation method is fine, so that the waste of server resources in the manual distribution process is avoided; the reservation method can also avoid lengthy examination and approval procedures and flows, thereby achieving the purpose of saving communication cost.
In an embodiment of the present application, referring to fig. 1, a flowchart of a reservation method provided in an embodiment of the present application is shown, and as shown in fig. 1, the method may include:
s101: receiving a resource query request of a reservation user;
the reservation method is applied to a server management system. The server management system manages a plurality of servers, can communicate with each server, and has functions of acquiring configuration resources of the servers, transmitting commands to the servers, and receiving server messages.
It should be noted that the server management system can communicate with each server through IPMI, the IPMI is a new generation of common interface standard that makes hardware management "intelligent", and managers can monitor the physical state of the server, such as power supply, voltage, temperature, etc., by using IPMI. Through IPMI, the server management system can communicate with each server, so that a user can use the server management system to complete the reserved use of the server, the server can be maximally utilized for development or test, the server is prevented from being in an idle state, and the server resources are maximally utilized.
It should be noted that, for a user, different tests or developments correspond to different server requirements, and when the configuration of the server is too low, some requirements of advanced tests or advanced developments may not be satisfied. Therefore, the reservation method provided by the embodiment of the application provides a query function, and a reservation user can obtain server resource information, such as the number of Central Processing Units (CPUs), the size of a memory, the number of types of hard disks, and the number of types of network cards, by sending a resource query request, so as to specifically know the configuration of the existing server and whether the development test requirements are met. If a server capable of meeting the user requirements exists, the user can enter the next reservation flow; if all the servers can not meet the user requirements, the user can directly log out of the system, and therefore the situation that the user subscribes to an improper server can be avoided.
It should be noted that, the reservation user refers to a user having a legal identity in the server management system, which is used to ensure the use safety of the server, and at the same time, the use history of each server can be traced through the registration information of the reservation user.
In order to confirm the legal identity of the user, before step S101, the method further comprises: receiving a login request of the reservation user, and judging whether the reservation user is a legal user according to the login request; when the judgment result is yes, step S101 is executed.
It should be noted that, for a user, the user must log in before using the services provided by the server management system, and at the same time, the successful log-in of the user also represents that the legal identity of the user is acknowledged by the server management system. In this way, after the user successfully logs in, a resource query request is sent to the server management system to determine whether a server meeting the needs of the user exists.
S102: returning server resource information to the reservation user based on the resource query request;
it should be noted that: the server resource information indicates resource information of all servers in the server management system, or indicates resource information of servers satisfying the resource query request in the server management system.
That is, after the reservation user sends a query request, the user can be provided with query service through two mechanisms, the first mechanism displays configuration information of the server in the server management system, such as the number of CPUs, the size of a memory, the number of types of hard disks, the number of types of network cards and the like, to the reservation user, the reservation user automatically judges whether the server meeting the requirements exists according to the own requirements, if so, the reservation user enters the next reservation process, and if not, the reservation user can quit automatically; the second mechanism may ask the user to input the requirements for the server, such as the number of CPUs, the size of the memory, etc., and the server management system performs the search, and informs the user of the result after the search. However, in any mechanism, it is essential to receive a reservation request of a subsequent reservation user based on the server resource information. In addition, the server resource information may also include a reservable period for each server.
That is, when the number of servers in the system is small, the server resource information of all the servers can be directly presented, and if the number of servers in the system is large, part of the server resource information can be presented according to the query request of the user, so that the user can judge whether a server meeting the requirement exists according to the server resource information.
S103: receiving a reservation request of the reservation user;
it should be noted that the reservation request is used to indicate a reservation server and a reservation time period selected by the reservation user according to the server resource information; after acquiring the server resource information, the reservation user can select a reservation server and a reservation time period according to the use requirement and plan of the user. That is, for a reservation user, if there is a server satisfying the demand and an appropriate reservation period, the user may transmit a reservation request including the reservation server and the reservation period; if no server meeting the requirement exists, the user can directly log out.
That is, the server reservation system acquires, through a reservation request, a reservation server and a reservation period that a reservation user wishes to reserve, wherein the reservation period can be accurate to seconds to refine the granularity of time allocation and improve the utilization rate of the server.
S104: judging whether the reservation server is in an un-reserved state in the reserved time period;
here, for step S104, if the determination result is yes, step S105 is performed.
It should be noted that, according to the reservation request of the reservation user, the reservation server and the reservation time period that the reservation user wishes to use can be determined, and the reservation state of the reservation server in the reservation time period is judged according to the information existing in the system, that is, whether the user can be allowed to use the server in the time period is judged; in addition, the reserved time period can be accurate to seconds, so that the granularity of time distribution is more refined.
It should be noted that, in order to help the reservation user to make a quick reservation, the reservable time period of the reservation server may be presented to the reservation user before receiving the reservation request, or the reservable time period may be presented as one item of server resource information in the query interface, so that the user may know the reservable time period of different servers in advance. Thus, the success rate of reservation can be improved.
S105: and distributing the use right of the reservation server in the reservation time period to the reservation user.
It should be noted that, querying the existing reservation information in the server management system, if the reservation server is in the non-reserved state in the reserved time period, the user may be allowed to use the server in the time period, that is, the reservation is successful.
Further, in some embodiments, after the assigning the usage right of the reservation server in the reservation period to the reservation user, the method may further include:
changing the reserved state of the reservation server in the reserved time period into a reserved state, and sending a message of successful reservation to the reservation user.
It should be noted that, the reservation state of the reservation server in the reservation time period is changed into the reserved state, and a message of successful reservation is sent to the reservation user, so as to avoid repeated reservation by others, and inform the reservation user of the reservation result, so that the reservation user is ready to use the reservation server in the reservation time period.
Further, in some embodiments, after the assigning the usage right of the reservation server in the reservation period to the reservation user, the method may further include:
sending a login secret key to the reservation user; wherein the login key is used for establishing connection between the reservation user and the reservation server within the reservation time period.
In the embodiment of the present application, after the reservation user successfully reserves, a login key (or referred to as a login key) associated with the reservation server needs to be sent to the reservation user, so that the reservation user uses the reservation server through the login key. The transmission timing of the login key is multiple, for example, 5min/10min/30min before the appointment period comes, or the login key is immediately transmitted to the appointment user when the appointment is successfully made, which are all covered by the protection scope of the present application.
It should be noted that the login key is used to enable the reservation user to establish a connection with the reservation server within the reservation time period, and may be an authentication password for logging in the reservation server, or may be information that is previously notified to the reservation server about the reservation user, such as a user name and a password of the reservation user, at which time the reservation user may establish a connection with the reservation server by using the user name and the password of the reservation user, so that the login key is substantially the user name and the password of the reservation user. Meanwhile, in order to ensure the use security, the login key is different for each user.
It should be noted that, since the login key is generally virtualized, in this case, the server management system may allow the user to release the reservation server in advance. That is, in some cases, the reservation user may sometimes fail to use the reserved server or use the reserved server in advance, and the user may release the reserved server through the server management system, and the server management system may change the state of the reserved server in the reserved time period and reset the reservation password, so that the server is still in the reserved state for the remaining time of the reserved time period.
In addition to this, the server management system is provided with a service of canceling the reservation, that is, the reservation user can cancel the reserved reservation server before the start of the reservation period.
In summary, the reservation method according to the embodiment of the present application mainly has the following functions:
(1) the server management function: all server resources are managed through a unified management system, the management system can communicate with each server through an IPMI interface, the server management system can realize rich functions of all server resource query (equivalent to server resource information), user reservation server function, user reserved server query, user active release server function, reservation reminding function and the like, the reservation granularity of the server resources can be accurate to seconds, all development and test personnel can reserve and release the server at any time as required, and the resource utilization rate of the server is greatly improved;
(2) server resource query: a user can query hardware configuration information of all servers, such as the number of CPUs (central processing units), the size of a memory, the number of hard disk types and the number of network card types, through a server management system to determine whether any server can meet the development test requirements of the user;
(3) a server reservation module: when a user selects a certain server, the server management system firstly inquires the reservation state of the server in the database, if the time period for the user to reserve and use the server is reserved, the server management system reminds the user that the server is reserved, if the time period for the user to reserve and use the server is not reserved by other users, a string of login passwords is randomly issued to the user, and the passwords are reset and modified after the time period for the user to reserve and use is finished. The server management system allows the user to actively release the server and return the server to the resource pool before the appointment time is up, so that resource waste caused by the fact that the user passively waits for the expiration of the appointment time is avoided. After the appointment time expires, if the next user is not the same user, the server management system automatically resets the password, removes the user with the established connection, and hands the use of the subsequent server to other appointed users, thereby realizing the server resource sharing based on the time-sharing strategy.
The embodiment of the application provides a reservation method, which is applied to a server management system and comprises the following steps: receiving a resource query request of a reservation user; returning server resource information to the reservation user based on the resource query request; the server resource information indicates resource information of all servers in the server management system or indicates resource information of servers meeting the resource query request in the server management system; receiving a reservation request of the reservation user; the reservation request is used for indicating a reservation server and a reservation time period selected by the reservation user according to the server resource information; judging whether the reservation server is in an un-reserved state in the reserved time period; and when the reservation server is in an unreserved state in the reservation time period, distributing the use authority of the reservation server in the reservation time period to the reservation user. Therefore, the self-service reservation and the on-line reservation of the server can be realized through the reservation method, so that the time-sharing of the server is realized, and the utilization rate of the server can be improved; meanwhile, the unit of the reserved time interval can be accurate to the second, so that the granularity of the time interval distributed by the reservation method is fine, and the waste of server resources in the manual distribution process is avoided; the reservation method can also avoid lengthy examination and approval procedures and flows, thereby achieving the purpose of saving communication cost.
In another embodiment of the present application, refer to fig. 2, which shows a flowchart of another subscription method provided in the embodiment of the present application. As shown in fig. 2, the method may further include:
s201: when the server entering the reservation time period is detected, starting a timer and timing;
it should be noted that, the reservation method provided in the embodiment of the present application further includes setting a timer, which is mainly used for monitoring a usage process of the reservation user in the reservation time period, sending the reminder information at a specific time point, and modifying the login key in time when the reservation time period is over.
It should be noted that, for the server management system, the timer is relatively independent from the reservation process in the previous embodiment, the previous embodiment mainly provides the reservation service for the user, and the timer mainly monitors whether the reservation time period expires. Specifically, when the reservation server is detected to enter a reservation period, a timer is started and time is counted.
The server management system also comprises a reminding mechanism. Thus, in some embodiments, the method may further comprise:
when detecting that the use residual time length is reduced to a preset time length, sending first reminding information to the reservation user; the remaining use duration is obtained by subtracting the timing duration of the timer from the duration of the reserved time period, and the first reminding information is used for reminding the reserved time period corresponding to the reserved user to end after the preset duration.
It should be noted that, when the reservation time of the user is about to arrive, the server management system sends a reminding message to the reservation user to remind the reservation time period corresponding to the current user to end after the preset time period, so as to avoid the problems of data loss of the user and the like when the user connection is released when the reservation time arrives. Here, the remaining duration is the duration remaining from the end of the reserved time period of the reserved user, and the preset duration may be set to 10min/20min/30min, that is, before 10min/20min/30min of the end of the reserved time period, the reminder information is sent to the current user.
It should be noted that the reminding message can be sent in various forms such as mail, short message, popup window or client message.
Further, when it is detected that the remaining usage time period falls to a preset time period, the method may further include:
sending second reminding information to a reservation user of the next reservation time period of the reservation server; and the second reminding information is used for reminding the reservation time period corresponding to the reservation user of the next reservation time period to be started after the preset time length.
It should be noted that, in order to avoid that the reservation user corresponding to the next reservation time period forgets the server that has been reserved, when it is detected that the remaining usage duration decreases to the preset duration, the second reminding information may be sent to the reservation user corresponding to the next reservation time period to remind the reservation user corresponding to the next reservation time period to use the server that has been reserved in time.
S202: when the timing duration of the timer reaches the duration of the reserved time period, judging whether the reserved user is a reserved user of the next reserved time period;
here, as for step S202, if the determination result is no, step S203 is executed.
It should be noted that, when the timing duration of the timer reaches the duration of the reservation time period, it means that the reservation time period of the reservation user has expired, at this time, it is necessary to check whether the current user of the reservation server is the reservation user corresponding to the next reservation time period, so as to respond.
It should be noted that, if the current user of the reservation server is still the reservation user corresponding to the next reservation time period, it is not necessary to release the current connection and then establish a connection with the same user again, the current use state can be continuously maintained, the program can be saved, and the user can use the reservation server conveniently.
It should be noted that, here, the reservation user corresponding to the next reservation time period may be virtualized, and is a reservation user of the next time period theoretically, but not a reservation user of the next actual reservation, for example, if the user a reserves a time period of 8:00-9:00, and the user b reserves a time period of 10:00-12:00, for the user a, the reservation user corresponding to the next reservation time period is a reservation user of 9:00-10:00 (empty actually), but not a reservation user b.
S203: and releasing the connection between the reservation user and the reservation server.
If the current user of the reservation server is not the reservation user corresponding to the next reservation time period, the connection between the reservation user and the reservation server needs to be released so that the next reservation user can use the server.
Further, in some embodiments, when the subscriber is not a subscriber for a next subscription period, the method may further include:
resetting a login key of the reservation server;
and sending the login key obtained by resetting to a reservation user in the next reservation time period.
It should be noted that, in order to ensure the use security, the login key of each subscriber should be different. Therefore, if the next subscriber is not the current subscriber, the login key of the reservation server needs to be reset, and the login key obtained by resetting is sent to the reservation user corresponding to the next reservation time period, so that the reservation user corresponding to the next reservation time period can use the server in the reserved time period.
In some cases, the use of the reservation server by the reservation user may end early, and therefore, the method may further include:
receiving a server release request of the reservation user; the server release request is sent by the reservation user before the reservation time period is not finished;
and based on the server release request, releasing the use authority of the reservation user to the reservation server in the residual use duration.
It should be noted that, in order to improve the utilization rate of the server as much as possible, the server management system has a server release mechanism, so that the user can release the unused reservation server at any time, so as to be convenient for others to use, thereby improving the utilization rate of the server.
In summary, the reservation method according to the embodiment of the present application mainly has the following two functions:
(1) and (3) pushing reservation information: when the appointment time is about to start and end, pushing information half an hour in advance to remind a next user of using the server in time and remind the current user that the service life of the server is up to the end, so that the waste of server resources is avoided;
(2) the timer function is as follows: starting a timer after the appointment time period starts, expiring, checking whether the next appointment is the last appointment or not, if not, modifying the password of the server, and sending the modified password to the next appointment.
The embodiment of the application provides a reservation method, and the specific implementation of the embodiment is elaborated, so that the reservation method can realize self-service reservation and on-line reservation of a server, the utilization rate of the server can be improved, and the unit of a reserved time period can be accurate to seconds, so that the granularity of the distributed time period of the reservation method is fine, and the waste of server resources in the manual distribution process is avoided; the communication cost can be saved, time is not wasted for communication, and tedious examination and approval procedures and flows are avoided.
In another embodiment of the present application, refer to fig. 3, which shows an application architecture diagram of a server management system provided in an embodiment of the present application. As shown in fig. 3, the server management system mainly includes a user reservation module 301 and a timer module 302; wherein the content of the first and second substances,
the user reservation module 301 mainly undertakes the function of interacting with the user, and after the user logs in the server management system, the user reservation module 301 can query server resources, including resource information of the server 1, the server 2 and the server 3, and can query reservation users, including the user 1, the user 2, the user 3, and the like, and can even query reservation time periods and the like; that is, the user reservation module 301 records related information of a plurality of users and a plurality of servers, reservation time period information reserved by the users, and the like;
the timer module 302 is mainly used for monitoring the use of the reservation server, and the timer module 302 can acquire the related information of the user reservation in the user reservation module 301; specifically, whether a reserved time period expires is monitored, when the last user expires, the password can be modified, and a short message or an email is sent to a user group; that is, the timer module 302 can send the reminder information to the subscriber and the subscriber of the next appointment period when the appointment period is about to expire; and after the reserved time interval has expired, resetting the secret key of the server and sending the secret key to the reserved user in the next reserved time interval.
The embodiment of the application provides an application architecture example of a reservation method, after a user logs in a server management system, self-service reservation and online reservation of a server can be realized by using a user reservation module 301 and a timer module 302, so that time-sharing of the server is realized, and the utilization rate of the server can be improved; meanwhile, the unit of the reserved time interval can be accurate to the second, so that the granularity of the time interval distributed by the reservation method is fine, and the waste of server resources in the manual distribution process is avoided; the reservation method can also avoid lengthy examination and approval procedures and flows, thereby achieving the purpose of saving communication cost.
In yet another embodiment of the present application, refer to fig. 4, which shows a flowchart of another reservation method provided in the embodiment of the present application. As shown in fig. 4, the method may include:
s401: a user logs in an IPMI system of the server;
it should be noted that, first, a user logs in the IPMI system (corresponding to the aforementioned server management system) of the server, i.e., the server management system communicating with each server through IPMI, before the user should have completed registration and authorization of the IPMI system, that is, the user is a valid user of the IPMI system.
S402: inquiring whether the resource meets the requirement of the server through a server resource inquiry module;
here, with respect to step S402, if the query result is yes, step S403 is performed; and if the query result is negative, exiting the system.
In general, an IPMI system manages a plurality of servers in a unified manner, and since the servers have different performances, a user needs to determine whether the servers meet their own needs based on resources that can be provided by the servers. Specifically, the IPMI system can display hardware configuration information of the server, such as the number of CPUs, the size of a memory, the number of types of hard disks, and the number of types of network cards, so that a user can determine whether or not any server can meet the development test requirements of the user, and enter a subsequent reservation module if the server meets the requirements of the user.
S403: judging whether the idle time period meets the reservation requirement or not through a server reservation module;
here, with respect to step S403, if the determination result is yes, step S403 is performed; and if the judgment result is negative, the system is quitted.
It should be noted that, in the reservation module, the IPMI system may present the reservable time period to the user to help the user quickly reserve the server, and of course, if the idle time period of the server does not meet the user's requirement, the user may quit and abandon the reservation.
It should be noted that, when the determination result is yes, the server management system handles the reservation procedure for the user, including changing the state of the server in the time period that the user wishes to reserve, sending a message that the reservation is successful to the user, and sending the login key, so that the user can make a connection with the reservation server in the reserved time period.
S404: and setting a timer to monitor whether the reservation time period of the reservation user in the service reservation module is due, if the reservation time period of the reservation user is due, sending a mail to the reservation user in the next reservation time period by the reservation information module half an hour in advance, and if the user is not due, continuing monitoring.
It should be noted that, the IPMI system further has a timer for monitoring whether the reserved time period of the reserved user is about to expire or not, and if the user is about to expire, sending a reminding message to the next reserved user in advance, in this embodiment, the specific reminding time is the first 30min of the reserved time period, and the specific form of the reminding message is a mail.
The embodiment of the application provides a reservation method, and the specific implementation of the embodiment is elaborated, so that the self-service reservation and the on-line reservation of a server can be realized through the reservation method, the time-sharing of the server is realized, and the utilization rate of the server can be improved; meanwhile, the unit of the reserved time interval can be accurate to the second, so that the granularity of the time interval distributed by the reservation method is fine, and the waste of server resources in the manual distribution process is avoided; the reservation method can also avoid lengthy examination and approval procedures and flows, thereby achieving the purpose of saving communication cost.
In still another embodiment of the present application, referring to fig. 5, which shows a composition structure diagram of a reservation apparatus 50 provided in an embodiment of the present application, as shown in fig. 5, the reservation apparatus 50 is applied to a server management system, and includes an inquiry unit 501, a return unit 502, a receiving unit 503, a judging unit 504, and a reservation unit 505; wherein the content of the first and second substances,
an inquiry unit 501 configured to receive a resource inquiry request of a reservation user;
a returning unit 502 configured to return server resource information to the reservation user based on the resource query request; the server resource information indicates resource information of all servers in the server management system or indicates resource information of servers meeting the resource query request in the server management system;
a receiving unit 503 configured to receive a reservation request of the reservation user; the reservation request is used for indicating a reservation server and a reservation time period selected by the reservation user according to the server resource information;
a determination unit 504 configured to determine whether the reservation server is in an unreserved state within the reservation period;
a reservation unit 505 configured to assign a usage right of the reservation server in the reservation period to the reservation user when the reservation server is in an unreserved state in the reservation period.
In the above embodiment, the reservation unit 505 is further configured to change the reservation state of the reservation server in the reservation period to the reserved state, and send a message that the reservation is successful to the reservation user.
In the above embodiment, the reservation unit 505 is further configured to send a login key to the reservation user; wherein the login key is used for establishing connection between the reservation user and the reservation server within the reservation time period.
Referring to fig. 6, which shows a composition structure diagram of another reservation apparatus 50 provided in the embodiment of the present application, as shown in fig. 6, on the basis of the above solution, the reservation apparatus 50 further includes a timer unit 506 configured to start a timer and time when the reservation server is detected to enter the reservation time period; when the timing duration of the timer reaches the duration of the reserved time period, judging whether the reserved user is a reserved user of the next reserved time period; and if not, the connection between the reservation user and the reservation server is released.
In the above embodiment, the timer unit 506 is further configured to reset the login key of the reservation server; and sending the login key obtained by resetting to a reservation user in the next reservation time period.
In the above solution, the timer unit 506 may be further configured to send a first reminding message to the reservation user when detecting that the remaining usage duration decreases to a preset duration; the remaining use duration is obtained by subtracting the timing duration of the timer from the duration of the reserved time period, and the first reminding information is used for reminding the reserved time period corresponding to the reserved user to end after the preset duration.
In the above solution, the timer unit 506 may be further configured to send a second reminding message to a subscriber in a next reserved time period of the reservation server when detecting that the remaining usage time length is reduced to a preset time length; and the second reminding information is used for reminding the reservation time period corresponding to the reservation user of the next reservation time period to be started after the preset time length.
In the above solution, as shown in fig. 6, the reservation apparatus 50 further includes a releasing unit 507 configured to receive a server release request of the reservation user; the server release request is sent by the reservation user before the reservation time period is not finished; and based on the server release request, releasing the use authority of the reservation user to the reservation server in the residual use duration.
It is understood that in this embodiment, a "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc., and may also be a module, or may also be non-modular. Moreover, each component in the embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Accordingly, the present embodiments provide a computer storage medium storing a reservation program that, when executed by at least one processor, implements the steps of the method of any of the preceding embodiments.
Based on the above-mentioned composition of a reservation device 50 and computer storage media, referring to fig. 7, a specific hardware structure example of an electronic device 60 provided in an embodiment of the present application is shown, which may include: a communication interface 601, a memory 602, and a processor 603; the various components are coupled together by a bus system 604. It is understood that the bus system 604 is used to enable communications among the components. The bus system 604 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 604 in fig. 7. The communication interface 601 is used for receiving and sending signals in the process of receiving and sending information with other external network elements;
a memory 602 for storing a computer program capable of running on the processor 603;
a processor 603 for, when running the computer program, performing:
receiving a resource query request of a reservation user;
returning server resource information to the reservation user based on the resource query request; the server resource information indicates resource information of all servers in the server management system or indicates resource information of servers meeting the resource query request in the server management system;
receiving a reservation request of the reservation user; the reservation request is used for indicating a reservation server and a reservation time period selected by the reservation user according to the server resource information;
judging whether the reservation server is in an un-reserved state in the reserved time period;
and when the reservation server is in an unreserved state in the reservation time period, distributing the use authority of the reservation server in the reservation time period to the reservation user.
It will be appreciated that the memory 602 in the subject embodiment can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous chained SDRAM (Synchronous link DRAM, SLDRAM), and Direct memory bus RAM (DRRAM). The memory 602 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
And the processor 603 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 or instructions in the form of software in the processor 603. The Processor 603 may be a general purpose Processor, a Digital Signal Processor (DSP), an APPlication Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component. 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 the memory 602, and the processor 603 reads the information in the memory 602, and performs the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more APPlication Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, as another embodiment, the processor 603 is further configured to perform the steps of the method of any of the previous embodiments when running the computer program.
Based on the above-mentioned composition of the reservation device 50 and the hardware structure example of the electronic device 60, refer to fig. 8, which shows a schematic diagram of the composition structure of a server management system 70 provided in the embodiment of the present application. As shown in fig. 8, the server management system 70 at least includes a reservation server 701 and the reservation apparatus 50 according to any of the foregoing embodiments, a reservation user can make a reservation to the reservation server 701 through the reservation apparatus 50, and a self-service reservation and an on-line reservation of the server can be realized through the reservation method, so that a time sharing of the server is realized, and a utilization rate of the server can be improved; meanwhile, the unit of the reserved time interval can be accurate to the second, so that the granularity of the time interval distributed by the reservation method is fine, and the waste of server resources in the manual distribution process is avoided; the reservation method can also avoid lengthy examination and approval procedures and flows, thereby achieving the purpose of saving communication cost.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.
It should be noted that, in the present application, 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 application are merely for description and do not represent the merits of the embodiments.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A reservation method is applied to a server management system, and the method comprises the following steps:
receiving a resource query request of a reservation user;
returning server resource information to the reservation user based on the resource query request; the server resource information indicates resource information of all servers in the server management system or indicates resource information of servers meeting the resource query request in the server management system;
receiving a reservation request of the reservation user; the reservation request is used for indicating a reservation server and a reservation time period selected by the reservation user according to the server resource information;
judging whether the reservation server is in an un-reserved state in the reserved time period;
and when the reservation server is in an unreserved state in the reservation time period, distributing the use authority of the reservation server in the reservation time period to the reservation user.
2. The reservation method of claim 1, wherein after the assigning the usage right of the reservation server within the reservation period to the reservation user, the method further comprises:
changing the reserved state of the reservation server in the reserved time period into a reserved state, and sending a message of successful reservation to the reservation user.
3. The reservation method of claim 1, wherein after the assigning the usage right of the reservation server within the reservation period to the reservation user, the method further comprises:
sending a login secret key to the reservation user; wherein the login key is used for establishing connection between the reservation user and the reservation server within the reservation time period.
4. The reservation method of claim 3, further comprising:
when the server entering the reservation time period is detected, starting a timer and timing;
when the timing duration of the timer reaches the duration of the reserved time period, judging whether the reserved user is a reserved user of the next reserved time period;
and if not, the connection between the reservation user and the reservation server is released.
5. The reservation method according to claim 4, wherein when the reservation user is not a reservation user of a next reservation period, the method further comprises:
resetting a login key of the reservation server;
and sending the login key obtained by resetting to a reservation user in the next reservation time period.
6. The reservation method of claim 4, further comprising:
when detecting that the use residual time length is reduced to a preset time length, sending first reminding information to the reservation user; the remaining use duration is obtained by subtracting the timing duration of the timer from the duration of the reserved time period, and the first reminding information is used for reminding the reserved time period corresponding to the reserved user to end after the preset duration.
7. The reservation method according to claim 6, wherein when it is detected that the remaining usage time period falls to a preset time period, the method further comprises:
sending second reminding information to a reservation user of the next reservation time period of the reservation server; and the second reminding information is used for reminding the reservation time period corresponding to the reservation user of the next reservation time period to be started after the preset time length.
8. The reservation method of claim 6, further comprising:
receiving a server release request of the reservation user; the server release request is sent by the reservation user before the reservation time period is not finished;
and based on the server release request, releasing the use authority of the reservation user to the reservation server in the residual use duration.
9. A reservation device is applied to a server management system and comprises an inquiry unit, a return unit, a receiving unit, a judgment unit and a reservation unit; wherein the content of the first and second substances,
the query unit is configured to receive a resource query request of a reservation user;
the return unit is configured to return server resource information to the reservation user based on the resource query request; the server resource information indicates resource information of all servers in the server management system or indicates resource information of servers meeting the resource query request in the server management system;
the receiving unit is configured to receive a reservation request of the reservation user; the reservation request is used for indicating a reservation server and a reservation time period selected by the reservation user according to the server resource information;
the judgment unit is configured to judge whether the reservation server is in an un-reserved state in the reserved time period;
the reservation unit is configured to distribute the use authority of the reservation server in the reservation time period to the reservation user when the reservation server is in an unreserved state in the reservation time period.
10. An electronic device, characterized in that the electronic device comprises: a memory and a processor; wherein the content of the first and second substances,
the memory for storing a computer program operable on the processor;
the processor, when executing the computer program, is adapted to perform the steps of the method of any of claims 1 to 8.
11. A computer storage medium, characterized in that the computer storage medium stores a reservation program that, when executed by at least one processor, implements the steps of the method according to any of claims 1 to 8.
12. A server management system characterized by comprising at least a reservation server and the reservation apparatus according to claim 9.
CN202010722377.3A 2020-07-24 2020-07-24 Reservation method, reservation device, electronic equipment, storage medium and reservation system Pending CN113971088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010722377.3A CN113971088A (en) 2020-07-24 2020-07-24 Reservation method, reservation device, electronic equipment, storage medium and reservation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010722377.3A CN113971088A (en) 2020-07-24 2020-07-24 Reservation method, reservation device, electronic equipment, storage medium and reservation system

Publications (1)

Publication Number Publication Date
CN113971088A true CN113971088A (en) 2022-01-25

Family

ID=79585684

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010722377.3A Pending CN113971088A (en) 2020-07-24 2020-07-24 Reservation method, reservation device, electronic equipment, storage medium and reservation system

Country Status (1)

Country Link
CN (1) CN113971088A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627616A (en) * 2023-06-16 2023-08-22 合芯科技有限公司 Resource calling method, device and system for simulation accelerator

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627616A (en) * 2023-06-16 2023-08-22 合芯科技有限公司 Resource calling method, device and system for simulation accelerator

Similar Documents

Publication Publication Date Title
US9626137B2 (en) Image forming apparatus, server device, information processing method, and computer-readable storage medium
US8763145B2 (en) Cloud system, license management method for cloud service
US9384516B2 (en) Licensing for services
CN102792632B (en) Automated credentials manages
US20080162707A1 (en) Time Based Permissioning
US9009079B2 (en) Planning assignment of software licenses
US9781102B1 (en) Managing support access in software-as-a-service systems
CN101197874B (en) Mobile terminal equipment
CN110784457B (en) Service access method and device
JP2013140480A (en) Server system, service providing server, and control method
WO2017206960A1 (en) Data transmission method, data transfer client and data transfer executor
JP5518195B2 (en) Method and system for controlling establishment of a communication channel in a contact center
CN110636057A (en) Application access method and device and computer readable storage medium
US20230140208A1 (en) Provisioning and debugging system in a cloud environment
CN106209727A (en) A kind of session access method and apparatus
CN113971088A (en) Reservation method, reservation device, electronic equipment, storage medium and reservation system
CN114465895A (en) Request distribution method, device, equipment and storage medium based on micro service
JP5478591B2 (en) Information system and authentication state management method thereof
CN117155606A (en) Webpage login state maintaining method and system
JP2021522596A (en) Methods and systems for reserving resources and managing access to reserved resources
JP2003256064A (en) License management method, license management server, license acquired client, license management program and recording medium
JP2012048669A (en) Management method and management device of load test for web system
JP2012048668A (en) Management method and management device of load test for web system
CN103124287B (en) The technology of third party content transmission is carried out by unique mobile applications address
US20140214930A1 (en) Changing settings

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