ReleaseEngineering/Applications/Runner: Difference between revisions

→‎Logging: Add additional info for people using runner's influxdb logs
(Update with info regarding runner's current production status.)
(→‎Logging: Add additional info for people using runner's influxdb logs)
Line 18: Line 18:


Runner includes a task hook, which allows users to specify a command that runner will call before and after each task: passing along a JSON blob of context as an argument. A script is being used to pass runner’s state to influxdb at this time: http://hg.mozilla.org/build/puppet/file/953387c94f60/modules/runner/files/influxdb_hook.py
Runner includes a task hook, which allows users to specify a command that runner will call before and after each task: passing along a JSON blob of context as an argument. A script is being used to pass runner’s state to influxdb at this time: http://hg.mozilla.org/build/puppet/file/953387c94f60/modules/runner/files/influxdb_hook.py
The influxdb table is named runner_tasks, and it's schema is as follows:
    {
        "name": "runner_tasks",
        "columns": [
            "time",
            "sequence_number",
            "aws_instance_id",
            "task", # name of the currently running task
            "aws_instance_type",
            "placement/availability_zone",
            "result", # corresponds to tasks exit code (or RUNNING if it hasn't yet finished)
            "hostname",
            "aws_ami_id",
            "platform", # linux/mac/windows
            "max_retries", # how many retries before the machine reboots
            "try_num", # what retry number is this task on
        ],
        "points": [
            [
                1430330947576,
                659479710001,
                "i-05eb3cf2",
                "1-cleanslate",
                "m1.medium",
                "us-west-2b",
                "OK",
                "tst-linux64-spot-1824.test.releng.usw2.mozilla.com",
                "ami-418abd71",
                "linux2",
                5,
                1,
            ]
        ]
    }
For docs about InfluxDB's query language see: http://influxdb.com/docs/v0.8/api/query_language.html


Runner’s regular output can be found on Linux hosts at /var/log/runner.log, on OS X hosts at /var/tmp/runner.out and /var/tmp/runner.err, and on Win32 hosts at C:/tmp/runner.log
Runner’s regular output can be found on Linux hosts at /var/log/runner.log, on OS X hosts at /var/tmp/runner.out and /var/tmp/runner.err, and on Win32 hosts at C:/tmp/runner.log
78

edits