我要评分
获取效率
正确性
完整性
易理解

Installing the Test Tool

COSBench Component Distribution

See Table 1.

Table 1 COSBench component distribution

Client Hostname

COSBench Controller

COSBench Driver

Remarks

client1

1 x controller

N x driver

N indicates the number of COSBench drivers running on the client. In this document, N is 20.

Starting COSBench

Start the COSBench drivers and controllers separately.

  1. Download the COSBench package and save it to the /home directory of each client.

    Download address: https://github.com/intel-cloud/cosbench/releases/download/v0.4.2.c4/0.4.2.c4.zip

  2. Install dependencies on each client.
    1
    yum -y install java curl
    
  3. Decompress the package on each client and go to the directory generated after the decompression.
    1
    unzip /home/0.4.2.c4.zip && cd /home/0.4.2.c4/
    
  4. Start 20 COSBench drivers on each client.
    1
    sh start-driver.sh 20 127.0.0.1 19188
    

    In the preceding command:

    • The value 20 indicates that 20 drivers are started.
    • 127.0.0.1 indicates that the drivers are started on the local client.
    • 19188 indicates the port number of a driver. The port numbers start from 19188 and increase by an increment of 100.
  5. Modify the controller.conf file.
    1
    vi conf/controller.conf
    

    Modify the file as follows:

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    [controller] 
    drivers = 20 
    log_level = INFO 
    log_file = log/system.log 
    archive_dir = archive 
     
    [driver1] 
    name = driver1 
    url = http://192.168.3.194:19188/driver 
     
    [driver2] 
    name = driver2 
    url = http://192.168.3.194:19288/driver 
     
    [driver3] 
    name = driver3 
    url = http://192.168.3.194:19388/driver 
     
    [driver4] 
    name = driver4 
    url = http://192.168.3.194:19488/driver 
     
    [driver5] 
    name = driver5 
    url = http://192.168.3.194:19588/driver 
     
    [driver6] 
    name = driver6 
    url = http://192.168.3.194:19688/driver 
     
    [driver7] 
    name = driver7 
    url = http://192.168.3.194:19788/driver 
     
    [driver8] 
    name = driver8 
    url = http://192.168.3.194:19888/driver 
     
    [driver9] 
    name = driver9 
    url = http://192.168.3.194:19988/driver 
     
    [driver10] 
    name = driver10 
    url = http://192.168.3.194:20088/driver 
     
    [driver11] 
    name = driver11 
    url = http://192.168.3.194:20188/driver 
     
    [driver12] 
    name = driver12 
    url = http://192.168.3.194:20288/driver 
     
    [driver13] 
    name = driver13 
    url = http://192.168.3.194:20388/driver 
     
    [driver14] 
    name = driver14 
    url = http://192.168.3.194:20488/driver 
     
    [driver15] 
    name = driver15 
    url = http://192.168.3.194:20588/driver 
     
    [driver16] 
    name = driver16 
    url = http://192.168.3.194:20688/driver 
     
    [driver17] 
    name = driver17 
    url = http://192.168.3.194:20788/driver 
     
    [driver18] 
    name = driver18 
    url = http://192.168.3.194:20888/driver 
     
    [driver19] 
    name = driver19 
    url = http://192.168.3.194:20988/driver 
     
    [driver20] 
    name = driver20 
    url = http://192.168.3.194:21088/driver 
     
    

    The COSBench controller and 20 COSBench drivers have been started on the client.

    In the controller.conf file:

    • drivers = 20 indicates that the controller controls 20 drivers on the client, and the IP addresses and port numbers of the 20 drivers are added.
    • 192.168.3.194 is the IP address of the client.
  6. Disable the proxy on each client.
    1
    unset http_proxy && unset https_proxy
    
  7. On the COSBench controller node of the client, start the controller.
    1
    sh start-controller.sh
    
  8. Check whether the COSBench is started.

    In the browser, enter http://<cosbench-controller-IP>:<controller-port>/controller/index.html to access the controller node. If the following information is displayed, COSBench is started successfully.