Method and apparatus for carrying out batch processing on lots of hosts in CDN network

A batch processing, host technology, applied in data exchange network, digital transmission system, electrical components, etc., can solve the problem of inconsistent command prompt format, unable to identify the boundary of command output content, etc.

Active Publication Date: 2014-09-10
CHINACACHE INT HLDG
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The present invention provides a method for batch processing a large number of hosts in a CDN network, which is used to solve the situation in the prior art that the Chinese side cannot determine the boundary of the command output content when the command output contains control characters or the command prompt format is not uniform The problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for carrying out batch processing on lots of hosts in CDN network
  • Method and apparatus for carrying out batch processing on lots of hosts in CDN network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] An embodiment of the present invention provides a method for batch processing a large number of hosts in a CDN network. The method includes: obtaining a task description file, determining a task to be performed, and obtaining a list of hosts that need to perform the task, and the list of hosts includes the login of the host information; according to the number of generated work processes, obtain a corresponding number of target hosts from the host list, and push the login information of the target hosts to each idle work process, so that the idle work processes can perform tasks to the target host through the SSH protocol Describe the tasks included in the file; after receiving the task execution result, judge whether there are unprocessed hosts provided in the host list, and if so, obtain the login information of any unprocessed host and push it to the working process.

[0022] Such as figure 1 As shown, the embodiment of the present invention provides a method for bat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for carrying out batch processing on lots of hosts in a CDN network, wherein the method is applied to the CDN network host operation and maintenance technology filed. The method comprises the following steps that: a task description file is obtained, a task that is to be executed is determined and a detailed list of hosts that are required to execute the task is obtained; according to the generated number of working processes, the corresponding number of target hosts are obtained from the host detailed list as well as login information of the target hosts is respectively pushed to all idle working processes; and after a task execution result is received, it is determined whether there is any host that has not been processed in the host detailed list; if so, login information of any host that has not been processed is obtained and is pushed to the working process. According to the provided method and the provided apparatus in the invention, a data packet that is returned by a secure shell (SSH) protocol can be directly received, so that a problem that it is difficult to determine a boundary of an output content of a command in the prior art can be solved.

Description

technical field [0001] The invention relates to the technical field of CDN network host operation and maintenance, in particular to a method and device for batch processing a large number of hosts in a CDN network. Background technique [0002] Between various hosts in the CDN network, it is often necessary to remotely log in through the SSH (Secure Shell) protocol for operations. The SSH protocol daemon sshd can authenticate sessions initiated by operators. After the session is authenticated, the command input by the operator can be repeatedly accepted, executed and the execution result output. [0003] CDN network host operation and maintenance personnel often use the SSH protocol to install software, view device runtime status, and diagnose and repair abnormalities. A typical working method is to enter a command, check its output, get some useful information from it, make a judgment based on the obtained information, and determine the next command to be input according ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/24H04L29/08
Inventor 王兴华宗劼
Owner CHINACACHE INT HLDG
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products