CN109495403A - A kind of method and apparatus for clearing up Internet resources - Google Patents

A kind of method and apparatus for clearing up Internet resources Download PDF

Info

Publication number
CN109495403A
CN109495403A CN201811350620.2A CN201811350620A CN109495403A CN 109495403 A CN109495403 A CN 109495403A CN 201811350620 A CN201811350620 A CN 201811350620A CN 109495403 A CN109495403 A CN 109495403A
Authority
CN
China
Prior art keywords
cloud host
internet resources
network port
network
list
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.)
Withdrawn
Application number
CN201811350620.2A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811350620.2A priority Critical patent/CN109495403A/en
Publication of CN109495403A publication Critical patent/CN109495403A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of methods for clearing up Internet resources, this method comprises: carrying the cloud host identification ID of cloud host to be created when sending network resource request during creating cloud host;The cloud host id is for being associated with the Internet resources distributed according to the network resource request;When cloud host creates failure, the cloud host id of the cloud host of record creation failure;Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and execute the operation of cleaning Internet resources according to preset mechanism.The invention also discloses a kind of devices for clearing up Internet resources.Method and apparatus provided by the invention are able to solve the problem of Internet resources can not be cleared up after the creation of cloud host fails.

Description

A kind of method and apparatus for clearing up Internet resources
Technical field
The present invention relates to the methods and dress for clearing up Internet resources a kind of in field of cloud calculation more particularly to field of cloud calculation It sets.
Background technique
In today that cloud computing technology is prevailing, efficient easy-to-use cloud platform is only the foundation stone to keep one's feet, current cloud platform The operation of creation cloud host is issued from computing module, if due to network service failure, calculating service fault during creation Or server power-off etc. causes the creation failure of cloud host, i.e., in the request of the computing module transmission creation network port to network module Later, after the completion of network module creates port according to network card configuration, target cloud host can not be returned in time, and cloud host is caused to be created It builds unsuccessfully.The specified network port has generated simultaneously, occupies IP resource.But it again can not be clear in cloud host rollback process Network port resource is managed, IP is caused to occupy, resource residual.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of methods for clearing up Internet resources, solve the creation of cloud host and lose Lose the problem of rear Internet resources can not be cleared up.
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of methods for clearing up Internet resources, comprising:
During creating cloud host, the cloud host mark of cloud host to be created is carried when sending network resource request Know ID;The cloud host id is for being associated with the Internet resources distributed according to the network resource request;
When cloud host creates failure, the cloud host id of the cloud host of record creation failure;
Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and according to preset mechanism Execute the operation of cleaning Internet resources.
In a kind of exemplary embodiment, the above method also has the characteristics that following:
The Internet resources include the network port;
The service includes one or more of: calculating service, storage service, network service.
In a kind of exemplary embodiment, the above method also has the characteristics that following:
It is described when cloud host create failure when, record creation failure cloud host cloud host id, comprising:
If being not received by the response of the network resource request in preset duration, and attempt time of distribution Internet resources When number is more than preset times, then the cloud host id of the cloud host is recorded in cloud host erropr message list;
Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and according to preset mechanism Execute cleaning Internet resources operation include:
Network is inquired when server resets or periodically according to the cloud host id in the cloud host erropr message list Resource, and the operation for clearing up Internet resources is executed according to preset mechanism.
In a kind of exemplary embodiment, the above method also has the characteristics that following:
The operation that cleaning Internet resources are executed according to preset mechanism, comprising:
Network port list is returned if normal, and the network port list is not sky, then notifies to delete the network-side Information and the corresponding network port in mouth list, and delete cloud host id described in cloud host erropr message list;
Network port list is returned if normal, and list is empty for the network port, then deletes cloud host erropr message list Described in cloud host id;
If returning, network port list is abnormal, etc. the operation of cleaning Internet resources next time to be triggered.
In a kind of exemplary embodiment, the above method also has the characteristics that following:
The cloud host id refers to for being associated with according to the Internet resources that the network resource request is distributed:
The cloud host id is for being added in the field of the network port distributed according to the network resource request.
Internet resources are inquired according to the cloud host id when server resets, and cleaning network is executed according to preset mechanism The operation of resource includes:
Network port resource is inquired according to the cloud host id when server resets, and is executed once according to preset mechanism Clear up the operation of the network port.
To solve the above-mentioned problems, the present invention also provides a kind of devices for clearing up Internet resources, comprising: memory and place Manage device;
The memory, for saving the program for clearing up Internet resources;
The processor executes the program for being used to clear up Internet resources for reading, performs the following operations: including:
During creating cloud host, the cloud host mark of cloud host to be created is carried when sending network resource request Know ID;The cloud host id is for being associated with the Internet resources distributed according to the network resource request;
When cloud host creates failure, the cloud host id of the cloud host of record creation failure;
Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and according to preset mechanism Execute the operation of cleaning Internet resources.
In a kind of exemplary embodiment, above-mentioned apparatus also has the characteristics that following:
The Internet resources include the network port;
The service includes one or more of: calculating service, storage service, network service.
In a kind of exemplary embodiment, above-mentioned apparatus also has the characteristics that following:
It is described when cloud host create failure when, record creation failure cloud host cloud host id, comprising:
If being not received by the response of the network resource request in preset duration, and attempt time of distribution Internet resources When number is more than preset times, then the cloud host id of the cloud host is recorded in cloud host erropr message list;
Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and according to preset mechanism Execute cleaning Internet resources operation include:
Network is inquired when server resets or periodically according to the cloud host id in the cloud host erropr message list Resource, and the operation for clearing up Internet resources is executed according to preset mechanism.
In a kind of exemplary embodiment, above-mentioned apparatus also has the characteristics that following:
The operation that cleaning Internet resources are executed according to preset mechanism, comprising:
Network port list is returned if normal, and the network port list is not sky, then notifies to delete the network-side Information and the corresponding network port in mouth list, and delete cloud host id described in cloud host erropr message list;
Network port list is returned if normal, and list is empty for the network port, then deletes cloud host erropr message list Described in cloud host id;
If returning, network port list is abnormal, etc. the operation of cleaning Internet resources next time to be triggered.
In a kind of exemplary embodiment, above-mentioned apparatus also has the characteristics that following:
The cloud host id refers to for being associated with according to the Internet resources that the network resource request is distributed:
The cloud host id is for being added in the field of the network port distributed according to the network resource request.
Internet resources are inquired according to the cloud host id when server resets, and cleaning network is executed according to preset mechanism The operation of resource includes:
Network port resource is inquired according to the cloud host id when server resets, and is executed once according to preset mechanism Clear up the operation of the network port.
To sum up, the method and apparatus of cleaning Internet resources provided in an embodiment of the present invention solve the creation failure of cloud host The problem of Internet resources can not be cleared up afterwards, improves resource utilization.
Detailed description of the invention
Fig. 1 is the schematic diagram according to the method for the cleaning Internet resources of the embodiment of the present invention.
Fig. 2 is the flow chart according to the method for the cleaning Internet resources of the embodiment of the present invention.
Fig. 3 is that can be schemed according to the signal of the device of the cleaning Internet resources of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Fig. 1 is the schematic diagram of the method for the cleaning Internet resources of the embodiment of the present invention, as shown in Figure 1, the present embodiment is clear Reason Internet resources method include:
S11, during creating cloud host, the cloud master of cloud host to be created is carried when sending network resource request Machine identifies ID.
Wherein, the cloud host id can be used for being associated with the Internet resources distributed according to the network resource request.
In a kind of exemplary embodiment, the cloud host id is used to being associated with to be distributed according to the network resource request Internet resources refer to:
The cloud host id is for being added in the field of the network port distributed according to the network resource request.
The Internet resources may include the network port.Cloud host can be based on the exploitation of OpenStack open source projects Cloud management platform management, which may include computing module, memory module, network module etc..Computing module provides Service is calculated, memory module provides storage service, and network module provides network service.Cloud host belongs to computing module resource, cloud Hard disk belongs to memory module resource, and network belongs to network module.Cloud host is created in computing module, and the network of cloud host Configuration is then completed by network module.
S12, when cloud host create failure when, record creation failure cloud host cloud host id.
In a kind of exemplary embodiment, if being not received by the response of the network resource request in preset duration, And when attempting the number of distribution Internet resources more than preset times, then the cloud host is recorded in cloud host erropr message list Cloud host id.
It wherein, can be by calculating service configuration parameters network allocate retries as judgement creation cloud host The number of distribution cloud mainframe network is attempted when distributing network failure.When number of attempt is beyond this configuration, cloud Host Status is set as mistake Accidentally, i.e. cloud host creation failure.
In a kind of exemplary embodiment, cloud host mistake letter can be recorded in the cloud host id of the cloud host of creation failure In breath table or other modes can also be used records.
S13, Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and according to preset Mechanism executes the operation of cleaning Internet resources.
Wherein, the service may include calculating service, storage service and network service.
In a kind of exemplary embodiment, the operation that cleaning Internet resources are executed according to preset mechanism, it may include:
Network port list is returned if normal, and the network port list is not sky, then notifies to delete the network-side Information and the corresponding network port in mouth list, and delete cloud host id described in cloud host erropr message list;
Network port list is returned if normal, and list is empty for the network port, then deletes cloud host erropr message list Described in cloud host id;
If returning, network port list is abnormal, etc. the operation of cleaning Internet resources next time to be triggered.
In a kind of exemplary embodiment, network port resource is inquired according to the cloud host id when server resets, and The operation of the primary cleaning network port is executed according to preset mechanism.
Wherein, regularly the time can based on experience value or experiment value self-setting.
Fig. 2 is the flow chart of the method for the cleaning Internet resources of the embodiment of the present invention, as shown in Fig. 2, comprising the following steps that
Step 201: user issues the request of creation cloud host in cloud platform computing module.
Step 202: computing module receives the request, executes the creation operation of cloud host, and setting cloud Host Status is meter in creation When calculating service to network service request Internet resources, the cloud host identification ID of cloud host to be created is carried.
Step 203: network module receives request, and cloud host id is added in a field of the network port of distribution.
Step 204: if computing module can normally receive the return message of the network module creation network port, normally Cloud host is created, sets cloud Host Status as in operation.If computing module can not receive the network module creation network port Message is returned to, then computing module is attempted to be cloud host assignment network.When beyond the number of attempt of setting, cloud host executes rollback Operation, is recorded cloud host erropr message list for the cloud host id.
Computing module can be attempted to be cloud host assignment network according to configuration item network allocate retries.It is holding When row rolling back action, the resources such as the allocated memory of cleaning cloud host, CPU and disk, setting cloud Host Status is mistake.
Step 205: when calculating service and the failures such as network service are restarted or according to setting cleaning cycle according to cloud Cloud host id in host erropr message list inquires Internet resources, executes cleaning network resource operation according to preset mechanism.
Wherein, preset cleaning mechanism includes returning to network port list if normal, and the network port list is not Sky then notifies to delete the information in the network port list and the corresponding network port, and deletes cloud host erropr message list Described in cloud host id;
Network port list is returned if normal, and list is empty for the network port, then deletes cloud host erropr message list Described in cloud host id;
If returning, network port list is abnormal, etc. the operation of cleaning Internet resources next time to be triggered.
The primary cleaning network port is executed according to preset mechanism when calculating the failures such as service and network service and restarting Operation.
Fig. 3 is the schematic diagram of the device of the cleaning Internet resources of the embodiment of the present invention, as shown in figure 3, cleaning Internet resources Device, comprising: memory and processor;
The memory, for saving the program for clearing up Internet resources;
The processor executes the program for being used to clear up Internet resources for reading, performs the following operations: including:
During creating cloud host, the cloud host mark of cloud host to be created is carried when sending network resource request Know ID;The cloud host id is for being associated with the Internet resources distributed according to the network resource request;
When cloud host creates failure, the cloud host id of the cloud host of record creation failure;
Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and according to preset mechanism Execute the operation of cleaning Internet resources.
Wherein, the Internet resources include the network port;
The service includes one or more of: calculating service, storage service, network service.
It is described when cloud host creates failure in a kind of exemplary embodiment, the cloud of the cloud host of record creation failure Host id, comprising:
If being not received by the response of the network resource request in preset duration, and attempt time of distribution Internet resources When number is more than preset times, then the cloud host id of the cloud host is recorded in cloud host erropr message list;
In a kind of exemplary embodiment, network is inquired when server resets or periodically according to the cloud host id recorded Resource, and include: according to the operation that preset mechanism executes cleaning Internet resources
Network is inquired when server resets or periodically according to the cloud host id in the cloud host erropr message list Resource, and the operation for clearing up Internet resources is executed according to preset mechanism.
In a kind of exemplary embodiment, the operation that cleaning Internet resources are executed according to preset mechanism, comprising:
Network port list is returned if normal, and the network port list is not sky, then notifies to delete the network-side Information and the corresponding network port in mouth list, and delete cloud host id described in cloud host erropr message list;
Network port list is returned if normal, and list is empty for the network port, then deletes cloud host erropr message list Described in cloud host id;
If returning, network port list is abnormal, etc. the operation of cleaning Internet resources next time to be triggered.
The cloud host id refers to for being associated with according to the Internet resources that the network resource request is distributed:
The cloud host id is for being added in the field of the network port distributed according to the network resource request.
In a kind of exemplary embodiment, Internet resources are inquired according to the cloud host id when server resets, and according to The operation that preset mechanism executes cleaning Internet resources includes:
Network port resource is inquired according to the cloud host id when server resets, and is executed once according to preset mechanism Clear up the operation of the network port.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD Deng.Optionally, one or more integrated circuits can be used also to realize in all or part of the steps of above-described embodiment.Accordingly Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
The above is only a preferred embodiment of the present invention, and certainly, the invention may also have other embodiments, without departing substantially from this In the case where spirit and its essence, those skilled in the art make various corresponding changes in accordance with the present invention And deformation, but these corresponding changes and modifications all should fall within the scope of protection of the appended claims of the present invention.

Claims (10)

1. a kind of method for clearing up Internet resources, comprising:
During creating cloud host, the cloud host identification of cloud host to be created is carried when sending network resource request ID;The cloud host id is for being associated with the Internet resources distributed according to the network resource request;
When cloud host creates failure, the cloud host id of the cloud host of record creation failure;
Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and are executed according to preset mechanism Clear up the operation of Internet resources.
2. the method as described in claim 1, it is characterised in that:
The Internet resources include the network port;
The service includes one or more of: calculating service, storage service, network service.
3. method according to claim 2, which is characterized in that
It is described when cloud host create failure when, record creation failure cloud host cloud host id, comprising:
If being not received by the response of the network resource request in preset duration, and the number for attempting distribution Internet resources is super When crossing preset times, then the cloud host id of the cloud host is recorded in cloud host erropr message list;
Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and are executed according to preset mechanism Cleaning Internet resources operation include:
Internet resources are inquired when server resets or periodically according to the cloud host id in the cloud host erropr message list, And the operation of cleaning Internet resources is executed according to preset mechanism.
4. method as claimed in claim 3, which is characterized in that
The operation that cleaning Internet resources are executed according to preset mechanism, comprising:
Network port list is returned to if normal, and the network port list is not sky, then notify to delete the network port column Information and the corresponding network port in table, and delete cloud host id described in cloud host erropr message list;
Network port list is returned if normal, and list is empty for the network port, then deletes institute in cloud host erropr message list State cloud host id;
If returning, network port list is abnormal, etc. the operation of cleaning Internet resources next time to be triggered.
5. method according to claim 2, it is characterised in that:
The cloud host id refers to for being associated with according to the Internet resources that the network resource request is distributed:
The cloud host id is for being added in the field of the network port distributed according to the network resource request;
Internet resources are inquired according to the cloud host id when server resets, and cleaning Internet resources are executed according to preset mechanism Operation include:
Network port resource is inquired according to the cloud host id when server resets, and primary cleaning is executed according to preset mechanism The operation of the network port.
6. a kind of device for clearing up Internet resources, comprising: memory and processor;It is characterized by:
The memory, for saving the program for clearing up Internet resources;
The processor executes the program for being used to clear up Internet resources for reading, performs the following operations: including:
During creating cloud host, the cloud host identification of cloud host to be created is carried when sending network resource request ID;The cloud host id is for being associated with the Internet resources distributed according to the network resource request;
When cloud host creates failure, the cloud host id of the cloud host of record creation failure;
Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and are executed according to preset mechanism Clear up the operation of Internet resources.
7. device as claimed in claim 6, it is characterised in that:
The Internet resources include the network port;
The service includes one or more of: calculating service, storage service, network service.
8. device as claimed in claim 7, which is characterized in that
It is described when cloud host create failure when, record creation failure cloud host cloud host id, comprising:
If being not received by the response of the network resource request in preset duration, and the number for attempting distribution Internet resources is super When crossing preset times, then the cloud host id of the cloud host is recorded in cloud host erropr message list;
Internet resources are inquired when server resets or periodically according to the cloud host id recorded, and are executed according to preset mechanism Cleaning Internet resources operation include:
Internet resources are inquired when server resets or periodically according to the cloud host id in the cloud host erropr message list, And the operation of cleaning Internet resources is executed according to preset mechanism.
9. device as claimed in claim 8, which is characterized in that
The operation that cleaning Internet resources are executed according to preset mechanism, comprising:
Network port list is returned to if normal, and the network port list is not sky, then notify to delete the network port column Information and the corresponding network port in table, and delete cloud host id described in cloud host erropr message list;
Network port list is returned if normal, and list is empty for the network port, then deletes institute in cloud host erropr message list State cloud host id;
If returning, network port list is abnormal, etc. the operation of cleaning Internet resources next time to be triggered.
10. device as claimed in claim 7, it is characterised in that:
The cloud host id refers to for being associated with according to the Internet resources that the network resource request is distributed:
The cloud host id is for being added in the field of the network port distributed according to the network resource request;
Internet resources are inquired according to the cloud host id when server resets, and cleaning Internet resources are executed according to preset mechanism Operation include:
Network port resource is inquired according to the cloud host id when server resets, and primary cleaning is executed according to preset mechanism The operation of the network port.
CN201811350620.2A 2018-11-14 2018-11-14 A kind of method and apparatus for clearing up Internet resources Withdrawn CN109495403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811350620.2A CN109495403A (en) 2018-11-14 2018-11-14 A kind of method and apparatus for clearing up Internet resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811350620.2A CN109495403A (en) 2018-11-14 2018-11-14 A kind of method and apparatus for clearing up Internet resources

Publications (1)

Publication Number Publication Date
CN109495403A true CN109495403A (en) 2019-03-19

Family

ID=65695889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811350620.2A Withdrawn CN109495403A (en) 2018-11-14 2018-11-14 A kind of method and apparatus for clearing up Internet resources

Country Status (1)

Country Link
CN (1) CN109495403A (en)

Similar Documents

Publication Publication Date Title
US11397648B2 (en) Virtual machine recovery method and virtual machine management device
US9547605B2 (en) Method for data backup, device and system
CN105373899A (en) Server asset management method and apparatus
CN110018883A (en) A kind of virtual machine delet method, device, equipment and storage medium
CN103823708B (en) The method and apparatus that virtual machine read-write requests are processed
CN110245020B (en) Mobile phone content forensics method and system based on multiple forensics devices
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
CN111464589A (en) Intelligent contract processing method, computer equipment and storage medium
CN105893266B (en) Method and apparatus for reusing storage blocks of a file system
CN104951855B (en) Apparatus and method for facilitating management of resources
CN108694022A (en) The system and method for solid-state disk for identification with the delay of minimum tail
US20200089587A1 (en) Disaster recovery specific configurations, management, and application
CN106874214A (en) The recovery method and relevant apparatus of cloud hard disk resources
US11080909B2 (en) Image layer processing method and computing device
CN112559127B (en) Virtual machine creation method, device, host and storage medium
CN110209550A (en) Fault handling method, device, electronic equipment and the storage medium of storage medium
US20230308342A1 (en) Network service management apparatus and network service management method
CN109165175A (en) Device identification generation method and device
CN116010164A (en) Method, device and system for backing up data
CN107203451A (en) Method and apparatus for handling failure within the storage system
CN109495403A (en) A kind of method and apparatus for clearing up Internet resources
CN110377616A (en) A kind of data-erasure method, device, electronic equipment and storage medium
US20230254200A1 (en) Network service management apparatus and network service management method
CN108694085A (en) Store the local disk erasing mechanism of physical resource
CN109101253B (en) Management method and device for host in cloud computing system

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190319

WW01 Invention patent application withdrawn after publication