CN115361379B - Video uploading server allocation method and device - Google Patents

Video uploading server allocation method and device Download PDF

Info

Publication number
CN115361379B
CN115361379B CN202211300706.0A CN202211300706A CN115361379B CN 115361379 B CN115361379 B CN 115361379B CN 202211300706 A CN202211300706 A CN 202211300706A CN 115361379 B CN115361379 B CN 115361379B
Authority
CN
China
Prior art keywords
server
target
information
uploading
request
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
CN202211300706.0A
Other languages
Chinese (zh)
Other versions
CN115361379A (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.)
Guangzhou Qianjun Network Technology Co ltd
Original Assignee
Guangzhou Qianjun Network 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 Guangzhou Qianjun Network Technology Co ltd filed Critical Guangzhou Qianjun Network Technology Co ltd
Priority to CN202211300706.0A priority Critical patent/CN115361379B/en
Publication of CN115361379A publication Critical patent/CN115361379A/en
Application granted granted Critical
Publication of CN115361379B publication Critical patent/CN115361379B/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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses a video uploading server allocating method and device, wherein the application responds to a received target video uploading request and acquires request characteristic information corresponding to the target video uploading request; obtaining a server information base, wherein an information set corresponding to each server is stored in the server information base, and the information set comprises attribute information and current load state information of the server; in the server information base, determining a target server matched with the request characteristic information; and controlling the target video corresponding to the target video uploading request to be uploaded based on the target server. According to the method and the device, the server can complete uploading on the aspect of ensuring the performance of the server, and meanwhile, the server can have enough space to complete the uploading task of the video, so that the situations that a user is crowded in a network and cannot successfully upload in the uploading process are reduced.

Description

Video uploading server allocation method and device
Technical Field
The present application relates to the field of information technologies, and in particular, to a method and an apparatus for allocating a video upload server.
Background
With the development of the economy of the internet industry and the rise of each large and short video platform, the video gradually becomes one of the main forms of information dissemination, and the support for uploading the video also becomes one of the necessary functions required by each platform. Generally, a backend server group receiving video file uploading is distributed, and when a user side initiates a video file uploading request, a system allocates an uploading machine node through which the user side completes video uploading.
In the prior art, the distribution scheme of uploading machine nodes is generally random distribution, and a server node is directly distributed randomly from a server group to a user side to provide the service of uploading videos. The random allocation may cause that when a user uploads a video, if the allocated server cannot undertake a video uploading task, the user may encounter a situation that the user cannot successfully upload the video.
Disclosure of Invention
In view of this, the present application provides a video upload server allocation method and apparatus, which are used to solve the problem that videos are uploaded in a congested state and the videos cannot be uploaded successfully due to random allocation of existing video upload servers.
In order to achieve the above object, the following solutions are proposed:
a video uploading server allocating method comprises the following steps:
in response to receiving a target video uploading request, acquiring request characteristic information corresponding to the target video uploading request;
obtaining a server information base, wherein an information set corresponding to each server is stored in the server information base, and the information set comprises attribute information and current load state information of the server;
determining a target server set matched with the request characteristic information in the server information base;
and controlling the target video corresponding to the target video uploading request to be uploaded based on the target server set.
Optionally, before obtaining the server information base, the method further includes:
determining attribute information corresponding to each server based on the acquired configuration characteristic information, position characteristic information and operation characteristic information corresponding to each server;
determining current load state information corresponding to each server according to the storage characteristic information of each server and the resource occupation information of the current server;
and combining the attribute information corresponding to each server with the current load state information to obtain a server information base.
Optionally, the determining, according to the storage characteristic information of each server and the resource occupation information of the current server, the current load state information corresponding to each server includes:
acquiring a current load parameter set corresponding to each server in a current acquisition time period according to a preset acquisition time period, wherein the load parameter set comprises one or more of the ratio of the storage space occupied by the current hard disk of the server to the total storage amount, the processor occupation amount, the memory occupation amount and the ratio of the current task number of the server to the total number of the tasks which can be served;
and updating the current load parameter set with the corresponding load parameter set of the last acquisition time period to obtain the current load state information corresponding to each server.
Optionally, the requesting feature information includes:
format parameters, operation parameters, uploading channel parameters and uploading position parameters of the target video;
wherein the determining, in the server information base, a target server set matched with the request feature information includes:
and determining a target server set matched with the format parameter, the operation parameter, the uploading channel parameter and the uploading position parameter of the target video in the server information base.
Optionally, the determining, in the server information base, a set of target servers that match the request feature information includes:
determining a server with the state identification as serviceable to be a first server set based on the state identification of each server;
determining a server in the first server set, the attribute information of which is matched with the format parameter of the request characteristic and the uploading position parameter, as a second server set according to the attribute information corresponding to each server in the server information base;
calculating to obtain a load weight value corresponding to each server in the second server set according to the current load state information of each server in the second server set;
and determining a target server set from the second server set based on a preset target load weight range, wherein the load weight value of each server in the target server set is within the target load weight range.
Optionally, the method further comprises:
determining a server in the first server, which is matched with the format parameter of the request characteristic information and the accessed operator information in the uploading position parameter, as a third server set according to the attribute information of each server in the first server set;
calculating to obtain a load weight value corresponding to each server in the third server set according to the current load state information of each server in the third server set;
and determining a target server set from the third server set based on a preset target load weight range, wherein the load weight value corresponding to each server in the target server set is within the target load weight range.
Optionally, the method further comprises:
calculating to obtain a load weight value corresponding to each server in the third server set according to the current load state information of each server in the third server set;
and determining a target server set from the third server set based on a preset target load weight range, wherein the load weight value corresponding to each server in the target server set is within the target load weight range.
Optionally, the method further comprises:
determining a target server set matched with the uploading channel parameters of the target video in the server information base;
and controlling the target video corresponding to the request characteristic information to be uploaded based on the target server set.
Optionally, the controlling the target video corresponding to the target video upload request to be uploaded based on the target server includes:
calculating to obtain a recommended weight value corresponding to each target server in the target server set according to the configuration information characteristics of the target server set;
sorting the servers in the target server set according to the corresponding recommended weight values to obtain a target sorting of the target servers, and determining a first target server;
controlling a target video corresponding to the request characteristic information to be uploaded based on the first target server;
wherein the controlling of the target video corresponding to the target video uploading request to be uploaded based on the first target server comprises:
responding to the uploading of a target video corresponding to the target video request based on the first target server, and detecting the running state of the first target server;
and if the first target server is determined to be abnormal based on the running state of the first target server, controlling the target video to be switched to a second target server in the target server set for uploading.
A video upload server deployment apparatus, comprising:
the request information acquisition unit is used for responding to a received target video uploading request and acquiring request characteristic information corresponding to the target video uploading request;
the server information acquisition unit is used for acquiring a server information base, wherein an information set corresponding to each server is stored in the server information base, and the information set comprises attribute information and current load state information of the server;
the server information matching unit is used for determining a target server set matched with the request characteristic information in the server information base;
and the control target video uploading unit is used for controlling the target video corresponding to the request characteristic information to be uploaded based on the target server set.
According to the technical scheme, the method comprises the steps of responding to a received target video uploading request, and acquiring request characteristic information corresponding to the target video uploading request; acquiring a server information base containing all server information, and determining a target server set which is in informational matching with the request characteristics from the server information base; and finishing uploading the target video based on a target server set.
According to the scheme, the server can be directly selected according to the uploading request of the collected target video, the selection process is mainly considered from two aspects of attribute information and current load information, the uploading can be completed on the premise that the performance of the server is guaranteed, meanwhile, the server can have enough space to complete the uploading task of the video, and the situations that a user is crowded in a network and cannot upload the video successfully in the uploading process are reduced.
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 embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a diagram illustrating an architecture of a system for implementing deployment of a video upload server according to an embodiment of the present application;
fig. 2 is a flowchart of a video upload server deployment method according to an embodiment of the present application;
fig. 3 is a schematic diagram of an application scenario according to an example of the present application;
fig. 4 is a schematic structural diagram of a video upload server deployment device according to an embodiment of the present disclosure.
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, 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is an alternative architecture diagram of a system for implementing deployment of a video upload server according to an embodiment of the present application, and as shown in fig. 1, the system may include: client 10, server 20, and upload server 30, where client 10 corresponds to a user.
Specifically, a user sends a request for uploading a video through a client 10, a server 20 collects the request for uploading the video from the client, the server 20 is associated with an uploading server 30, the client 10 is linked with the uploading server through the server 20, the uploading server 30 may be a server cluster formed by a plurality of servers, and the server 20 selects one or more servers from the uploading server 30 as target uploading servers to finally control the uploading of the video.
The method and the device have the advantage that when the uploading request of the target video is received, the target video can obtain the most appropriate server to upload the target video.
Specifically, fig. 1 shows a schematic flow chart of a video upload server deployment method provided in an embodiment of the present application, and referring to fig. 1, the method of this embodiment may include:
step S110, receiving a target video uploading request;
and step S120, acquiring request characteristic information corresponding to the target video uploading request.
Specifically, request characteristic information corresponding to the target video uploading request is obtained, and the request characteristic information at least comprises information such as format parameters, operation parameters, uploading channel parameters and uploading position parameters of the target video. And receiving a target video uploading request, wherein the received video uploading request may be sent by any electronic product capable of being connected with a network, such as a mobile phone, a computer, a tablet and the like. After receiving an upload request of a target video, a server needs to obtain request feature information corresponding to the upload request of the target video, for example: the format, size and definition of the target video can also be network operators, uploading channels and the like accessed by the client, and the acquired information is combined to obtain the request characteristic information. And the request characteristic information content can enable the server to clearly judge the conditions which should be at least met by uploading the target video.
And step S130, obtaining a server information base.
Specifically, a server information base is obtained, in which an information set corresponding to each server is stored, where the information set includes attribute information and current load state information of the server.
The server information base can be prefabricated, and the final server information base is obtained by classifying and screening the collected information of all the servers.
And regarding an information set corresponding to each server stored in the server information base, wherein the information set comprises attribute information and current load state information of the server, and the information is also key judgment information for determining a final uploading target video server. The attribute information can embody configuration characteristics, position characteristics, operation characteristics and the like of the server, whether the performance of the server is sufficient to support uploading of the target video can be judged according to the attribute information of the server, the position information of the server and the information of an access network operator can be determined according to the attribute information of the server, and therefore two parties with similar geographic positions between the user side and the server and the same access network operator can be promoted to carry out video uploading operation; the current load state information reflects the busy degree of the server at the current moment, the server with relatively low busy degree can be selected for uploading by screening according to the busy degree of the server, and the video can be successfully uploaded while the network is smooth when the server uploads the video.
And step S140, determining a target server matched with the request characteristic information in the server information base.
It can be understood that each target video corresponds to different request feature information, and the request feature information of the video can be matched with the information set of each server in the server information base to obtain the target server which is most suitable for uploading the target video.
Each server in the server information base has corresponding attribute information and current load information, and is matched with the request characteristic information corresponding to the target video, wherein the attribute information comprises position information, access network operator information, hardware configuration and other information of the server. Specifically, for example, a target video coding format is used as the request feature information, the video coding formats are various, different servers have video coding formats supported by the different servers, and if the coding format of the uploaded video is different from the video coding format supported by the server, problems that uploading is not allowed, the video cannot be played after successful uploading and the like may be encountered. Therefore, when a target server is determined, the target video coding format needs to be matched with the video coding format capable of supporting uploading in each server information set in the server information base, and a server set supporting the uploading of the target video in the coding format needs to be found. And then, screening is performed from the server set by using other standards, for example, screening is performed continuously by using the current load state information of the server as a basis, so that the target server is finally obtained while the video can be uploaded, and the success rate of uploading the target video is improved by considering whether the video has enough space to complete the uploading task of the target video.
And S150, controlling the target video corresponding to the target video uploading request to be uploaded based on the target server.
Further, after the target server set obtained in step S140, the final video uploading is completed based on the target server that is most matched with the request feature information corresponding to the target video.
Specifically, after a target server set is obtained, the target video is directly uploaded through the target server. However, there may be one or more cases in the target server, and the uploading case may not be unique in different cases. For example, the finally screened target server includes a plurality of sub-target servers, one of the plurality of sub-target servers may be randomly selected to upload the target video, the target video may also be uploaded according to the arrangement order of the sub-target servers in the target server, and the target video may also be uploaded according to the set server uploading order condition, for example, the uploading order condition may include a condition of sorting according to the server identification information, and may also include a condition of priority order according to the server. Based on this, different specific application scenarios for video uploading have different uploading modes when the video is uploaded based on the target server, which is not limited in the embodiment of the present application.
Obviously, according to the scheme of the application, when a request for uploading the target video is received, the request characteristic information corresponding to the target video can be obtained, the matched target server is found from the server information base according to the request characteristic information, the server information base comprises the attribute information and the current load state information of each server, the two aspects are screened, the obtained target server not only can support the uploading quality of the target video, but also can ensure that the target server has enough space to finish the uploading task of the target video, and the situations that a user is crowded in a network and cannot upload the target video successfully in the uploading process are reduced.
Next, the present embodiment will continue to further introduce a video upload server deployment method.
The foregoing describes that step S130 obtains the server information base, so as to provide a large number of server samples for subsequently screening out the target servers. Before step S130, the server information base needs to be created for subsequent acquisition and screening based on the server information base.
It can be understood that the server information base includes an information set corresponding to each server, where the information set includes attribute information and current load status information, and the process of creating the server information base is a process of collecting the attribute information and the current load status information corresponding to each server, and includes:
determining attribute information corresponding to each server based on the acquired configuration characteristic information, position characteristic information and operation characteristic information corresponding to each server, wherein the position characteristic information at least comprises a server IP address and an accessed network operator;
determining current load state information corresponding to each server according to the storage characteristic information of each server and the resource occupation information of the current server;
and combining the attribute information corresponding to each server with the current load state information to obtain a server information base.
Specifically, the configuration feature information includes configured access network operator information, and the server storage feature information and the resource occupation information may specifically include feature information representing performance thereof, such as processor (which may be a CPU) occupation information, memory occupation information, resource occupation information, current task number, and recommended task number. Collecting position characteristic information and operation characteristic information corresponding to each server, wherein the position characteristic information can comprise IP addresses of the servers, machine rooms to which the servers belong, city addresses of the machine rooms to which the servers belong, network operators accessed by the servers and other series of position characteristic information about the corresponding servers; the operation characteristic information may include a series of characteristic information capable of reflecting the operation capability of the server, such as a Central Processing Unit (CPU), a server bandwidth, a network operator belonging to the server, and the like. And combining the attribute information and the operation characteristic information to correspond to the servers one by one to obtain the attribute information corresponding to the servers.
Further, obtaining a total value of storage space of the server and a total amount of tasks which can be processed simultaneously according to the collected storage characteristic information of the server, wherein the storage characteristic information can include the number of CPUs (central processing units), the total amount of internal memory, hard disk space and the like of the server; and then, according to the acquired resource occupation information of the current server, obtaining a storage space value occupied by the server currently and the task amount processed by the server, wherein the resource occupation information can comprise the use condition of a server CPU, the use of a memory, the use of a hard disk space, the connection number and the like. And combining the obtained storage information and the task amount information to obtain a plurality of pieces of current load state information, and corresponding the current load state information to the servers one by one to finally obtain the current load state information corresponding to the servers.
And combining the attribute information corresponding to the server and the current load state information and corresponding to the server to finally obtain a server information base.
It can be understood that the current load status information corresponding to each server in the server information base is information reflecting the load status of the server at the current time or within a predetermined time period, so that a certain update process should be set in the server information base to complete the update of the current load status information of all servers in the server information base, where an embodiment of the present application provides a preferred update process, which may include:
acquiring a current load parameter set corresponding to each server in a current acquisition time period according to a preset acquisition time period, wherein the load parameter set comprises one or more of the ratio of the current storage capacity occupied by the current hard disk of the server to the total storage capacity, the occupation capacity of a Central Processing Unit (CPU), the occupation capacity of a memory and the ratio of the current task quantity of the server to the total number of the tasks which can be served;
and updating the current load parameter set with the corresponding load parameter set of the last acquisition time period to obtain the current load state information corresponding to each server.
Specifically, since the uploading of the video by the server is not completed instantaneously, if the load state of the server is updated at any time, the load state of the server at an adjacent time may not change, and the information collection at any time is time-consuming. Therefore, a reasonable time interval is set, and the current load state information of the server is updated at a fixed time interval, so that the current load state information represents the current load state information at the time interval, namely at all the moments in the acquisition time period.
In addition, as can be seen from the server information base obtained in step S130, the current load state information corresponding to the server includes storage characteristic information of the server and resource occupation information of the current server, and it can be understood that the storage characteristic information may be storage characteristic parameters such as a total storage amount of the server, a number of CPUs, a total memory amount, and a number of tasks that can be served; similarly, the resource occupation information may include current occupation information parameters such as the occupied storage capacity of the server, the occupation capacity of a Central Processing Unit (CPU), the occupation capacity of a memory, the current task number of the server, and the like, and the parameters are correspondingly calculated to obtain a load parameter set, wherein the load parameter set includes one or more of the ratio of the current storage capacity of the server to the total storage capacity, the occupation capacity of the CPU, the occupation capacity of the memory, the current task number of the server to the total number of the tasks which can be served, the ratio can more obviously show the current memory space allowance and the task processing allowance of the server, and the higher the ratio of the current storage capacity of the server to the total storage capacity or the ratio of the current task number of the server to the total number of the tasks which can be served is, the more busy the corresponding server is represented and the less processable task amount is remained.
And based on the preset acquisition time period, acquiring a current load parameter set corresponding to each server in the current acquisition time period, and updating the stored current load parameters of the previous acquisition time period by using the current load parameters of the current acquisition time period to obtain the latest current load state information representing all the moments of the current acquisition time period.
Based on the method, the server information base is established and can be directly obtained and updated, and the server information base can be matched with the request characteristic information corresponding to the target video. Specifically, the request feature information corresponding to the target video to be matched includes: the method comprises the steps of format parameters, operation parameters, uploading channel parameters and uploading position parameters of a target video, wherein the uploading position parameters at least comprise an uploading IP address and accessed network operator information.
It can be understood that the format parameters of the target video may include the size, the definition, the number of frames transmitted per second (FPS) of a video picture, a video coding format, and the like of the target video, and the feature information may exclude a server that cannot support uploading the video in the above format, and avoid the situations that the uploading is successful but the video cannot be normally played, and the uploading cannot be successful due to mismatch of video formats, without making an alternative server.
In addition, different videos have different requirements on an uploading server, the operation parameters are also the limits on the uploading server, the operation parameters comprise the minimum requirement parameters of the videos on parameters such as a CPU (central processing unit) and bandwidth of the server, and on the basis, the attribute information corresponding to each server in the server information base can be compared more visually to obtain a target server set matched with the format parameters and the operation parameters of the target videos.
Further, after obtaining request feature information corresponding to a target video and specific information of an information set corresponding to each server in a server information base, determining a target server matched with the request feature information in the server information base specifically includes:
based on the state identification of each server, determining the server with the state identification as serviceable as a first server set;
determining a server in the first server, the attribute information of which is matched with the format parameter of the request characteristic information and the uploading position parameter, as a second server set according to the attribute information of each server in the first server set;
calculating to obtain a load weight value corresponding to each server in the second server set according to the current load state information of each server in the second server set;
and determining a target server set from the second server set based on a preset target load weight range, wherein the load weight value of each server in the target server set is within the target load weight range.
Specifically, before a server is selected from the server information base according to the request characteristic information of the target video, status checks are performed on all servers in the server information base, wherein the status checks may include checking of the server survival status, checking of the server uploading module, and the like, and it is determined that the server can operate normally and conditions such as server shutdown, failure, time delay, and the like do not exist. And checking whether the server can provide the service or not without considering whether the server is matched with the target characteristic information or not, and determining the server cluster which can provide the service, namely the first server set.
Further, after obtaining a first server set capable of providing a service, the information set of each server in the first server set may be matched with the request feature information according to the information set corresponding to each server in the server information base, specifically, an IP address and access network operator information corresponding to each server may be determined according to attribute information in the server information set, and matched with the upload location information in the request feature information, so as to obtain a server whose IP address is closest to a target video corresponding to the request feature information and which belongs to the same network operator, and define the server as a second server set.
Further, after a second server set matched with the request feature information is obtained, and according to the current load state information corresponding to each server in the second server set, a load weight value corresponding to each server is calculated.
It can be understood that the servers have different load weight values at different busy levels, and according to a preset target weight range, a target server set in the target weight range can be obtained through weight comparison. Specifically, the preset target weight range may be divided according to experience of how busy the server is, for example: the highest load weight value is 100, the higher the weight value is, the more idle the server is, the server with the load weight value within 0 to 50 can be defined as seriously crowded, the servers with the load weight value within 50 to 80 are defined as relatively idle, the servers with the load weight value within 80 to 100 are defined as idle, the target weight range is set as relatively idle, and then the server with the load weight value greater than 50 can be determined as a target server set. In addition, the target load weight value range may not be divided according to the busy degree, and may be directly divided according to the load weight value, for example: setting the target weight range to be greater than 78, it is possible to determine that the server greater than 78 is the target server set.
The above embodiment is to determine, as the target server set, the servers whose IP addresses corresponding to the target videos are the same as the network operator and whose load weight values are within the target load value range. If there is no server within the target load range among servers having the same IP address as the network operator and corresponding to the target video, there may be another target server set determination method including:
determining a server with the state identification as serviceable to be a first server set based on the state identification of each server;
determining a server, of which the attribute information is matched with the format parameter of the request characteristic information and the accessed operator information in the uploading position parameter, in the first server as a third server according to the attribute information of each server in the first server set;
calculating to obtain a load weight value corresponding to each server in the third server set according to the current load state information of each server in the third server set;
and determining a target server set from the third server set based on a preset target load weight range, wherein the load weight value corresponding to each server in the target server set is within the target load weight range.
It will be appreciated that this embodiment extends the range of alternative servers, reducing this constraint on server IP addresses, and only selects the server of the same network operator as the target video within the first set of servers. After the screening range is expanded, more choices can be made for the servers within the target load range.
If the above embodiment still cannot determine the final target server set, the filtering range may be expanded again, and then the method may further include:
determining a server with the state identification as serviceable to be a first server set based on the state identification of each server;
calculating to obtain a load weight value corresponding to each server in the third server set according to the current load state information of each server in the third server set;
and determining a target server set from the third server set based on a preset target load weight range, wherein the load weight value corresponding to each server in the target server set is within the target load weight range.
Specifically, the screening range of the target server set is directly expanded to the first server set, and the target server set is directly determined from the first server set according to the load weight value.
Based on the above preferred embodiments, it can be seen that the priority order of the target server set is determined to be serviceable, network operator, IP address, and the load status of the server is a necessary consideration.
However, the method of determining the target server set that matches the requested feature information of the target video is not unique. Specifically, the requesting feature information includes an upload channel parameter, and determining, in the server information base, a target server set matched with the requesting feature information, further includes:
determining a target server set matched with the uploading channel parameter of the target video in the server information base;
and controlling the target video corresponding to the request characteristic information to be uploaded based on the target server set.
It will be appreciated that in certain embodiments there may be situations where different upload platforms have significant channels of collaboration, in which case the platforms will allocate a dedicated server to the task of receiving the uploaded video for the best experience.
Further, after the target server set is determined, the target video corresponding to the request feature information is directly controlled to be uploaded based on the target server set, but one or more target servers may be in the target server set. When the target server set only has one target server, only the target video needs to be controlled to be uploaded based on the target server. When there are a plurality of target servers in the target server set, the controlling the target video corresponding to the request feature information to be uploaded based on the target server set includes:
calculating to obtain a recommendation weight value corresponding to each target server in the target server set according to the configuration characteristic information and the operation characteristic information of each target server in the target server set;
sorting the servers in the target server set according to the corresponding recommended weight values to obtain a target sorting of the target servers, and determining a first target server;
and controlling the target video corresponding to the request characteristic information to be uploaded based on the first target server.
It can be understood that there are multiple target servers in the target server set, but only one target server can be determined for uploading the target video, and in order to enable the target video to be uploaded to achieve a better uploading effect, the performance of the multiple target servers can be used as a selection condition.
Specifically, weight calculation is performed according to the configuration characteristic information and the operation characteristic information corresponding to the target server, and the performance characteristics of each target server can be compared more obviously by using the obtained recommended weight value. When calculating the recommended weight value, optionally, the weight of the feature information such as the number of Central Processing Units (CPUs) of the server, the bandwidth of the server, and the operating system in the configuration feature information and the operation feature information may be assigned, and each piece of feature information is assigned with a weight, for example: assigning values according to the number of the CPUs, wherein only 1 CPU server is assigned with 1, and 5 CPU servers are assigned with 5 … …, so that all feature information corresponding to the target servers can be assigned, and finally all assignment parameters are added to obtain a recommended weight value corresponding to the target server, and the relationship between the recommended weight value and the server performance is determined according to specific weight assignment conditions, wherein if the recommended weight value is higher, the performance of the corresponding server is better.
And sequencing according to the recommended weight value, namely sequencing the target servers according to excellent performance to obtain final target sequencing, wherein if the corresponding servers have better performance according to the higher recommended weight value, the servers with the optimal performance are in the first sequence of the target sequencing, namely, the servers with the first sequence are determined to be the first target servers, and the target videos corresponding to the request characteristic information are controlled to be uploaded based on the first target servers.
In addition, when the target server set includes a plurality of servers, in addition to the first target server described above, and further includes a second target server, when the control target video is uploaded based on the first target server, the method includes:
responding to the target video corresponding to the target video request uploaded by the lower server, and detecting the running state of the first server;
and if the first server is determined to be abnormal based on the running state of the first server, controlling the target video to be switched to a second server for uploading.
It can be understood that, when the uploading of the first target server fails, the second target server next to the first target server may be taken in order according to the target sequence, and the uploading is continuously controlled.
In addition, there is also a case that the uploading of the target video finally fails no matter one or more target servers exist in the target server set, step S110 is executed, and the video uploading server deployment process is executed once again for the target video uploading request.
Referring to fig. 3, an implementation scenario of server deployment of video upload in the present application is illustrated.
As shown in fig. 3, a user operates an upload video on a user side, where the user side is a mobile phone, and the user selects a target video to be uploaded and clicks an upload button to confirm the upload. The server receives a target video uploading request sent by the user side, and firstly collects request characteristic information of the target video. In fig. 3, more obvious video information, typically format information of the target video, appears on the mobile phone, including the name "video 1" of the target video, the size "5.41MB", and the number of transmission frames per second "56FPS" of the video picture. The server side can collect more information on the basis of explicit information, wherein the information comprises position information of a target video uploaded by the client side, network operator information uploaded by the client side and the like, the information is used as request characteristic information to be compared and screened with information sets of all servers in the server information base, a server set which has the same network operator as the target video and is closest to the address is obtained, the server information base can update current load state information of the servers according to a set collection time period, in the process of screening the servers, the server set with the optimal current load state information is selected from the server set, the server which is the least busy in the servers is used as the target server, the target video is uploaded on the basis of the target server directly, and a user does not need to confirm uploading at the client side.
Obviously, the server can be directly screened according to the uploading request of the collected target video and the uploading request, and the screening is also performed from two aspects, namely the attribute information and the current load state information, so that the finally uploaded server is the same as the target video as a network operator, the geographical position is nearest, the current least busy server, namely the current load state information is optimal, and the server can have enough space to finish the uploading task of the video. And obtaining a target server based on the deployment and screening process of the servers, and uploading the target video by using the target server, so that the situations of network congestion and unsuccessful uploading in the uploading process of the video can be reduced.
Further, with reference to fig. 4, a video upload server deployment device is described, and the video upload server deployment device described below and the video upload server deployment method described above may be referred to in correspondence with each other.
As shown in fig. 4, the video upload server deployment apparatus may include:
a request information obtaining unit 100, configured to, in response to receiving a target video upload request, obtain request feature information corresponding to the target video upload request;
a server information obtaining unit 200, configured to obtain a server information base, where an information set corresponding to each server is stored, where the information set includes attribute information of the server and current load state information;
a server information matching unit 300, configured to determine, in the server information base, a target server set that matches the request feature information;
and a control target video uploading unit 400, configured to control a target video corresponding to the request feature information to be uploaded based on the target server set.
Preferably, before the server information obtaining unit 200, the method further includes:
the attribute information acquisition subunit is used for determining attribute information corresponding to each server based on the acquired configuration characteristic information, position characteristic information and operation characteristic information of each server, wherein the position characteristic information at least comprises a server IP address and an accessed network operator;
the load information acquisition subunit is used for determining current load state information corresponding to each server according to the storage characteristic information of each server and the resource occupation information of the current server;
and the server information base acquisition subunit is used for combining the attribute information corresponding to each server with the current load state information to obtain a server information base.
Preferably, the load information acquiring subunit includes:
the load parameter acquisition subunit is used for acquiring a current load parameter set corresponding to each server in a current acquisition time period according to a preset acquisition time period, wherein the load parameter set comprises one or more of the ratio of the current storage quantity occupied by the current hard disk of the server to the total storage quantity, the occupation quantity of a Central Processing Unit (CPU), the occupation quantity of a memory and the ratio of the current task quantity of the server to the total number of the tasks which can be served;
and the load parameter updating subunit is used for updating the current load parameter set to the corresponding load parameter set in the last acquisition time period to obtain the current load state information corresponding to each server.
Preferably, the requesting the feature information includes:
the method comprises the steps that format parameters, operation parameters, uploading channel parameters and uploading position parameters of a target video are obtained, wherein the uploading position parameters at least comprise an uploading IP address and accessed network operator information;
the server information matching unit 300 includes:
and the server information matching subunit is used for determining a target server set matched with the format parameter, the operation parameter, the uploading channel parameter and the uploading position parameter of the target video in the server information base.
Preferably, the server information matching unit 300 includes:
the state determining subunit is used for determining the servers which can be served by the state identifier as a first server set based on the state identifier of each server;
the position parameter matching subunit is used for determining a server in the first server, the format parameter of the request characteristic information of which the attribute information is matched with the uploading position parameter, as a second server set according to the attribute information of each server in the first server set;
a load weight calculation first subunit, configured to calculate, according to the current load state information of each server in the second server set, a load weight value corresponding to each server in the second server set;
and the target server set acquisition first subunit is used for determining a target server set from the second server set based on a preset target load weight range, wherein the load weight value of each server in the target server set is within the target load weight range.
Preferably, if the target server set cannot be determined from the second server set, the method further includes:
the state determining subunit is used for determining the server with the state identifier as a serviceable server as a first server set based on the state identifier of each server;
the operator matching subunit is used for determining a server, in which the attribute information in the first server is matched with the format parameter of the request characteristic information and the accessed operator information in the uploading position parameter, as a third server according to the attribute information of each server in the first server set;
a load weight calculation second subunit, configured to calculate, according to current load state information of each server in the third server set, a load weight value corresponding to each server in the third server set;
and the target server set acquisition second subunit is configured to determine a target server set from the third server set based on a preset target load weight range, where a load weight value corresponding to each server in the target server set is within the target load weight range.
Preferably, if the target server set cannot be determined from the third server set, the method further includes:
the state determining subunit is used for determining the server with the state identifier as a serviceable server as a first server set based on the state identifier of each server;
a load weight calculation third subunit, configured to calculate, according to current load state information of each server in the third server set, a load weight value corresponding to each server in the third server set;
the target server set acquiring third subunit is configured to determine, based on a preset target load weight range, a target server set from the third server set, where a load weight value corresponding to each server in the target server set is within the target load weight range.
Preferably, the method further comprises the following steps:
the uploading channel matching unit is used for determining a target server set matched with the uploading channel parameters of the target video in the server information base;
and the control target video uploading unit is used for controlling the target video corresponding to the request characteristic information to be uploaded based on the target server set.
Preferably, the control target video uploading unit 400 includes:
the recommendation weight calculating subunit is configured to calculate, according to the configuration information features of the target server set, a recommendation weight value corresponding to each target server in the target server set;
the ordering subunit is configured to order the servers in the target server set according to the corresponding recommended weight values, obtain a target ordering of the target servers, and determine a first target server;
and the target server uploading subunit is used for controlling the target video corresponding to the request characteristic information to be uploaded based on the first target server.
Preferably, the target server uploading subunit includes:
a first server state detection subunit, configured to detect a first server running state in response to a target video corresponding to the target video request being uploaded based on the lower server;
and the second server uploading subunit is used for controlling the target video to be switched to a second server for uploading if the first server is determined to be abnormal based on the running state of the first server.
Preferably, the method further comprises the following steps:
and the uploading failure skip unit is used for responding to the uploading failure of the target video corresponding to the request characteristic information based on the target server set, and executing the step of responding to the received target video uploading request and acquiring the request characteristic information corresponding to the target video uploading request.
Obviously, when the video uploading server allocating device receives a request for uploading a target video, the request characteristic information corresponding to the target video can be acquired, a matched target server is found from the server information base according to the request characteristic information, the server information base comprises attribute information and current load state information of each server, and the two aspects of screening are performed, so that the acquired target server not only can support the uploading quality of the target video, but also can ensure that the target server has enough space to finish the uploading task of the target video, and the situations that a user is crowded in a network and cannot upload the target video successfully in the uploading process are reduced.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A video uploading server allocating method is applied to a server side and comprises the following steps:
in response to receiving a target video uploading request sent by a client, acquiring request characteristic information corresponding to the target video uploading request;
the method comprises the steps that a server information base is obtained, information sets corresponding to all servers included by an uploading server are stored in the server information base, and the information sets comprise attribute information and current load state information of the servers;
in the server information base, determining a target server set matched with the request feature information, including: based on the state identification of each server, determining the server with the state identification as serviceable as a first server set; determining a server in the first server set, which is matched with the format parameter of the attribute information, the request characteristic information and the uploading position parameter, as a second server set according to the attribute information corresponding to each server in the server information base; calculating to obtain a load weight value corresponding to each server in the second server set according to the current load state information of each server in the second server set; determining a target server set from the second server set based on a preset target load weight range, wherein the load weight value of each server in the target server set is within the target load weight range;
and controlling the target video corresponding to the target video uploading request to be uploaded based on the target server set.
2. The method of claim 1, prior to obtaining the server information base, further comprising:
determining attribute information corresponding to each server based on the acquired configuration characteristic information, position characteristic information and operation characteristic information corresponding to each server;
determining current load state information corresponding to each server according to the storage characteristic information of each server and the resource occupation information of the current server;
and combining the attribute information corresponding to each server with the current load state information to obtain a server information base.
3. The method according to claim 2, wherein determining the current load status information corresponding to each server according to the storage characteristic information of each server and the resource occupation information of the current server comprises:
acquiring a current load parameter set corresponding to each server in a current acquisition time period according to a preset acquisition time period, wherein the load parameter set comprises one or more of the ratio of the storage space occupied by the current hard disk of the server to the total storage amount, the processor occupation amount, the memory occupation amount and the ratio of the current task number of the server to the total number of the tasks which can be served;
and updating the current load parameter set with the corresponding load parameter set of the last acquisition time period to obtain the current load state information corresponding to each server.
4. The method of claim 1, wherein the requesting the feature information comprises:
format parameters, operation parameters, uploading channel parameters and uploading position parameters of the target video;
wherein the determining, in the server information base, a target server set matched with the request feature information includes:
and determining a target server set matched with the format parameter, the operation parameter, the uploading channel parameter and the uploading position parameter of the target video in the server information base.
5. The method of claim 1, further comprising:
according to the attribute information of each server in the first server set, determining a server in the first server set, wherein the attribute information of the server is matched with the format parameter of the request characteristic information and the accessed operator information in the uploading position parameter, and the server is a third server set;
calculating to obtain a load weight value corresponding to each server in the third server set according to the current load state information of each server in the third server set;
and determining a target server set from the third server set based on a preset target load weight range, wherein the load weight value corresponding to each server in the target server set is within the target load weight range.
6. The method of claim 5, further comprising:
calculating to obtain a load weight value corresponding to each server in the third server set according to the current load state information of each server in the third server set;
and determining a target server set from the third server set based on a preset target load weight range, wherein the load weight value corresponding to each server in the target server set is within the target load weight range.
7. The method of claim 4, further comprising:
determining a target server set matched with the uploading channel parameters of the target video in the server information base;
and controlling the target video corresponding to the request characteristic information to be uploaded based on the target server set.
8. The method according to claim 1, wherein the controlling the uploading of the target video corresponding to the target video uploading request based on the set of target servers comprises:
calculating to obtain a recommended weight value corresponding to each target server in the target server set according to the configuration information characteristics of the target server set;
sorting the servers in the target server set according to the corresponding recommended weight values to obtain a target sorting of the target servers, and determining a first target server;
controlling a target video corresponding to the request characteristic information to be uploaded based on the first target server;
wherein the controlling of the target video corresponding to the target video uploading request to be uploaded based on the first target server includes:
responding to the uploading of a target video corresponding to the target video request based on the first target server, and detecting the running state of the first target server;
and if the first target server is determined to be abnormal based on the running state of the first target server, controlling the target video to be switched to a second target server in the target server set for uploading.
9. The utility model provides a video upload server deployment device which characterized in that is applied to the server side, video upload server deployment device includes:
the device comprises a request information acquisition unit, a request feature information acquisition unit and a processing unit, wherein the request information acquisition unit is used for responding to a received target video uploading request sent by a client and acquiring request feature information corresponding to the target video uploading request;
the server information acquisition unit is used for acquiring a server information base, wherein an information set corresponding to each server included by the uploading server is stored in the server information base, and the information set comprises attribute information and current load state information of the servers;
a server information matching unit, configured to determine, in the server information base, a target server set that matches the request feature information, where the server information matching unit is specifically configured to: determining a server with the state identification as serviceable to be a first server set based on the state identification of each server; determining a server in the first server set, which is matched with the format parameter of the attribute information, the request characteristic information and the uploading position parameter, as a second server set according to the attribute information corresponding to each server in the server information base; calculating to obtain a load weight value corresponding to each server in the second server set according to the current load state information of each server in the second server set; determining a target server set from the second server set based on a preset target load weight range, wherein the load weight value of each server in the target server set is within the target load weight range;
and the control target video uploading unit is used for controlling the target video corresponding to the request characteristic information to be uploaded based on the target server set.
CN202211300706.0A 2022-10-24 2022-10-24 Video uploading server allocation method and device Active CN115361379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211300706.0A CN115361379B (en) 2022-10-24 2022-10-24 Video uploading server allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211300706.0A CN115361379B (en) 2022-10-24 2022-10-24 Video uploading server allocation method and device

Publications (2)

Publication Number Publication Date
CN115361379A CN115361379A (en) 2022-11-18
CN115361379B true CN115361379B (en) 2023-03-31

Family

ID=84008193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211300706.0A Active CN115361379B (en) 2022-10-24 2022-10-24 Video uploading server allocation method and device

Country Status (1)

Country Link
CN (1) CN115361379B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611735A (en) * 2011-12-21 2012-07-25 奇智软件(北京)有限公司 Load balancing method and system of application services

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051596A (en) * 2011-10-14 2013-04-17 腾讯科技(深圳)有限公司 Network security identification method, security detection server, client and system
CN105681387A (en) * 2015-11-26 2016-06-15 乐视云计算有限公司 Method, device and system for uploading live video
US10051048B2 (en) * 2016-06-10 2018-08-14 Comcast Cable Communications, Llc Content distribution using ad hoc mesh networks
CN111427660B (en) * 2020-03-19 2023-07-25 北京奇艺世纪科技有限公司 Method and device for scheduling uploading machine

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102611735A (en) * 2011-12-21 2012-07-25 奇智软件(北京)有限公司 Load balancing method and system of application services

Also Published As

Publication number Publication date
CN115361379A (en) 2022-11-18

Similar Documents

Publication Publication Date Title
CN109618002B (en) Micro-service gateway optimization method, device and storage medium
CN108810100B (en) Method, device and equipment for electing master node
CN104394441B (en) A kind of dispatching method, the apparatus and system of video content distribution
CN110795244B (en) Task allocation method, device, equipment and medium
US8416280B2 (en) Video conference system, band control method, conference control device, video conference terminal device and recording medium recording program
WO2022100318A1 (en) Fog node scheduling method and apparatus, and computer device and storage medium
WO2016074323A1 (en) Http scheduling system and method of content delivery network
CN110417676B (en) Scheduling method, device and scheduling network
CN112512100B (en) Slice priority-based AMF (advanced metering framework) redirection method and newly-added management network element
CN114501073B (en) Live broadcast source returning method and device
CN110661879B (en) Node scheduling method, device and system, scheduling server and terminal equipment
EP1633091A1 (en) Bandwidth control in a mobile group communication system
CN111274022B (en) Server resource allocation method and system
CN105376226B (en) Forwarding method and system of streaming media server
CN115361379B (en) Video uploading server allocation method and device
CN111629078A (en) Server scheduling method and device and server scheduling system
CN107438098B (en) Dynamic content distribution method and system
CN115023929B (en) Data synchronization method, device, system, electronic equipment and storage medium
CN115842828A (en) Gateway load balancing control method, device, equipment and readable storage medium
CN115134835B (en) Internet of things networking system and gateway selection method
CN110377417B (en) Data routing method and device
JP4961994B2 (en) BAND USE CONTROL SYSTEM, BAND USE CONTROL METHOD, DEVICE AND ITS PROGRAM
CN114124797A (en) Server routing method and device, electronic equipment and storage medium
CN107948343B (en) Method and system for determining scheduling area
CN110392074B (en) Scheduling method and device based on dynamic acceleration

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