CN111679883B - Method and device for preferentially deploying data - Google Patents

Method and device for preferentially deploying data Download PDF

Info

Publication number
CN111679883B
CN111679883B CN202010421023.5A CN202010421023A CN111679883B CN 111679883 B CN111679883 B CN 111679883B CN 202010421023 A CN202010421023 A CN 202010421023A CN 111679883 B CN111679883 B CN 111679883B
Authority
CN
China
Prior art keywords
deployment
data
unit
operating system
software
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010421023.5A
Other languages
Chinese (zh)
Other versions
CN111679883A (en
Inventor
李永高
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Haiguangyun Technology Co ltd
Original Assignee
Guangdong Haiguangyun 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 Guangdong Haiguangyun Technology Co ltd filed Critical Guangdong Haiguangyun Technology Co ltd
Priority to CN202010421023.5A priority Critical patent/CN111679883B/en
Publication of CN111679883A publication Critical patent/CN111679883A/en
Application granted granted Critical
Publication of CN111679883B publication Critical patent/CN111679883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/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/4401Bootstrapping
    • 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
    • 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/4557Distribution of virtual machine instances; Migration and load balancing
    • 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/45595Network integration; Enabling network access in 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)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for preferentially deploying data, wherein the method comprises the following steps: starting a client; DHCP allocates IP address; TFTP transfers the underlying bootstrap; initializing a magnetic disk; judging whether the initialization is successful, if so, starting a bootstrap program; otherwise, replacing the hard disk and returning; preloading operating system data; starting the diskless boot; entering an operating system; starting a deployment agent; receiving server mirror image data; judging whether to open the software in the operating system, if so, the deployment agent preferentially reads the software data resources under the diskless system; otherwise, performing P2P deployment; after the software data resources are read, resources are continuously deployed; and (5) completing deployment. The invention improves the running speed of corresponding software, reduces the bandwidth occupation, reduces the network load, has little influence on other user network resources, reduces the server load, reduces the influence on the whole deployment environment and improves the deployment efficiency of the whole computer room.

Description

Method and device for preferentially deploying data
Technical Field
The present invention relates to the field of data deployment, and in particular, to a method and an apparatus for preferentially deploying data.
Background
The most advantage of the system management network for diskless boot and VHD offline boot is that the computer systems and data in the local area network can be managed uniformly, all data including operating systems exist on the server, the client operating systems and software do not need to be deployed to the client, and the deployment and management cost is greatly saved for the local area network with a large amount of same hardware and software. The client can see the system and the software of the latest version after being started without a disk each time, and the system and the software are restored to the starting state after being shut down, so that the disaster tolerance and the safety of the whole network environment are greatly improved. Through the native support of the Windows product on the iSCSI and VHD protocols, the operating system can be started without a disk and started with a VHD offline, other data disks (such as game disks) in the system can be provided and virtualized to a client through the product, and the client sees a real disk, so that the compatibility of the system and software is greatly guaranteed. Because the file is a virtual disk, all files seen by the client can be transmitted only when being actually read, and the network load of the local area network and the disk load of the server are greatly saved. However, in this mode, if the program runs, the complete data packet needs to be downloaded locally, which may cause a large network load, and if the network bandwidth is small, the entire network speed is greatly affected, and the program running speed is slow.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and an apparatus for data priority deployment, which improve the operating speed of corresponding software, reduce bandwidth occupation, reduce network load, have little influence on other user network resources, reduce server load, reduce influence on the whole deployment environment, and improve the deployment efficiency of the whole machine room, in view of the above-mentioned defects in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: a method for constructing data priority deployment is constructed, and comprises the following steps:
a) Starting a client;
b) DHCP (Dynamic Host Configuration Protocol) allocates an IP address;
c) TFTP (Trivial File Transfer Protocol) transfers the bottom bootstrap;
d) Initializing a magnetic disk;
e) Judging whether the initialization is successful, if so, executing the step G); otherwise, executing step F);
f) Replacing the hard disk and returning to the step A);
g) Starting a bootstrap program;
h) Preloading operating system data;
i) Starting the diskless boot;
j) Entering an operating system;
k) Starting a deployment agent;
l) receiving server mirror image data;
m) judging whether to open the software in the operating system, if yes, executing the step N); otherwise, executing step P);
n) the deployment agent preferentially reads software data resources under the diskless system;
o) continuing to deploy the resources after the software data resources are read;
p) carrying out P2P deployment;
q) deployment is complete.
In the method for preferentially deploying data, the operating system is a Desk system.
In the method for preferentially deploying data, the operating system is arranged in the client.
The invention also relates to a device for realizing the method for preferentially deploying the data, which comprises the following steps:
a starting unit: the method is used for starting the client;
an IP address allocation unit: for DHCP to assign IP address;
bottom layer bootstrap transfer unit: for TFTP transfer of the underlying bootstrap;
a disk initialization unit: for initializing the disk;
an initialization judgment unit: used for judging whether the initialization is successful;
hard disk replacement unit: used for replacing the hard disk;
a bootstrap startup unit: for starting a boot program;
a data preloading unit: for preloading operating system data;
a diskless boot startup unit: for initiating a diskless boot;
an operating system entry unit: entering an operating system;
a deployment agent startup unit: for launching a deployment agent;
a mirror data receiving unit: for receiving server image data;
a software opening unit: for determining whether to open software within the operating system;
a data resource priority reading unit: the deployment agent is used for preferentially reading software data resources under the diskless system;
a resource deployment unit: after the software data resource is read, continuing to deploy the resource;
P2P deployment unit: for performing P2P deployment;
a deployment completion unit: for deployment to complete.
In the device of the present invention, the operating system is a Desk system.
In the apparatus of the present invention, the operating system is provided in the client.
The method and the device for preferentially deploying the data have the following beneficial effects that: due to the fact that a data priority deployment technology is adopted under the diskless system deployment technology, when the system is deployed, if other software is started at a client side, a deployment agent can read data of the corresponding software preferentially, and the running speed of the corresponding software is improved; due to the adoption of the intelligent data deployment technology, the software is operated during deployment, only data related to software operation is deployed, the bandwidth occupation is reduced, the network load is reduced, the influence on other user network resources is small, and the intelligent deployment technology cannot issue all data, so that the server load is also reduced, the influence on the whole deployment environment is small, and the deployment efficiency of the whole machine room is improved; therefore, the invention improves the running speed of corresponding software, reduces the bandwidth occupation, reduces the network load, has little influence on other user network resources, reduces the server load, reduces the influence on the whole deployment environment and improves the deployment efficiency of the whole computer room.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a method in an embodiment of a method and apparatus for data-first deployment of the present invention;
fig. 2 is a schematic structural diagram of the device in the embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the method and the device for preferentially deploying data, a flow chart of the method for preferentially deploying data is shown in fig. 1. In fig. 1, the method for preferentially deploying data includes the following steps:
step S01, starting up a client: in this step, the client is powered on.
Step S02 DHCP allocates IP address: in this step, DHCP assigns an IP address.
Step S03 TFTP transfers the underlying bootstrap: in this step, TFTP transfers the underlying bootstrap program.
Step S04 initializes the disk: in this step, the disk is initialized.
Step S05, judging whether the initialization is successful: in this step, whether the initialization of the disk is successful is judged, and if the judgment result is yes, step S07 is executed; otherwise, step S06 is performed.
Step S06 replacing the hard disk: if the judgment result of the step S05 is negative, the step is executed. In this step, the hard disk is replaced, the step is executed, and the step returns to step S01.
Step S07 starts the boot process: if the judgment result of the step S05 is yes, the step is executed. In this step, the boot program is started.
Step S08 preloading operating system data: in this step, operating system data is preloaded.
Step S09 starts the diskless boot: in this step, diskless boot is started.
Step S10 enters the operating system: in this step, the operating system is entered.
Step S11 starts the deployment agent: in this step, the deployment agent is started.
Step S12 receives server image data: in this step, the client receives server mirror image data.
Step S13, judging whether to open the software in the operating system: in this step, it is determined whether to open the software in the operating system, and if yes, step S14 is executed; otherwise, step S16 is performed. It is worth mentioning that the operating system is set in the client, and the operating system is a Desk system.
Step S14, the deployment agent preferentially reads the software data resources under the diskless system: if the judgment result of the step S13 is yes, the step is executed. In this step, the deployment agent preferentially reads the software data resources in the diskless system.
Step S15, after the software data resource is read, continuing to deploy the resource: in this step, after the software data resource is read, the resource is continuously deployed. After this step is executed, step S16 is executed.
Step S16 performs P2P deployment: in this step, P2P deployment is performed.
Step S17, deployment completion: in this step, deployment is completed.
In the method for preferentially deploying the data, the intelligent data deploying technology is developed by the sea light Desk system aiming at the problems in the traditional technology, so that the data of the software is deployed intelligently without being deployed completely, and the software is operated more smoothly and rapidly when the system is deployed. The intelligent data deployment specifically refers to that when a deployment agent detects that a client has software opening operation, the deployment agent preferentially deploys required data of running software instead of all data, so that the running speed of the software is increased, and network bandwidth and server resources are saved. The sea light Desk system adopts a data priority deployment technology under the technology of diskless system deployment, and when the system is deployed, if other software is started at a client, a deployment agent can preferentially read data of the corresponding software, so that the running speed of the corresponding software is improved. Due to the adoption of the intelligent data deployment technology, the software is operated during deployment, only data related to software operation can be deployed, the bandwidth occupation is reduced, the network load is reduced, the influence on other user network resources is small, in addition, because the intelligent deployment technology can not send all data, the server load is also reduced, the influence on the whole deployment environment is small, and the deployment efficiency of the whole machine room is improved.
The embodiment also relates to a device for implementing the method for preferentially deploying data, and a schematic structural diagram of the device is shown in fig. 2. In fig. 2, the apparatus includes a boot unit 1, an IP address allocation unit 2, an underlying boot program transmission unit 3, a disk initialization unit 4, an initialization judgment unit 5, a hard disk replacement unit 6, a boot program start unit 7, a data preloading unit 8, a diskless boot start unit 9, an operating system entry unit 10, a deployment agent start unit 11, a mirror data receiving unit 12, a software opening unit 13, a data resource priority reading unit 14, a resource deployment unit 15, a P2P deployment unit 16, and a deployment completion unit 17.
The starting unit 1 is used for starting a client; the IP address allocation unit 2 is used for allocating an IP address by DHCP; the bottom layer bootstrap program transmission unit 3 is used for TFTP transmitting the bottom layer bootstrap program; the disk initialization unit 4 is used for initializing a disk; the initialization judging unit 5 is used for judging whether initialization is successful; the hard disk replacement unit 6 is used to replace a hard disk; the bootstrap program starting unit 7 is used for starting a bootstrap program; the data preloading unit 8 is used for preloading operating system data; the diskless boot starting unit 9 is used for starting diskless boot; the operating system entering unit 10 enters an operating system; the deployment agent starting unit 11 is used for starting a deployment agent; the mirror image data receiving unit 12 is configured to receive server mirror image data; the software opening unit 13 is used for judging whether to open the software in the operating system; it is worth mentioning that the operating system is set in the client, and the operating system is a Desk system. The data resource priority reading unit 14 is configured to deploy an agent to preferentially read software data resources in the diskless system; the resource deployment unit 15 is used for continuing to deploy the resources after the software data resources are read; the P2P deployment unit 16 is configured to perform P2P deployment; the deployment completion unit 17 is used for deployment completion.
In the device, the sea light Desk system develops a data intelligent deployment technology aiming at the problems in the traditional technology, and the data of the software is intelligently deployed without being completely deployed, so that the software is operated more smoothly and quickly when the system is deployed. The intelligent data deployment specifically refers to that when the deployment agent detects that the client has software opening operation, the deployment agent preferentially deploys the required data of the running software instead of deploying all data, so that the running speed of the software is increased, and the network bandwidth and the server resources are saved. The sea light Desk system adopts a data priority deployment technology under the technology of diskless system deployment, and when the system is deployed, if other software is started at a client, a deployment agent can preferentially read data of the corresponding software, so that the running speed of the corresponding software is improved. Due to the adoption of the intelligent data deployment technology, the software is operated during deployment, only data related to software operation is deployed, the bandwidth occupation is reduced, the network load is reduced, the influence on other user network resources is small, in addition, because the intelligent deployment technology can not issue all data, the server load is also reduced, the influence on the whole deployment environment is small, and the deployment efficiency of the whole machine room is improved.
In a word, the invention adopts the intelligent data deployment technology and the intelligent on-demand deployment technology, improves the acquisition speed of the client on the required resources, improves the use experience of the client during deployment, can run software without waiting for all data to be issued during deployment on demand, saves network bandwidth, and ensures that the resource overhead of the server is not too large in a short time.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (6)

1. A method for preferential deployment of data is characterized by comprising the following steps:
a) Starting a client;
b) DHCP allocates IP address;
c) TFTP transfers the underlying bootstrap program;
d) Initializing a magnetic disk;
e) Judging whether the initialization is successful, if so, executing step G); otherwise, executing step F);
f) Replacing the hard disk and returning to the step A);
g) Starting a bootstrap program;
h) Preloading operating system data;
i) Starting the diskless boot;
j) Entering an operating system;
k) Starting a deployment agent;
l) receiving server mirror image data;
m) judging whether to open the software in the operating system, if so, executing the step N); otherwise, executing step P);
n) the deployment agent preferentially reads software data resources under the diskless system;
o) after the software data resource is read, continuing to deploy the resource;
p) carrying out P2P deployment;
q) deployment is complete.
2. The method for data-first deployment according to claim 1, wherein the operating system is a Desk system.
3. The method for data preferential deployment according to claim 2, wherein the operating system is provided in the client.
4. An apparatus for implementing the method of claim 1, comprising:
a starting unit: the method is used for starting the client;
an IP address allocation unit: for DHCP to assign IP address;
bottom layer bootstrap transfer unit: for TFTP transfer of the underlying bootstrap;
a disk initialization unit: for initializing the disk;
an initialization judgment unit: used for judging whether the initialization is successful;
hard disk replacement unit: used for replacing the hard disk;
a bootstrap startup unit: for starting a boot program;
a data preloading unit: for preloading operating system data;
a diskless boot startup unit: for initiating a diskless boot;
an operating system entry unit: entering an operating system;
a deployment agent startup unit: for launching a deployment agent;
a mirror data receiving unit: for receiving server image data;
a software opening unit: for determining whether to open software within the operating system;
a data resource priority reading unit: the deployment agent is used for preferentially reading software data resources under the diskless system;
a resource deployment unit: after the software data resource is read, continuing to deploy the resource;
P2P deployment unit: for performing P2P deployment;
a deployment completion unit: for deployment completion.
5. The apparatus of claim 4, wherein the operating system is a Desk system.
6. The apparatus of claim 5, wherein the operating system is disposed in the client.
CN202010421023.5A 2020-05-18 2020-05-18 Method and device for preferentially deploying data Active CN111679883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010421023.5A CN111679883B (en) 2020-05-18 2020-05-18 Method and device for preferentially deploying data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010421023.5A CN111679883B (en) 2020-05-18 2020-05-18 Method and device for preferentially deploying data

Publications (2)

Publication Number Publication Date
CN111679883A CN111679883A (en) 2020-09-18
CN111679883B true CN111679883B (en) 2023-03-28

Family

ID=72451901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010421023.5A Active CN111679883B (en) 2020-05-18 2020-05-18 Method and device for preferentially deploying data

Country Status (1)

Country Link
CN (1) CN111679883B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232400A (en) * 2008-02-25 2008-07-30 浪潮电子信息产业股份有限公司 Method for allocating operating system through network guide
CN104598249A (en) * 2015-02-05 2015-05-06 浙江天正信息科技有限公司 Multi-tenant perception software personalized customization and deployment method
CN105007290A (en) * 2015-05-21 2015-10-28 上海新浩艺软件有限公司 Linux system remote installation configuration management method aiming at disk-free server
CN106550049A (en) * 2016-12-02 2017-03-29 清华大学深圳研究生院 A kind of Middleware portion arranging method, apparatus and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7146260B2 (en) * 2001-04-24 2006-12-05 Medius, Inc. Method and apparatus for dynamic configuration of multiprocessor system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232400A (en) * 2008-02-25 2008-07-30 浪潮电子信息产业股份有限公司 Method for allocating operating system through network guide
CN104598249A (en) * 2015-02-05 2015-05-06 浙江天正信息科技有限公司 Multi-tenant perception software personalized customization and deployment method
CN105007290A (en) * 2015-05-21 2015-10-28 上海新浩艺软件有限公司 Linux system remote installation configuration management method aiming at disk-free server
CN106550049A (en) * 2016-12-02 2017-03-29 清华大学深圳研究生院 A kind of Middleware portion arranging method, apparatus and system

Also Published As

Publication number Publication date
CN111679883A (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN104360883B (en) A kind of configuration Raid method and system
US20160266884A1 (en) Method and system for network-less guest os and software provisioning
US9176744B2 (en) Quickly provisioning a virtual machine by identifying a path to a differential file during pre-boot
US9465625B2 (en) Provisioning of operating environments on a server in a networked environment
US9497295B2 (en) Redistribution of operating environments for the redeployment of grid clients
CN108089913B (en) Virtual machine deployment method of super-fusion system
US9104431B2 (en) Deployment of a software image on multiple targets with streaming technique
US11418566B2 (en) Adding and removing virtual disks remotely to a streaming machine
US9286046B2 (en) Method and apparatus for distributed operating system image deployment
CN104219099A (en) Automatic server cluster deploying method and device
CN112130917B (en) Remote loading system mirror image method
EP2449751B1 (en) Method of starting up a computing device in a network, server and network of computing devices for the implementation thereof
CN108958742A (en) A kind of method of batch installing operating system, relevant device and system
CN101170423A (en) A service-oriented service cluster deployment method
CN109600439B (en) PaaS platform and deployment method thereof based on microservice
CN114443073A (en) Device and method for rapidly deploying bare metal server
CN114995888A (en) Intelligent network card deployment method, device and medium
CN111459619A (en) Method and device for realizing service based on cloud platform
CN111200527A (en) Method for automatically discovering and deploying bare computer based on ironic
CN111679883B (en) Method and device for preferentially deploying data
CN109656679B (en) Storage access method and device of virtual machine
KR100439175B1 (en) Method for automatically installing operating system in linux-based cluster system at remote place
CN117278527A (en) Bare metal server online system, method and device
CN111679884A (en) Data deployment method and device
CN111008043A (en) Server starting method of cloud platform and terminal

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 1309, 13th floor, Weili Business Building, No. 4, Lingshan East Road, Tianhe District, Guangzhou City, Guangdong Province, 510000 (office only)

Applicant after: Guangdong haiguangyun Technology Co.,Ltd.

Address before: Room D2-201, Floor 2, Building 28, No. 61, Dalingshan Road, Tianhe District, Guangzhou, Guangdong Province, 510000 (office only)

Applicant before: Guangdong haiguangyun Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant