CN110119310A - Method for distributing system resource, device, computer readable storage medium and server - Google Patents

Method for distributing system resource, device, computer readable storage medium and server Download PDF

Info

Publication number
CN110119310A
CN110119310A CN201910295784.8A CN201910295784A CN110119310A CN 110119310 A CN110119310 A CN 110119310A CN 201910295784 A CN201910295784 A CN 201910295784A CN 110119310 A CN110119310 A CN 110119310A
Authority
CN
China
Prior art keywords
task
resource allocation
historic
system resource
grade
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
CN201910295784.8A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910295784.8A priority Critical patent/CN110119310A/en
Publication of CN110119310A publication Critical patent/CN110119310A/en
Pending legal-status Critical Current

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention belongs to field of computer technology more particularly to a kind of method for distributing system resource, device, computer readable storage medium and servers.The method receiving terminal apparatus send system resource allocation request, and from the system resource allocation request in extraction system task task identification;Obtain system task information of the system task in each attribute dimensions respectively from preset each data source according to the task identification;Under preset various system resource allocation modes, the system resource allocation amount of the system task is calculated separately according to the system task information;Preferred allocation mode is chosen from various system resource allocation modes, and system resource allocation is carried out to the system task according to the preferred allocation mode, and the preferred allocation mode is the maximum system resource allocation mode of system resource allocation amount.The accuracy rate of system resource allocation result is substantially increased, and time saving and energy saving, greatly improves the efficiency of system resource allocation.

Description

Method for distributing system resource, device, computer readable storage medium and server
Technical field
The invention belongs to field of computer technology more particularly to a kind of method for distributing system resource, device, computer-readable Storage medium and server.
Background technique
In the prior art, it when carrying out system resource allocation for system task, generally requires that special staff is arranged System task is analyzed, and determines the system resource allocation amount to the system task based on the analysis results, this mode is tight The subjective experience of staff is depended on again, and the accuracy rate of last system resource allocation result is often lower, moreover, this side Formula can consume a large amount of human resources, and time-consuming and laborious, efficiency is extremely inefficient.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method for distributing system resource, device, computer-readable storage mediums Matter and server, to solve the problems, such as that existing method for distributing system resource accuracy rate is lower and efficiency is extremely inefficient.
The first aspect of the embodiment of the present invention provides a kind of method for distributing system resource, may include:
The system resource allocation request that receiving terminal apparatus is sent, and the extraction system from system resource allocation request The task identification of task;
The system task is obtained respectively in each attribute dimension from preset each data source according to the task identification System task information on degree;
Under preset various system resource allocation modes, the system is calculated separately according to the system task information and is appointed The system resource allocation amount of business;
Preferred allocation mode is chosen from various system resource allocation modes, and according to the preferred allocation mode to described System task carries out system resource allocation, and the preferred allocation mode is the maximum system resource allocation mould of system resource allocation amount Formula.
The second aspect of the embodiment of the present invention provides a kind of system resource allocation device, may include:
Distribution request receiving module, for the system resource allocation request that receiving terminal apparatus is sent, and from the system The task identification of extraction system task in resource allocation request;
Mission bit stream obtains module, described in being obtained respectively from preset each data source according to the task identification System task information of the system task in each attribute dimensions;
Resource allocation computing module, for being appointed under preset various system resource allocation modes according to the system Business information calculates separately the system resource allocation amount of the system task;
Allocation model chooses module, for the selection preferred allocation mode from various system resource allocation modes, and according to The preferred allocation mode carries out system resource allocation to the system task, and the preferred allocation mode is system resource allocation Measure maximum system resource allocation mode.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer-readable instruction, and the computer-readable instruction realizes following steps when being executed by processor:
The system resource allocation request that receiving terminal apparatus is sent, and the extraction system from system resource allocation request The task identification of task;
The system task is obtained respectively in each attribute dimension from preset each data source according to the task identification System task information on degree;
Under preset various system resource allocation modes, the system is calculated separately according to the system task information and is appointed The system resource allocation amount of business;
Preferred allocation mode is chosen from various system resource allocation modes, and according to the preferred allocation mode to described System task carries out system resource allocation, and the preferred allocation mode is the maximum system resource allocation mould of system resource allocation amount Formula.
The fourth aspect of the embodiment of the present invention provides a kind of server, including memory, processor and is stored in institute The computer-readable instruction that can be run in memory and on the processor is stated, the processor executes described computer-readable Following steps are realized when instruction:
The system resource allocation request that receiving terminal apparatus is sent, and the extraction system from system resource allocation request The task identification of task;
The system task is obtained respectively in each attribute dimension from preset each data source according to the task identification System task information on degree;
Under preset various system resource allocation modes, the system is calculated separately according to the system task information and is appointed The system resource allocation amount of business;
Preferred allocation mode is chosen from various system resource allocation modes, and according to the preferred allocation mode to described System task carries out system resource allocation, and the preferred allocation mode is the maximum system resource allocation mould of system resource allocation amount Formula.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the embodiment of the present invention passes through automatic processing Mode specifically receiving instead of relying on staff to carry out the mode of system resource allocation by hand in the prior art After the system resource allocation request that terminal device is sent, the extraction system task first from system resource allocation request Then task identification obtains the system task each respectively from preset each data source automatically according to the task identification System task information in a attribute dimensions, and under preset various system resource allocation modes, according to the system task Information calculates separately the system resource allocation amount of the system task, finally chooses from various system resource allocation modes preferred Allocation model, and system resource allocation is carried out to the system task automatically according to the preferred allocation mode.Through the invention Embodiment, using automatic processing mode instead of in the prior art rely on staff carry out system resource allocation by hand Mode gets rid of the dependence of the subjective experience for staff, substantially increases the accuracy rate of system resource allocation result, and It is time saving and energy saving without carrying out a large amount of human input, greatly improve the efficiency of system resource allocation.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of one embodiment flow chart of method for distributing system resource in the embodiment of the present invention;
Fig. 2 is the schematic diagram that system resource allocation is carried out to system task;
Fig. 3 is the signal for obtaining system task information of the system task in each attribute dimensions in each data source respectively Flow chart;
Fig. 4 is to calculate separately the system resource allocation amount of system task under preset various system resource allocation modes Schematic flow diagram;
Fig. 5 is the schematic diagram that task-set division is carried out to historic task;
Fig. 6 is a kind of one embodiment structure chart of system resource allocation device in the embodiment of the present invention;
Fig. 7 is a kind of schematic block diagram of server in the embodiment of the present invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Referring to Fig. 1, a kind of one embodiment of method for distributing system resource may include: in the embodiment of the present invention
Step S101, the system resource allocation request that receiving terminal apparatus is sent, and requested from the system resource allocation The task identification of middle extraction system task.
User can send system resource allocation request to server by the terminal device of oneself, so that server brother is pre- If system resource pond in be system task distributing system resource corresponding with the user.For example, in user to financial institution Shen In the scene that please be provided a loan, all funds for loan provided by financial institution can be seen as a system resource pond, user The behavior of application loan may be regarded as the system task of a system resource to be allocated, as shown in Figure 2.
Each system task has a unique task identification to be corresponding to it, which can be the identity of user Demonstrate,prove number, phone number, social security number, common reserve fund number or drivers license number etc..
Server can therefrom extract the task identification of system task after receiving system resource allocation request.
Step S102, the system task is obtained each from preset each data source according to the task identification respectively System task information in a attribute dimensions.
Each system task be it is multifarious, in order to characterize these difference between each system task, the present embodiment In a complete system task can be constructed by the system task information in multiple and different attribute dimensions, it is specific using more Few attribute dimensions, and which attribute dimensions is used, it can be configured according to the actual situation.
In one kind in the specific implementation, this programme can be using the personal information of user's various aspects as each of system task A attribute dimensions, for example, each system task can be divided into insurance, housing loan, private car, common reserve fund, monthly income etc. attribute Dimension.
Each attribute dimensions can be divided into multiple sub- dimensions again according to the actual situation, such as: insuring this attribute dimensions can To be divided into the paid time limit and pay the two sub- dimensions of premium value year;This attribute dimensions of housing loan can be divided into months of having refunded With the two sub- dimensions of housing loan amount of monthly repayment;This attribute dimensions of private car can be divided into car fare and the two sub- dimensions of vehicle age Degree;This attribute dimensions of common reserve fund can be divided into common reserve fund and pay this sub- dimension of radix;This attribute dimensions of monthly income can To be divided into income type (types such as wage-earners, self-employed worker/boss) and monthly income volume the two sub- dimensions.
In order to distribute reasonable system resource, server according to specific actual conditions for system task to be processed Firstly the need of the system task information for obtaining system task in each attribute dimensions is got, by the letter in these attribute dimensions Cease the foundation as distributing system resource.
The present embodiment one kind in the specific implementation, these information can be obtained by way of questionnaire survey, for example, clothes Business device can generate corresponding e-survey questionnaire automatically according to the information of required acquisition, ask in the questionnaire including several Topic, each problem both correspond to an attribute dimensions or sub- dimension for system task.The questionnaire can be issued to by server On the terminal device of the customer manager of the terminal device of user or the user, user only needs simply to answer these problems, Server can therefrom extract required information.
In the specific implementation, it can also be in the case where obtaining user's authorization by such as Fig. 3 institute in the another kind of the present embodiment The process shown obtains these information from each data source of storage userspersonal information:
Step S1021, Xiang Suoshu terminal device sends data grant request.
It include the device identification of server in the data grant request, the device identification is uniquely to characterize the service The mark of device.
Step S1022, the data grant information of the terminal device feedback is received.
The terminal device of the user will record the equipment mark of the lower server after receiving data grant request Know, and feed back the data grant information of the user to the execute server, carries user in the data grant information Digital signature.
Step S1023, server corresponding with the sr data source is chosen from preset server list as data Server.
Wherein, each data source corresponds to the system task information at least one attribute dimensions, these data sources include But be not limited to residence management mechanism, manpower management mechanism, industrial and commercial administration mechanism etc..The server list has recorded each Corresponding relationship between data source and each server, 1≤sr≤SourceNum, SourceNum are the sum of data source, tool Body is as shown in the table:
Data source Server (IP address)
Data source 1 168.108.32.7
Data source 2 168.17.86.19
Data source 3 168.8.20.68
Data source 4 168.59.48.93
Step S1024, Xiang Suoshu data server sends request of data.
Include the task identification and the data grant information in the request of data, further includes setting for the server Standby mark.
Step S1025, the system task information for the system task that the data server is sent is received.
The data server checks the data grant information after receiving the request of data, confirmation The authenticity of digital signature finds the system according to the task identification in the local database and appoints if confirmation The system task information of business, and send to the execute server system task information of the system task.
By above procedure, under the premise of obtaining user's authorization, then the letter of user is obtained from each data server Breath, ensure that the safety of user information.
System task to be processed is being got after the system task information in above each attribute dimensions, server It can be the mission bit stream vector of the system task by these information structurings, specific as follows shown:
TskInfoVec=(SbDimInfo1,SbDimInfo2,...,SbDimInfodn,...,SbDimInfoDN)
Wherein, dn is the serial number of each attribute dimensions, and 1≤dn≤DN, DN are the sum of each attribute dimensions, SbDimInfodnFor system task information of the system task in the dn attribute dimensions, TskInfoVec appoints for the system The mission bit stream vector of business.
Step S103, it under preset various system resource allocation modes, is calculated separately according to the system task information The system resource allocation amount of the system task.
Can be there are many different system resource allocation modes when carrying out system resource allocation in the present embodiment, every kind System resource allocation mode can correspond to a kind of loan product, for example, system resource allocation mode includes but is not limited to new one Loan, declaration form loan, small amount consumption is borrowed, vehicle is to the specific mode of loan, emergency wallet, credit wallet etc..
In the present embodiment, the sum of various system resource allocation modes is denoted as TypeNum, TypeNum is greater than 1 Integer, and by these system resource allocation modes according to 1,2,3 ..., tn ..., the serial number of TypeNum carry out label, wherein 1 ≤tn≤TypeNum。
For same system task, if using different system resource allocation modes, what is be finally assigned is System stock number may have differences, and can be calculated separately a variety of different system resource allocation modes the case where in this programme Under, the system resource allocation amount of system task to be processed, detailed process is as shown in Figure 4:
Step S1031, each under tn kind system resource allocation mode from being obtained respectively in preset historical data base The resource allocation of a historic task records.
The core concept that the present embodiment carries out system resource allocation is based on the system resource allocation situation to historic task Big data analysis, carry out system resource point as to current system task for the case where the system resource allocation to historic task The foundation matched.
A historical data base is pre-set in the present embodiment, for the resource allocation conditions to each historic task into The resource allocation record of row record, each historic task includes two parts, and first part is the historic task of the historic task Information can be stored in the form of mission bit stream vector, and second part is the history resource allocation of the historic task.
Step S1032, each historic task is divided into CN grade according to the history resource allocation.
In the present embodiment, the system resource allocation amount that system task is assigned to is divided into CN grade, and by these etc. Grade according to 1,2,3 ..., cn ..., the serial number of CN carry out label, wherein 1≤cn≤CN, CN are the integer greater than 1.Each grade It is for the system resource allocation amount interval range set, for example, CN=5 can be set, wherein grade 1 is corresponding System resource allocation amount interval range is 0 to 1 resource unit, and the corresponding amount of grade 2 is 1 to 2 resource list Member ..., the corresponding amount of class 5 are 4 to 5 resource units, wherein 1 resource units can be equivalent to 10,000 yuan The amount of the loan.It is of course also possible to which other similar grade corresponding relationships are arranged according to the actual situation, it is not specifically limited herein.
Step S1033, institute is calculated separately according to the historic task information of the system task information and each historic task State the diversity factor between system task and the historic task of each grade.
Firstly, as shown in figure 5, the historic task of the cn grade can be respectively divided into first task collection, second Business collection and third task-set, the first task collection includes each historic task that system resource has recycled, second task Collection include system resource be used in each historic task, the third task-set include system resource be lost it is each Historic task.
The mission bit stream vector of each historic task is concentrated to be denoted as first task:
FsHsVecfn,cn=(FsHsInfofn,cn,1,FsHsInfofn,cn,2,...,FsHsInfofn,cn,dn,..., FsHsInfofn,cn,DN)
Wherein, fn is the serial number of each historic task in first data set, 1≤fn≤FNcn, FNcnIt is cn The sum for the historic task that the first task of grade is concentrated, FsHsInfofn,cn,dnIt is concentrated for the first task of the cn grade Historic task information of the fn historic task in the dn attribute dimensions, FsHsVecfn,cnFor the first of the cn grade The mission bit stream vector for the fn historic task concentrated of being engaged in.
The mission bit stream vector of historic task each in second task-set is denoted as:
SdHsVecsn,cn=(SdHsInfosn,cn,1,SdHsInfosn,cn,2,...,SdHsInfosn,cn,dn,..., SdHsInfosn,cn,DN)
Wherein, sn is the serial number of each historic task in second data set, 1≤sn≤SNcn, SNcnIt is cn The sum of historic task in second task-set of grade, SdHsInfosn,cn,dnIn the second task-set for the cn grade Historic task information of the sn historic task in the dn attribute dimensions, SdHsVecsn,cnIt is second of the cn grade The mission bit stream vector for the sn historic task concentrated of being engaged in.
The mission bit stream vector of historic task each in third task-set is denoted as:
TdHsVecrn,cn=(TdHsInforn,cn,1,TdHsInforn,cn,2,...,TdHsInforn,cn,dn,..., TdHsInforn,cn,DN)
Wherein, rn is the serial number of each historic task in the third data set, 1≤rn≤RNcn, RNcnIt is cn The sum of historic task in the third task-set of grade, TdHsInforn,cn,dnIn third task-set for the cn grade Historic task information of the rn historic task in the dn attribute dimensions, TdHsVecrn,cnAppoint for the third of the cn grade The mission bit stream vector for the sn historic task concentrated of being engaged in.
Then, the system is calculated separately according to the historic task information of the system task information and each historic task Diversity factor between task and each task-set.
For example, the diversity factor between the system task and each task-set can be calculated separately according to the following formula:
Wherein, FsDiscnFor the diversity factor between the system task and the first task collection, SdDiscnFor the system Diversity factor between system task and second task-set, TdDiscnBetween the system task and the third task-set Diversity factor.
Finally, calculating the diversity factor between the system task and the historic task of the cn grade according to the following formula:
Discn=Coef1×FsDiscn+Coef2×SdDiscn+Coef3×TdDiscn
Wherein, Coef1、Coef2、Coef3Respectively preset weight coefficient, and meet:DiscnFor the diversity factor between the system task and the historic task of the cn grade. It can be seen that different task-sets be for the influence degree of final result it is each identical, these three weight coefficients it is specific Value can be configured according to the actual situation, for example, Coef can be set1=0.7, Coef2=0.2, Coef3=0.1, Coef can be set1=0.5, Coef2=0.3, Coef3=0.2, other values etc. can also be set.
Step S1034, the system is calculated according to the diversity factor between the system task and the historic task of each grade The system resource allocation amount of system task.
It is possible, firstly, to determine the grade of the system task according to the following formula:
TaskClass=ArgMax (Dis1,Dis2,...,Discn,...,DisCN)
Wherein, ArgMax is maximum independent variable function, and TaskClass is the serial number of the grade of the system task.
It is then possible to calculate the system resource allocation amount of the system task according to the following formula:
Wherein, hn is the serial number of the historic task of the TaskClass grade, 1≤hn≤TaskNum, TaskNum the The sum of the historic task of TaskClass grade, HsRsrQuohnFor the hn historic task of the TaskClass grade History resource allocation, RsrQuotnFor the system task that is calculated under tn kind system resource allocation mode System resource allocation amount.
Step S104, preferred allocation mode is chosen from various system resource allocation modes, and according to the preferred allocation Mode carries out system resource allocation to the system task.
The preferred allocation mode is the maximum system resource allocation mode of system resource allocation amount, it can according to the following formula Choose the preferred allocation mode:
SelType=ArgMax (RsrQuo1,RsrQuo2,...,RsrQuotn,...,RsrQuoTypeNum)
Wherein, SelType is the serial number of the preferred allocation mode.
After selecting the preferred allocation mode, can according to the preferred allocation mode to the system task into Row system resource allocation.
In conclusion the embodiment of the present invention is by way of automatic processing instead of in the prior art by staff The mode of system resource allocation is carried out by hand, specifically, after receiving the system resource allocation request of terminal device transmission, First from the system resource allocation request in extraction system task task identification, then according to the task identification automatically from System task information of the system task in each attribute dimensions is obtained in preset each data source respectively, and default Various system resource allocation modes under, the system resource point of the system task is calculated separately according to the system task information Dosage finally chooses preferred allocation mode from various system resource allocation modes, and automatic according to the preferred allocation mode System resource allocation is carried out to the system task.Through the embodiment of the present invention, using the mode of automatic processing instead of existing Have in technology and carry out the mode of system resource allocation by hand by staff, gets rid of the subjective experience for staff It relies on, substantially increases the accuracy rate of system resource allocation result, and without carrying out a large amount of human input, it is time saving and energy saving, greatly The efficiency of system resource allocation is improved greatly.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to a kind of method for distributing system resource described in foregoing embodiments, Fig. 6 shows offer of the embodiment of the present invention A kind of system resource allocation device one embodiment structure chart.
In the present embodiment, a kind of system resource allocation device may include:
Distribution request receiving module 601, for the system resource allocation request that receiving terminal apparatus is sent, and from the system The task identification of extraction system task in resource allocation request of uniting;
Mission bit stream obtains module 602, for being obtained respectively from preset each data source according to the task identification System task information of the system task in each attribute dimensions;
Resource allocation computing module 603 is used under preset various system resource allocation modes, according to the system Mission bit stream calculates separately the system resource allocation amount of the system task;
Allocation model chooses module 604, for choosing preferred allocation mode from various system resource allocation modes, and presses System resource allocation is carried out to the system task according to the preferred allocation mode, the preferred allocation mode is system resource point The maximum system resource allocation mode of dosage.
Further, the resource allocation computing module may include:
Resource allocation records acquiring unit, for being obtained respectively from preset historical data base in tn kind system resource The resource allocation of each historic task under allocation model records, and 1≤tn≤TypeNum, TypeNum are various system resources point Sum with mode, and TypeNum is the integer greater than 1, each resource allocation record includes historic task information and goes through History resource allocation;
Grade classification unit, for each historic task to be divided into CN grade according to the history resource allocation, CN is the integer greater than 1;
Diversity factor computing unit, for according to the historic task information of the system task information and each historic task point The diversity factor between the system task and the historic task of each grade is not calculated;
Sendout computing unit, based on according to the diversity factor between the system task and the historic task of each grade Calculate the system resource allocation amount of the system task.
Further, the diversity factor computing unit may include:
Task-set divides subelement, for the historic task of the cn grade to be respectively divided into first task collection, second Task-set and third task-set, the first task collection include each historic task that system resource has recycled, and described second Business collection include system resource be used in each historic task, the third task-set include system resource be lost it is each A historic task, 1≤cn≤CN;
First computation subunit, for according to the historic task information of the system task information and each historic task point The diversity factor between the system task and each task-set is not calculated;
Second computation subunit, for being calculated between the system task and the historic task of the cn grade according to the following formula Diversity factor:
Discn=Coef1×FsDiscn+Coef2×SdDiscn+Coef3×TdDiscn
Wherein, FsDiscnFor the diversity factor between the system task and the first task collection, SdDiscnFor the system Diversity factor between system task and second task-set, TdDiscnBetween the system task and the third task-set Diversity factor, Coef1、Coef2、Coef3Respectively preset weight coefficient, and meet: DiscnFor the diversity factor between the system task and the historic task of the cn grade.
Further, first computation subunit be specifically used for calculate separately according to the following formula the system task with it is each Diversity factor between task-set:
Wherein, dn is the serial number of each attribute dimensions, and 1≤dn≤DN, DN are the sum of each attribute dimensions, SbDimInfodnFor system task information of the system task in the dn attribute dimensions, fn is in first data set Each historic task serial number, 1≤fn≤FNcn, FNcnThe historic task concentrated for the first task of the cn grade it is total Number, FsHsInfofn,cn,dnThe fn historic task concentrated for the first task of the cn grade is in the dn attribute dimensions Historic task information, sn be second data set in each historic task serial number, 1≤sn≤SNcn, SNcnFor cn The sum of historic task in second task-set of a grade, SdHsInfosn,cn,dnIn the second task-set for the cn grade Historic task information of the sn historic task in the dn attribute dimensions, rn is that each in the third data set goes through The serial number of history task, 1≤rn≤RNcn, RNcnFor the sum of the historic task in the third task-set of the cn grade, TdHsInforn,cn,dnFor the rn historic task going through in the dn attribute dimensions in the third task-set of the cn grade History mission bit stream.
Further, the mission bit stream acquisition module may include:
Authorization requests transmission unit, for sending data grant request to the terminal device;
Authorization message receiving unit, for receiving the data grant information of the terminal device feedback;
Data server selection unit, for choosing clothes corresponding with the sr data source from preset server list Device be engaged in as data server, the server list has recorded the corresponding relationship between each data source and each server, and 1 ≤ sr≤SourceNum, SourceNum are the sum of each data source;
Request of data transmission unit is used to send request of data to the data server, includes in the request of data The task identification and the data grant information;
Mission bit stream receiving unit, for receiving the system task letter for the system task that the data server is sent Breath.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description, The specific work process of module and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
The schematic block diagram that Fig. 7 shows a kind of server provided in an embodiment of the present invention illustrates only for ease of description Part related to the embodiment of the present invention.
In the present embodiment, the server 7 may include: processor 70, memory 71 and be stored in the storage In device 71 and the computer-readable instruction 72 that can run on the processor 70, such as execute above-mentioned system resource allocation side The computer-readable instruction of method.The processor 70 realizes above-mentioned each system resource when executing the computer-readable instruction 72 Step in distribution method embodiment, such as step S101 to S104 shown in FIG. 1.Alternatively, the processor 70 execute it is described The function of each module/unit in above-mentioned each Installation practice, such as module 601 shown in Fig. 6 are realized when computer-readable instruction 72 To 604 function.
Illustratively, the computer-readable instruction 72 can be divided into one or more module/units, one Or multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Institute Stating one or more module/units can be the series of computation machine readable instruction section that can complete specific function, the instruction segment For describing implementation procedure of the computer-readable instruction 72 in the server 7.
The processor 70 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 71 can be the internal storage unit of the server 7, such as the hard disk or memory of server 7. The memory 71 is also possible to the External memory equipment of the server 7, such as the plug-in type being equipped on the server 7 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 71 can also both include the internal storage unit of the server 7 or wrap Include External memory equipment.The memory 71 is for storing needed for the computer-readable instruction and the server 7 it Its instruction and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
The functional units in various embodiments of the present invention may be integrated into one processing unit, is also possible to each Unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both may be used To use formal implementation of hardware, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including several computer-readable instructions are used so that one Platform computer equipment (can be personal computer, server or the network equipment etc.) executes described in each embodiment of the present invention The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with Store the medium of computer-readable instruction.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method for distributing system resource characterized by comprising
The system resource allocation request that receiving terminal apparatus is sent, and the extraction system task from system resource allocation request Task identification;
The system task is obtained respectively in each attribute dimensions from preset each data source according to the task identification System task information;
Under preset various system resource allocation modes, the system task is calculated separately according to the system task information System resource allocation amount;
Preferred allocation mode is chosen from various system resource allocation modes, and according to the preferred allocation mode to the system Task carries out system resource allocation, and the preferred allocation mode is the maximum system resource allocation mode of system resource allocation amount.
2. system according to claim 1 resource allocation methods, which is characterized in that described in preset various system resources Under allocation model, include: according to the system resource allocation amount that the system task information calculates separately the system task
From the money for obtaining each historic task under tn kind system resource allocation mode in preset historical data base respectively Source assignment record, 1≤tn≤TypeNum, TypeNum be various system resource allocation modes sum, and TypeNum be greater than 1 integer, each resource allocation record includes historic task information and history resource allocation;
Each historic task is divided into CN grade according to the history resource allocation, CN is the integer greater than 1;
The system task and each is calculated separately according to the historic task information of the system task information and each historic task Diversity factor between the historic task of a grade;
The system money of the system task is calculated according to the diversity factor between the system task and the historic task of each grade Source sendout.
3. method for distributing system resource according to claim 2, which is characterized in that described according to the system task information And the historic task information of each historic task calculates separately the difference between the system task and the historic task of each grade Different degree includes:
The historic task of the cn grade is respectively divided into first task collection, the second task-set and third task-set, described One task-set includes each historic task that system resource has recycled, and second task-set includes during system resource is used Each historic task, the third task-set includes each historic task that system resource has been lost, 1≤cn≤CN;
The system task and each is calculated separately according to the historic task information of the system task information and each historic task Diversity factor between a task-set;
The diversity factor between the system task and the historic task of the cn grade is calculated according to the following formula:
Discn=Coef1×FsDiscn+Coef2×SdDiscn+Coef3×TdDiscn
Wherein, FsDiscnFor the diversity factor between the system task and the first task collection, SdDiscnAppoint for the system Diversity factor between business and second task-set, TdDiscnFor the difference between the system task and the third task-set Degree, Coef1、Coef2、Coef3Respectively preset weight coefficient, and meet:DiscnFor Diversity factor between the system task and the historic task of the cn grade.
4. method for distributing system resource according to claim 3, which is characterized in that described according to the system task information And the diversity factor that the historic task information of each historic task calculates separately between the system task and each task-set includes:
The diversity factor between the system task and each task-set is calculated separately according to the following formula:
Wherein, dn is the serial number of each attribute dimensions, and 1≤dn≤DN, DN are the sum of each attribute dimensions, SbDimInfodnFor System task information of the system task in the dn attribute dimensions, fn are that each history in first data set is appointed The serial number of business, 1≤fn≤FNcn, FNcnFor the sum for the historic task that the first task of the cn grade is concentrated, FsHsInfofn,cn,dnThe fn historic task the going through in the dn attribute dimensions concentrated for the first task of the cn grade History mission bit stream, sn are the serial number of each historic task in second data set, 1≤sn≤SNcn, SNcnIt is cn etc. The sum of historic task in second task-set of grade, SdHsInfosn,cn,dnFor in the second task-set of the cn grade Historic task information of the sn historic task in the dn attribute dimensions, rn are that each history in the third data set is appointed The serial number of business, 1≤rn≤RNcn, RNcnFor the sum of the historic task in the third task-set of the cn grade, TdHsInforn,cn,dnFor the rn historic task going through in the dn attribute dimensions in the third task-set of the cn grade History mission bit stream.
5. method for distributing system resource according to any one of claim 1 to 4, which is characterized in that described according to Task identification obtains system task letter of the system task in each attribute dimensions respectively from preset each data source Breath includes:
Data grant request is sent to the terminal device;
Receive the data grant information of the terminal device feedback;
Server corresponding with the sr data source is chosen from preset server list as data server, the service Device the list records corresponding relationship between each data source and each server, 1≤sr≤SourceNum, SourceNum are The sum of each data source;
Request of data is sent to the data server, includes the task identification and the data grant in the request of data Information;
Receive the system task information for the system task that the data server is sent.
6. a kind of system resource allocation device characterized by comprising
Distribution request receiving module, for the system resource allocation request that receiving terminal apparatus is sent, and from the system resource The task identification of extraction system task in distribution request;
Mission bit stream obtains module, for obtaining the system respectively from preset each data source according to the task identification System task information of the task in each attribute dimensions;
Resource allocation computing module, for being believed under preset various system resource allocation modes according to the system task Breath calculates separately the system resource allocation amount of the system task;
Allocation model chooses module, for choosing preferred allocation mode from various system resource allocation modes, and according to described Preferred allocation mode to the system task carry out system resource allocation, the preferred allocation mode be system resource allocation amount most Big system resource allocation mode.
7. system resource allocation device according to claim 6, which is characterized in that the resource allocation computing module packet It includes:
Resource allocation records acquiring unit, for being obtained respectively from preset historical data base in tn kind system resource allocation The resource allocation of each historic task under mode records, and 1≤tn≤TypeNum, TypeNum are various system resource allocation moulds The sum of formula, and TypeNum is the integer greater than 1, each resource allocation record includes that historic task information and history provide Source sendout;
Grade classification unit, for each historic task to be divided into CN grade according to the history resource allocation, CN is Integer greater than 1;
Diversity factor computing unit, by according to the historic task information of the system task information and each historic task respectively based on Calculate the diversity factor between the system task and the historic task of each grade;
Sendout computing unit, for calculating institute according to the diversity factor between the system task and the historic task of each grade State the system resource allocation amount of system task.
8. system resource allocation device according to claim 7, which is characterized in that the diversity factor computing unit includes:
Task-set divides subelement, for the historic task of the cn grade to be respectively divided into first task collection, the second task Collection and third task-set, the first task collection includes each historic task that system resource has recycled, second task-set Including system resource be used in each historic task, the third task-set includes each going through of being lost of system resource History task, 1≤cn≤CN;
First computation subunit, by according to the historic task information of the system task information and each historic task respectively based on Calculate the diversity factor between the system task and each task-set;
Second computation subunit, for calculating the difference between the system task and the historic task of the cn grade according to the following formula Different degree:
Discn=Coef1×FsDiscn+Coef2×SdDiscn+Coef3×TdDiscn
Wherein, FsDiscnFor the diversity factor between the system task and the first task collection, SdDiscnAppoint for the system Diversity factor between business and second task-set, TdDiscnFor the difference between the system task and the third task-set Degree, Coef1、Coef2、Coef3Respectively preset weight coefficient, and meet:DiscnFor institute State the diversity factor between system task and the historic task of the cn grade.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer-readable instruction, special Sign is, the system money as described in any one of claims 1 to 5 is realized when the computer-readable instruction is executed by processor The step of source distribution method.
10. a kind of server, including memory, processor and storage can transport in the memory and on the processor Capable computer-readable instruction, which is characterized in that realized when the processor executes the computer-readable instruction as right is wanted The step of method for distributing system resource described in asking any one of 1 to 5.
CN201910295784.8A 2019-04-12 2019-04-12 Method for distributing system resource, device, computer readable storage medium and server Pending CN110119310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910295784.8A CN110119310A (en) 2019-04-12 2019-04-12 Method for distributing system resource, device, computer readable storage medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910295784.8A CN110119310A (en) 2019-04-12 2019-04-12 Method for distributing system resource, device, computer readable storage medium and server

Publications (1)

Publication Number Publication Date
CN110119310A true CN110119310A (en) 2019-08-13

Family

ID=67521016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910295784.8A Pending CN110119310A (en) 2019-04-12 2019-04-12 Method for distributing system resource, device, computer readable storage medium and server

Country Status (1)

Country Link
CN (1) CN110119310A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110728569A (en) * 2019-09-06 2020-01-24 深圳壹账通智能科技有限公司 Distribution test method, device, terminal and storage medium
CN111209111A (en) * 2019-12-31 2020-05-29 卓尔智联(武汉)研究院有限公司 Resource allocation method, device, equipment and storage medium based on block chain system
CN112667376A (en) * 2020-12-23 2021-04-16 数字广东网络建设有限公司 Task scheduling processing method and device, computer equipment and storage medium
CN114238286A (en) * 2022-02-28 2022-03-25 连连(杭州)信息技术有限公司 Data warehouse data processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203739A (en) * 2008-11-05 2011-09-28 松下电器产业株式会社 Resource allocation method, program, and resource allocation apparatus
US20160139963A1 (en) * 2014-11-19 2016-05-19 International Business Machines Corporation Virtual computing power management
CN107688492A (en) * 2016-08-05 2018-02-13 阿里巴巴集团控股有限公司 Control method, device and the cluster resource management system of resource
CN108874535A (en) * 2018-05-14 2018-11-23 中国平安人寿保险股份有限公司 A kind of task adjusting method, computer readable storage medium and terminal device
CN108984301A (en) * 2018-07-04 2018-12-11 中国人民解放军国防科技大学 Self-adaptive cloud resource allocation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203739A (en) * 2008-11-05 2011-09-28 松下电器产业株式会社 Resource allocation method, program, and resource allocation apparatus
US20160139963A1 (en) * 2014-11-19 2016-05-19 International Business Machines Corporation Virtual computing power management
CN107688492A (en) * 2016-08-05 2018-02-13 阿里巴巴集团控股有限公司 Control method, device and the cluster resource management system of resource
CN108874535A (en) * 2018-05-14 2018-11-23 中国平安人寿保险股份有限公司 A kind of task adjusting method, computer readable storage medium and terminal device
CN108984301A (en) * 2018-07-04 2018-12-11 中国人民解放军国防科技大学 Self-adaptive cloud resource allocation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭树林;汤可成;高万明;王翔;: "NAVDAT台站发射时隙集中协调与实现", 无线互联科技, no. 03, 10 February 2018 (2018-02-10) *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110728569A (en) * 2019-09-06 2020-01-24 深圳壹账通智能科技有限公司 Distribution test method, device, terminal and storage medium
CN111209111A (en) * 2019-12-31 2020-05-29 卓尔智联(武汉)研究院有限公司 Resource allocation method, device, equipment and storage medium based on block chain system
CN112667376A (en) * 2020-12-23 2021-04-16 数字广东网络建设有限公司 Task scheduling processing method and device, computer equipment and storage medium
CN114238286A (en) * 2022-02-28 2022-03-25 连连(杭州)信息技术有限公司 Data warehouse data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110119310A (en) Method for distributing system resource, device, computer readable storage medium and server
CN110163474A (en) A kind of method and apparatus of task distribution
CN108665366A (en) Determine method, terminal device and the computer readable storage medium of consumer's risk grade
CN108615119A (en) A kind of recognition methods of abnormal user and equipment
CN108510140A (en) A kind of workload allocations method, storage medium and server
CN109377214A (en) A kind of method of payment, computer readable storage medium and server
US20200320530A1 (en) Maintenance plant management method, system and data management server
CN106776651A (en) The processing method and processing device of business dispute
CN110110269A (en) A kind of event subscription method and device based on block chain
CN108629685A (en) loan product attribute determining method and server
CN110276674A (en) Data processing method and system, storage medium, electronic device
CN111476460A (en) Method, equipment and medium for intelligent operation scheduling of bank self-service equipment
CN109858927A (en) A kind of trade company's checking method, device, computer readable storage medium and server
CN110046868A (en) A kind of method and apparatus handling msu message
JP7240285B2 (en) Electronic Community Currency Operation System, Electronic Community Currency Operation Server, and Electronic Community Currency Operation Method
CN109003039A (en) Punishment resolution generation method, device, equipment and storage medium
CN108510398A (en) Annuity method for processing business, system, server and storage medium
CN109255583A (en) A kind of information sharing method, device, relevant device and medium
CN110489394A (en) Intermediate data processing method and equipment
CN110458555A (en) Dispute process method, apparatus, electronic equipment and storage medium
CN111105306A (en) Resource transaction strategy determination method and device and server
CN110135190A (en) Data managing method, server and computer storage medium
CN108805324A (en) A kind of distribution method and its equipment of corporate resources
CN109190946A (en) Business revenue data determination method, device, electronic equipment and storage medium
CN108629674A (en) Auction the distribution method and terminal device of income

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