This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Demo with release binary

    The demo setup with the release binary only works with a Linux system running on a x86-64 processor.

    Grab the release binary at GitHub. The following description assumes you perform all tasks from your home folder. Extract the tar archive:

    tar xzf cc-backend_Linux_x86_64.tar.gz
    

    Create an empty folder and copy the binary cc-backend from the extracted archive folder to this folder:

    mkdir ./demo
    
    cp cc-backend ./demo
    

    Change to the demo folder and run the following command to setup the required var directory, initialize the sqlite database, config.json and .env files:

    ./cc-backend -init
    

    Open config.json in an editor of your choice to edit the existing clusters name and add a second cluster. Name the clusters fritz and alex. The file should look as below afterwards:

     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
    
    {
        "addr": "127.0.0.1:8080",
        "archive": {
            "kind": "file",
            "path": "./var/job-archive"
        },
        "jwts": {
            "session-max-age": "24h",
        },
        "clusters": [
            {
                "name": "fritz",
                "metricDataRepository": {
                    "kind": "cc-metric-store",
                    "url": "http://localhost:8082",
                    "token": ""
                },
                "filterRanges": {
                    "numNodes": {
                        "from": 1,
                        "to": 64
                    },
                    "duration": {
                        "from": 0,
                        "to": 86400
                    },
                    "startTime": {
                        "from": "2023-01-01T00:00:00Z",
                        "to": null
                    }
                }
            },
            {
                "name": "alex",
                "metricDataRepository": {
                    "kind": "cc-metric-store",
                    "url": "http://localhost:8082",
                    "token": ""
                },
                "filterRanges": {
                    "numNodes": {
                        "from": 1,
                        "to": 64
                    },
                    "duration": {
                        "from": 0,
                        "to": 86400
                    },
                    "startTime": {
                        "from": "2023-01-01T00:00:00Z",
                        "to": null
                    }
                }
            }
        ]
    }
    

    Download the demo job archive:

    wget https://hpc-mover.rrze.uni-erlangen.de/HPC-Data/0x7b58aefb/eig7ahyo6fo2bais0ephuf2aitohv1ai/job-archive-demo.tar
    

    Extract the job archive:

    tar xf job-archive-demo.tar
    

    Initialize the database using the data from the job archive and create the demo user:

    ./cc-backend -init-db -add-user demo:admin:demo -loglevel info
    

    Start the web server:

    ./cc-backend -server -dev -loglevel info
    

    Open a web browser and access http://localhost:8080. You should see the ClusterCockpit login page:

    ClusterCockpit Login page

    Enter demo for the Username and demo for the Password and press the Submit button. After that the ClusterCockpit index page should be displayed:

    ClusterCockpit Index page

    The demo user has the admin role and therefore can see all views.

    For details about the features of the web interface have a look at the user guide.