Nothing Special   »   [go: up one dir, main page]

CN110532064A - Method, apparatus, equipment and the storage medium of computing resource are provided - Google Patents

Method, apparatus, equipment and the storage medium of computing resource are provided Download PDF

Info

Publication number
CN110532064A
CN110532064A CN201910795325.6A CN201910795325A CN110532064A CN 110532064 A CN110532064 A CN 110532064A CN 201910795325 A CN201910795325 A CN 201910795325A CN 110532064 A CN110532064 A CN 110532064A
Authority
CN
China
Prior art keywords
computing resource
container
virtual machine
configuration file
module
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
CN201910795325.6A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910795325.6A priority Critical patent/CN110532064A/en
Publication of CN110532064A publication Critical patent/CN110532064A/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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

In accordance with an embodiment of the present disclosure, method, apparatus, equipment and the storage medium of a kind of offer computing resource are provided, and are related to field of cloud calculation.This method comprises: being directed to the distribution request of computing resource in response to receiving, container is created in virtual machine, is configured with driving associated with computing resource in virtual machine;It obtains by the configuration file corresponding with computing resource of driving creation;And configuration file is loaded into container, it allows the container to access computing resource via driving based on the use request for computing resource.By providing computing resource using container, the program makes user calculate device drives from installation and configure the burden of programmed environment, and provides calculating isolation for user.

Description

Method, apparatus, equipment and the storage medium of computing resource are provided
Technical field
Embodiment of the disclosure relates generally to computer field, and more particularly, to provide computing resource method, Device, equipment and computer readable storage medium.
Background technique
With the development of computer technology, cloud computing has become the technology that people increasingly pay close attention to.Machine learning, Many algorithms such as big data analysis generally require to rely on the computing resource (example provided by cloud platform with powerful calculating ability Such as, graphics calculations unit (GPU)).
Cloud platform when providing a user computing resource, the different work that user is submitted often be often desirable to by every Liftoff execution.In addition, being often also desirable that and mitigating when configuration calculates environment when user is when using the computing resource of cloud platform Burden.
Summary of the invention
According to an example embodiment of the present disclosure, a kind of scheme of offer computing resource is provided.
In the first aspect of the disclosure, a kind of method of offer computing resource is provided.This method comprises: in response to connecing The distribution request for computing resource is received, container is created in virtual machine, is configured in virtual machine associated with computing resource Driving;It obtains by the configuration file corresponding with computing resource of driving creation;And configuration file is loaded into container, It allows the container to access computing resource via driving based on the use request for computing resource.
In the second aspect of the disclosure, provide a kind of for providing the device of computing resource.The device includes: creation Module is configured to respond to receive the distribution request for computing resource, and container is created in virtual machine, is matched in virtual machine It is equipped with driving associated with computing resource;Module is obtained, is configured as obtaining by the corresponding with computing resource of driving creation Configuration file;And configuration file loading module, it is configured as configuration file being loaded into container, allows the container to base Computing resource is accessed via driving in the use request for computing resource.
In the third aspect of the disclosure, a kind of equipment, including one or more processors are provided;And storage dress It sets, for storing one or more programs, when one or more programs are executed by one or more processors, so that one or more The method that a processor realizes the first aspect according to the disclosure.
In the fourth aspect of the disclosure, a kind of computer readable storage medium is provided, is stored thereon with computer journey Sequence realizes the method for the first aspect according to the disclosure when program is executed by processor.
It should be appreciated that content described in Summary be not intended to limit embodiment of the disclosure key or Important feature, it is also non-for limiting the scope of the present disclosure.The other feature of the disclosure will become easy reason by description below Solution.
Detailed description of the invention
It refers to the following detailed description in conjunction with the accompanying drawings, the above and other feature, advantage and aspect of each embodiment of the disclosure It will be apparent.In the accompanying drawings, the same or similar attached drawing mark indicates the same or similar element, in which:
Multiple embodiments that Fig. 1 shows the disclosure can be in the schematic diagram for the example context wherein realized;
Fig. 2 shows the flow charts of the process according to an embodiment of the present disclosure for providing computing resource;
Fig. 3 shows the schematic diagram of offer computing resource according to an embodiment of the present disclosure;
Fig. 4 shows the frame of the device for providing computing resource of the example implementations according to present disclosure Figure;And
Fig. 5 shows the block diagram that can implement the calculating equipment of multiple embodiments of the disclosure.
Specific embodiment
Embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the certain of the disclosure in attached drawing Embodiment, it should be understood that, the disclosure can be realized by various forms, and should not be construed as being limited to this In the embodiment that illustrates, providing these embodiments on the contrary is in order to more thorough and be fully understood by the disclosure.It should be understood that It is that being given for example only property of the accompanying drawings and embodiments effect of the disclosure is not intended to limit the protection scope of the disclosure.
In the description of embodiment of the disclosure, term " includes " and its similar term should be understood as that opening includes, I.e. " including but not limited to ".Term "based" should be understood as " being based at least partially on ".Term " one embodiment " or " reality Apply example " it should be understood as " at least one embodiment ".Term " first ", " second " etc. may refer to different or identical right As.Hereafter it is also possible that other specific and implicit definition.
With the development of computer technology, cloud computing has become one of calculation of current main-stream.More and more User handles the operation executed required for oneself dependent on computing resource provided by cloud platform.On the one hand, user is executing When operation, it is often desired to which different operations segregate can execute.On the other hand, the guardian of cloud platform also wishes to It is enough by more easily in a manner of for user provide computing resource, mitigate the burden of user configuration calculating environment.
In traditional scheme, user generally requires oneself and installs driving associated with computing resource, and it also requires Environment associated with programming language is configured, for example, user program interface (for example, CUDA SDK etc.) and programming language Support Library (for example, library CUDA etc. of different editions).However, driving installation be related to the compiling of kernel, therefore for general user and Speech has certain operation difficulty, and configures the mistake that programmed environment is often also easy to appear different situations.
In accordance with an embodiment of the present disclosure, it proposes a kind of for providing the scheme of computing resource.In this scenario, in response to The distribution request for computing resource is received, container is created in virtual machine, is wherein configured in virtual machine and computing resource Associated driving.Then, it obtains by the configuration file corresponding with computing resource of driving creation, and configuration file is added It is downloaded in container, enables the container to access computing resource via driving based on the use request for computing resource. By the way that in virtual middle creation container, to provide computing resource, the scheme of the disclosure can make system easy to maintain and mitigate User for calculate environment configuration pressure while, additionally it is possible to provide between different computing resources calculating isolation, to make The execution for obtaining task in computing resource is more reliable.
Hereinafter reference will be made to the drawings to specifically describe embodiment of the disclosure.Fig. 1 shows multiple embodiment energy of the disclosure Enough schematic diagrames in the example context 100 wherein realized.As shown in Figure 1, in example context 100 include calculate equipment 120 and (individually or collectively it is known as computing resource with one or more computing resource 130-1 to 130-N that equipment 120 is coupled are calculated 130).In some embodiments, calculating equipment 120 may include graphics calculations unit GPU.
As shown in Figure 1, the request for being directed to computing resource 130 can be received from user 110 by calculating equipment 120.In some realities It applies in example, user 110 can be by submitting the request for computing resource 130 with the client that equipment 120 is connect is calculated.In In some embodiments, user 110, which can also directly operate, calculates equipment 120 to submit the request for being directed to computing resource 130.Example Such as, user 110 can request to execute operation using a block graphics computing unit GPU.
In response to receiving the request for computing resource from user 110, calculating equipment 120 can be from the meter being attached thereto It calculates and distributes specific computing resource (for example, computing resource 130-1) in resource, and computing resource 130-1 is passed through into container Mode is supplied to user 110.The process that computing resource 130 is provided in a manner of container is described below with regard to Fig. 2 to Fig. 3, No longer enumeration herein.
It is described in more detail hereinafter with reference to Fig. 2 to Fig. 3 and the process of computing resource is provided.Fig. 2 shows according to the disclosure Some embodiments offer computing resource process 200 flow chart.Process 200 can be by the calculating equipment 120 of Fig. 1 real It is existing.In order to facilitate discussion, process 200 will be described in conjunction with Fig. 1.
In frame 202, calculates equipment 120 and receive the distribution request for being directed to computing resource 130.As discussed above with reference to Fig. 1 , the distribution request for being directed to computing resource 130 can be received from user 110 by calculating equipment 120.In some embodiments, user 110 can specify the number and type of requested computing resource in the distribution request.For example, user 110 can request to make With the GPU of 2 specific models.
In frame 204, calculates equipment 120 and create container in virtual machine, be wherein configured with and computing resource 130 in virtual machine Associated driving.Frame 204 is described below with reference to Fig. 3, Fig. 3 shows the offer computing resource according to the embodiment of the present disclosure Schematic diagram 300.
When receiving request of the user 110 for computing resource 130, calculating equipment 120 can create in virtual machine 320 Such as container 320 is built, for providing computing resource 130.In some embodiments, use can be obtained first by calculating equipment 120 In the image file of creation container, wherein image file includes the installation for user program interface associated with computing resource File.In some embodiments, when computing resource 130 includes one or more GPU, calculating equipment 120 be can use Docker provided by NVIDIA comes in library to create container 320.
In some embodiments, image file can be obtained from mirror site by calculating equipment 120.Specifically, equipment 120 is calculated The instruction of the version for user program interface can be determined from distribution request.For example, user 110 can refer in distribution request Determine the version information of CUDA SDK.Subsequently, based on instruction, calculates equipment 120 and obtain mirror corresponding with version from mirror site Picture wherein includes multiple mirror images corresponding with the user program interface of different editions in the mirror site.For example, in the mirror site Including multiple and different image files, wherein each image file includes installation text corresponding to CUDA SDK with different editions Part.As such as designated mounting CUDA SDK 10.1 of user 110, calculating equipment 120 can be obtained from mirror site based on the instruction Take container installation mirror image corresponding with CUDA SDK 10.1.In some embodiments, calculating equipment 120 can be then in void Acquired image file is installed to create container 320 in quasi- machine 310.As illustrated in FIG. 3, user program interface 322 and user 332 (oblique line is shown) of programming are automatically installed when corresponding container is mounted.
By way of container corresponding with the user program interface of different editions being provided by cloud platform, mirror image is installed, use Family 110 can not have to the environment configurations process of concern user program interface, and the version of programming interface required for only needing to formulate This information, so that further mitigating user 110 configures the pressure for calculating environment.
In addition, as shown in figure 3, being also configured with driving 350 associated with computing resource 130 in virtual machine 310.Pass through this The mode of sample, user 110 can not have to the configuration process of concern driving 350, but be safeguarded by the manager of computing resource 130 350 configuration and upgrading are driven with management, to alleviate user 110 for installing driving relevant to computing resource 130 Burden.
It calculates equipment 120 in frame 206 with continued reference to Fig. 2 and obtains by the corresponding with computing resource 130 of driving creation Configuration file.Specifically, when calculate equipment 120 configure in virtual machine 310 be better than computing resource 130 it is relevant drive 350 after, Driving 350 will automatically generate configuration file corresponding with computing resource 130, such configuration file in virtual machine 310 Also referred to as device file.For example, calculating equipment 120 can be from available calculating when user 110 requests 1 computing resource Available computing resource (for example, computing resource 130-1) is determined in resource 130, and determination is corresponding with computing resource 130-1 Device file be "/dev/nvidia0 ".
It in frame 208, calculates equipment 120 and configuration file is loaded into container, allow the container to based on for calculating money The use in source requests and accesses computing resource via driving.With Fig. 3 as an example, by driving 350 generate configuration file ( Referred to as device file) enable to computing resource 130 that can be exposed to container 320, by the way that configuration file is loaded into appearance In device 320, calculates equipment 120 and allow the container to access corresponding meter via driving 350 when receiving using request Calculate resource 130.
In some embodiments, calculating equipment 120 can be by way of hook come loading configuration file.For example, calculating Equipment 120 can add starting front hook, wherein starting front hook before starting container for will be loaded into appearance in configuration file In device.According to open container standard (OCI), when container instance is created the operation of completion during (runc), developer can To configure the hook of three types: after (poststart) is linked up with and stopped after (prestart) hook, starting before starting (poststop) it links up with.In embodiment of the disclosure, before calculating equipment 120 can be by the way that addition starts in the process at runtime Hook, and by linking up with configuration file to be loaded into container 320, so that computing resource 130 is exposed to container 320.For example, in the example of fig. 3, configuration file 326 corresponding with particular computational 130-1 is loaded into container 320 In.
In some embodiments, calculate equipment 120 can also obtain be configured at it is associated with computing resource in virtual machine Language-support librarie, wherein language-support librarie for provides be directed to and use the interface for requesting associated programming language.Such as Fig. 3 It is shown, language-support librarie 340 is also configured in virtual machine 310.When the programming language that user selects is CUDA, language-support librarie 340 for example may include CUDA Driver Library and NVIDIA Driver Library, related to NVIDIA for the parsing of CUDA language to support The calling of interface.Then, calculating equipment 120 can be loaded into language-support librarie in container.It should be appreciated that calculating equipment 120 Language-support librarie 340 can be also loaded into container 320 by starting front hook as described above, to be supported as language Library 324.By way of in load language Support Library, embodiment of the disclosure can further mitigate user 110 and configure calculating The burden of environment.
In addition, as shown in figure 3, multiple containers can be configured in virtual machine 310 simultaneously (for example, container 320 and container 330), wherein each container can different requests be associated from different users or with same user's.Due to each container Different user program interfaces can be installed, such as user program interface 322 can be different from user program interface 332, this User 110 is allowed to select container to be created according to the demand for user program interface version.
Additionally, by the way that language-support librarie 324 and language-support librarie 326 are loaded into container 320 from virtual machine 310 and held In device 330, embodiment of the disclosure can uniformly safeguard language-support librarie 340, thus alleviate user maintenance container 320 or The burden of the calculating environment of container 330.
Additionally, due to the configuration file 336 in the configuration file 326 and container 330 in container 320 respectively from it is different Computing resource is associated, embodiment of the disclosure further provide different user or the different calculating calculated between operation every From, and then ensure that the stability of calculating, it avoids due to resource contention and the unpredictable mistake of bring.
By the scheme of the disclosure, money is calculated to provide by installing container corresponding with computing resource in virtual machine Source, the scheme of the disclosure is while providing calculating isolation, additionally it is possible to convenient for the maintenance of entire platform.For example, by then passing through Virtual machine installs container, calculate equipment 120 or when computing resource 130 breaks down, and administrator can be by more renewing Virtual machine is simultaneously mounted to new physical equipment again and can complete the switching of equipment by physical equipment, without that will calculate equipment Data in 120 are exported and are copied again.Based on such mode, embodiment of the disclosure also further reduced computing resource Manager's maintenance and management computing resource burden.
Fig. 4 shows the schematic block diagram of the device 400 for providing computing resource according to the embodiment of the present disclosure.Device 400 can be included in the calculating equipment 120 of Fig. 1 or be implemented as to calculate equipment 120.As shown in figure 4, device 400 wraps Creation module 410 is included, is configured to respond to receive the distribution request for computing resource, container is created in virtual machine, Driving associated with computing resource is configured in virtual machine.Device 400 further include obtain module 420, be configured as obtain by Drive the configuration file corresponding with computing resource of creation.In addition, device 400 further includes configuration file loading module 430, quilt It is configured to for configuration file being loaded into container, allow the container to based on the use request for computing resource and via driving To access computing resource.
In some embodiments, wherein creation module 410 includes: the first acquisition module, is configured as obtaining for creating The image file of container, image file include the installation file for user program interface associated with computing resource;And Module is installed, is configured as that image file is installed in virtual machine.
In some embodiments, it includes: instruction determining module that wherein mirror image, which obtains module 420, is configured as asking from distribution Ask the instruction for determining the version for user program interface;And second obtain module, be configured as based on instruction, from mirror site It is middle to obtain mirror image corresponding with version, it include multiple mirrors corresponding with the user program interface of different editions in mirror site Picture.
In some embodiments, wherein configuration file loading module 430 includes: Hooking module, is configured as addition starting Front hook, starting front hook before starting container in configuration file for will be loaded into container.
In some embodiments, wherein device 400 further include: third obtains module, be configured as obtaining be configured at it is virtual Language-support librarie associated with computing resource in machine, language-support librarie are directed to volume associated with request is used for providing The interface of Cheng Yuyan;And language-support librarie loading module, it is configured as language-support librarie being loaded into container.
In some embodiments, wherein computing resource includes at least one graphics calculations unit.
Fig. 5 shows the schematic block diagram that can be used to implement the example apparatus 500 of embodiment of the disclosure.Equipment 500 It can be used to implement the calculating equipment 120 of Fig. 1.As shown, equipment 500 includes central processing unit (CPU) 501, it can be with Random access is loaded into according to the computer program instructions being stored in read-only memory (ROM) 502 or from storage unit 508 Computer program instructions in memory (RAM) 503, to execute various movements appropriate and processing.In RAM 503, may be used also Storage equipment 500 operates required various programs and data.CPU 501, ROM 502 and RAM 503 pass through bus 504 each other It is connected.Input/output (I/O) interface 505 is also connected to bus 504.
Multiple components in equipment 500 are connected to I/O interface 505, comprising: input unit 506, such as keyboard, mouse etc.; Output unit 507, such as various types of displays, loudspeaker etc.;Storage unit 508, such as disk, CD etc.;And it is logical Believe unit 509, such as network interface card, modem, wireless communication transceiver etc..Communication unit 505 allows equipment 500 by such as The computer network of internet and/or various telecommunication networks exchange information/data with other equipment.
Processing unit 501 executes each method as described above and processing, such as method 200.For example, in some implementations In example, method 200 can be implemented as computer software programs, be tangibly embodied in machine readable media, such as storage list Member 508.In some embodiments, some or all of of computer program can be via ROM 502 and/or communication unit 509 And it is loaded into and/or is installed in equipment 500.It, can be with when computer program loads to RAM 503 and when being executed by CPU 501 Execute the one or more steps of method as described above 200.Alternatively, in other embodiments, CPU 501 can pass through it His any mode (for example, by means of firmware) appropriate and be configured as execution method 200.
Function described herein can be executed at least partly by one or more hardware logic components.Example Such as, without limitation, the hardware logic component for the exemplary type that can be used includes: field programmable gate array (FPGA), dedicated Integrated circuit (ASIC), Application Specific Standard Product (ASSP), the system (SOC) of system on chip, load programmable logic device (CPLD) etc..
For implement disclosed method program code can using any combination of one or more programming languages come It writes.These program codes can be supplied to the place of general purpose computer, special purpose computer or other programmable data processing units Device or controller are managed, so that program code makes defined in flowchart and or block diagram when by processor or controller execution Function/operation is carried out.Program code can be executed completely on machine, partly be executed on machine, as stand alone software Is executed on machine and partly execute or executed on remote machine or server completely on the remote machine to packet portion.
In the context of the disclosure, machine readable media can be tangible medium, may include or is stored for The program that instruction execution system, device or equipment are used or is used in combination with instruction execution system, device or equipment.Machine can Reading medium can be machine-readable signal medium or machine-readable storage medium.Machine readable media can include but is not limited to electricity Son, magnetic, optical, electromagnetism, infrared or semiconductor system, device or equipment or above content any conjunction Suitable combination.The more specific example of machine readable storage medium will include the electrical connection of line based on one or more, portable meter Calculation machine disk, hard disk, random access memory (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM Or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage facilities or Any appropriate combination of above content.
Although this should be understood as requiring operating in this way with shown in addition, depicting each operation using certain order Certain order out executes in sequential order, or requires the operation of all diagrams that should be performed to obtain desired result. Under certain environment, multitask and parallel processing be may be advantageous.Similarly, although containing several tools in being discussed above Body realizes details, but these are not construed as the limitation to the scope of the present disclosure.In the context of individual embodiment Described in certain features can also realize in combination in single realize.On the contrary, in the described in the text up and down individually realized Various features can also realize individually or in any suitable subcombination in multiple realizations.
Although having used specific to this theme of the language description of structure feature and/or method logical action, answer When understanding that theme defined in the appended claims is not necessarily limited to special characteristic described above or movement.On on the contrary, Special characteristic described in face and movement are only to realize the exemplary forms of claims.

Claims (14)

1. a kind of provide the method for computing resource, comprising:
It is directed to the distribution request of computing resource in response to receiving, container is created in virtual machine, is configured in the virtual machine Driving associated with the computing resource;
It obtains by the configuration file corresponding with the computing resource of the driving creation;And
The configuration file is loaded into the container, enables the container based on the use for being directed to the computing resource It requests and accesses the computing resource via the driving.
2. according to the method described in claim 1, wherein creating the container in the virtual machine and including:
The image file for creating the container is obtained, the image file includes for associated with the computing resource The installation file of user program interface;And
The image file is installed in the virtual machine.
3. according to the method described in claim 2, wherein obtaining the mirror image for creating the container and including:
The instruction of the version for the user program interface is determined from the distribution request;And
Based on the instruction, the mirror image corresponding with the version is obtained from mirror site, include in the mirror site with The corresponding multiple mirror images of the user program interface of different editions.
4. according to the method described in claim 1, wherein the configuration file be loaded into the container including:
Addition starting front hook, the starting front hook are used to that institute will to be loaded into the configuration file before starting the container It states in container.
5. according to the method described in claim 1, further include:
The language-support librarie associated with the computing resource being configured in the virtual machine is obtained, the language-support librarie is used In offer for the interface of programming language associated with the use request;And
The language-support librarie is loaded into the container.
6. according to the method described in claim 1, wherein the computing resource includes at least one graphics calculations unit.
7. a kind of for providing the device of computing resource, comprising:
Creation module is configured to respond to receive the distribution request for computing resource, container is created in virtual machine, institute It states in virtual machine configured with driving associated with the computing resource;
Module is obtained, is configured as obtaining by the configuration file corresponding with the computing resource of the driving creation;And
Configuration file loading module is configured as the configuration file being loaded into the container, enables the container The computing resource is accessed via the driving based on the use request for the computing resource.
8. device according to claim 7, wherein the creation module includes:
First obtains module, is configured as obtaining the image file for creating the container, the image file includes being directed to The installation file of user program interface associated with the computing resource;And
Module is installed, is configured as that the image file is installed in the virtual machine.
9. device according to claim 8, wherein mirror image acquisition module includes:
It indicates determining module, is configured as determining the instruction of the version for the user program interface from the distribution request; And
Second obtains module, is configured as obtaining the mirror corresponding with the version from mirror site based on the instruction Picture includes multiple mirror images corresponding with the user program interface of different editions in the mirror site.
10. device according to claim 7, wherein the configuration file loading module includes:
Hooking module is configured as addition starting front hook, and the starting front hook is used for before starting the container will be described It is loaded into configuration file in the container.
11. device according to claim 7, further includes:
Third obtains module, is configured as obtaining the language branch associated with the computing resource being configured in the virtual machine Library is held, the language-support librarie is used to provide the interface for programming language associated with the use request;And
Language-support librarie loading module is configured as the language-support librarie being loaded into the container.
12. device according to claim 7, wherein the computing resource includes at least one graphics calculations unit.
13. a kind of electronic equipment, the electronic equipment include:
One or more processors;And
Memory, for storing one or more programs, when one or more of programs are by one or more of processors When execution, so that the electronic equipment realizes method according to any one of claim 1 to 6.
14. a kind of computer readable storage medium is stored thereon with computer program, realization when described program is executed by processor Method according to any one of claim 1 to 6.
CN201910795325.6A 2019-08-27 2019-08-27 Method, apparatus, equipment and the storage medium of computing resource are provided Pending CN110532064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910795325.6A CN110532064A (en) 2019-08-27 2019-08-27 Method, apparatus, equipment and the storage medium of computing resource are provided

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910795325.6A CN110532064A (en) 2019-08-27 2019-08-27 Method, apparatus, equipment and the storage medium of computing resource are provided

Publications (1)

Publication Number Publication Date
CN110532064A true CN110532064A (en) 2019-12-03

Family

ID=68664477

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910795325.6A Pending CN110532064A (en) 2019-08-27 2019-08-27 Method, apparatus, equipment and the storage medium of computing resource are provided

Country Status (1)

Country Link
CN (1) CN110532064A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419725A (en) * 2021-06-07 2021-09-21 上海数禾信息科技有限公司 Data processing method and device for H5 page development
CN114003346A (en) * 2021-11-12 2022-02-01 深圳前海微众银行股份有限公司 Task processing method, device, storage medium and program product
WO2022057317A1 (en) * 2020-09-18 2022-03-24 北京金山云网络技术有限公司 Computing resource allocation method and related device
CN116192670A (en) * 2023-02-02 2023-05-30 北京百度网讯科技有限公司 Environment deployment method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106970822A (en) * 2017-02-20 2017-07-21 阿里巴巴集团控股有限公司 A kind of container creation method and device
CN107533469A (en) * 2015-05-29 2018-01-02 英特尔公司 The container of graphics processing unit resource is accessed
CN108268299A (en) * 2016-12-29 2018-07-10 航天信息股份有限公司 A kind of Docker based on OpenStack cloud platforms shares storage solution
CN108804217A (en) * 2017-04-26 2018-11-13 中兴通讯股份有限公司 A kind of resource scheduling device, resource scheduling system and resource regulating method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107533469A (en) * 2015-05-29 2018-01-02 英特尔公司 The container of graphics processing unit resource is accessed
CN108268299A (en) * 2016-12-29 2018-07-10 航天信息股份有限公司 A kind of Docker based on OpenStack cloud platforms shares storage solution
CN106970822A (en) * 2017-02-20 2017-07-21 阿里巴巴集团控股有限公司 A kind of container creation method and device
CN108804217A (en) * 2017-04-26 2018-11-13 中兴通讯股份有限公司 A kind of resource scheduling device, resource scheduling system and resource regulating method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HULK一线技术杂谈: "深入理解nvidia-docker 2.0", 《HTTPS://WEB.ARCHIVE.ORG/WEB/20190106154316/HTTP://BLOG.ITPUB.NET:80/31555491/VIEWSPACE-2305576》 *
石瑞生: "《大数据安全与隐私保护》", 31 May 2019 *
肖熠: "一种针对GPU资源的深度学习容器云研究", 《中国传媒大学学报自然科学版》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022057317A1 (en) * 2020-09-18 2022-03-24 北京金山云网络技术有限公司 Computing resource allocation method and related device
CN113419725A (en) * 2021-06-07 2021-09-21 上海数禾信息科技有限公司 Data processing method and device for H5 page development
CN113419725B (en) * 2021-06-07 2024-08-16 上海数禾信息科技有限公司 Data processing method and device for H5 page development
CN114003346A (en) * 2021-11-12 2022-02-01 深圳前海微众银行股份有限公司 Task processing method, device, storage medium and program product
CN116192670A (en) * 2023-02-02 2023-05-30 北京百度网讯科技有限公司 Environment deployment method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN110532064A (en) Method, apparatus, equipment and the storage medium of computing resource are provided
US9582330B2 (en) Methods and system for distributing data to technical computing workers
CN104756072B (en) For the cross-platform data visualization method and system using public description
AU2014324086B2 (en) Virtual computing systems and methods
US9830135B2 (en) Declarative and pluggable business logic for systems management
US10656971B2 (en) Agile framework for vertical application development and delivery
CA2925015C (en) System and method for testing data representation for different mobile devices
US9747084B2 (en) Offline shader compilation
US20150220308A1 (en) Model-based development
CN107678752B (en) Task processing method and device for heterogeneous cluster
CN105242962B (en) The quick triggering method of lightweight thread based on isomery many-core
CN107391114A (en) The page visualizes rendering intent and device
CN109961151A (en) For the system for calculating service of machine learning and for the method for machine learning
AU2014324086A1 (en) Virtual computing systems and methods
US10733043B2 (en) Automatic correcting of computing cluster execution failure
CN111527474A (en) Dynamic delivery of software functionality
US9189228B2 (en) Systems and methods for developing and testing electronic content using multiple devices
US9626251B2 (en) Undo configuration transactional compensation
CN113657069B (en) SOC simulation verification method and device, verification server and storage medium
CN114443221A (en) Method and system for constructing cross-platform container mirror image based on build dah and electronic equipment
CN111930398A (en) Application program updating method, device, system, medium and equipment
EP2769302A1 (en) Use of dynamic profiles for creating and using a distributed computing environment
CN105229604A (en) Messaging device, information processing method and program
CN112764729B (en) Application software development method, device, computer equipment and readable storage medium
CN114020414B (en) Android system and bottom Linux symbiotic method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination