firethorn

changeset 4217:9e5d4e98967f

Notes on resource use ...
author Dave Morris <dmr@roe.ac.uk>
date Thu May 09 12:41:28 2019 +0100 (2019-05-09)
parents 57acf41bcc1c
children b4d1a8a6ee46
files doc/notes/zrq/20190508-02-vmdown-debug.txt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/doc/notes/zrq/20190508-02-vmdown-debug.txt	Thu May 09 12:41:28 2019 +0100
     1.3 @@ -0,0 +1,89 @@
     1.4 +#
     1.5 +# <meta:header>
     1.6 +#   <meta:licence>
     1.7 +#     Copyright (c) 2019, ROE (http://www.roe.ac.uk/)
     1.8 +#
     1.9 +#     This information is free software: you can redistribute it and/or modify
    1.10 +#     it under the terms of the GNU General Public License as published by
    1.11 +#     the Free Software Foundation, either version 3 of the License, or
    1.12 +#     (at your option) any later version.
    1.13 +#
    1.14 +#     This information is distributed in the hope that it will be useful,
    1.15 +#     but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.16 +#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.17 +#     GNU General Public License for more details.
    1.18 +#
    1.19 +#     You should have received a copy of the GNU General Public License
    1.20 +#     along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1.21 +#   </meta:licence>
    1.22 +# </meta:header>
    1.23 +#
    1.24 +#
    1.25 +
    1.26 +# -----------------------------------------------------
    1.27 +# Re-booted the virtual machine
    1.28 +#[user@virtual]
    1.29 +
    1.30 +    sudo reboot
    1.31 +
    1.32 +# -----------------------------------------------------
    1.33 +# Run the Python client to bring the services back up.
    1.34 +#[user@virtual]
    1.35 +
    1.36 +    export buildtag=2.1.28
    1.37 +
    1.38 +    source "${HOME:?}/chain.properties"
    1.39 +    docker-compose --file "docker-compose.yml" run firethorn-py
    1.40 +
    1.41 +--START--
    1.42 +Starting stevedore_bethany_1  ... done
    1.43 +Starting stevedore_jarmila_1  ... done
    1.44 +Starting stevedore_carolina_1 ... done
    1.45 +Starting stevedore_gillian_1  ... done
    1.46 +Python 3.5.2 (default, Nov 12 2018, 13:43:14)
    1.47 +[GCC 5.4.0 20160609] on linux
    1.48 +Type "help", "copyright", "credits" or "license" for more information.
    1.49 +--END--
    1.50 +
    1.51 +# -----------------------------------------------------
    1.52 +# Check the key resources.
    1.53 +#[user@desktop]
    1.54 +
    1.55 +    http://tap.roe.ac.uk/firethorn/adql/resource/54
    1.56 +
    1.57 +    http://tap.roe.ac.uk/firethorn/adql/resource/54/schemas/select
    1.58 +
    1.59 +    http://tap.roe.ac.uk/firethorn/adql/schema/544
    1.60 +    http://tap.roe.ac.uk/firethorn/adql/schema/544/tables/select
    1.61 +
    1.62 +    http://tap.roe.ac.uk/firethorn/adql/table/45388
    1.63 +    http://tap.roe.ac.uk/firethorn/adql/table/45388/columns/select
    1.64 +
    1.65 +    http://tap.roe.ac.uk/firethorn/adql/column/45578
    1.66 +
    1.67 +# -----------------------------------------------------
    1.68 +# Check the system status.
    1.69 +#[user@desktop]
    1.70 +
    1.71 +    http://tap.roe.ac.uk/firethorn/system/info
    1.72 +
    1.73 +        {
    1.74 +        ....
    1.75 +        "memory" : {
    1.76 +            "total" : 756547584,
    1.77 +            "free" : 329556456,
    1.78 +            "max" : 919076864
    1.79 +            },
    1.80 +        "disk" : {
    1.81 +            "total" : 33016512512,
    1.82 +            "free" : 9335693312,
    1.83 +            "usable" : 8263639040
    1.84 +            }
    1.85 +        ....
    1.86 +        }
    1.87 +
    1.88 +
    1.89 +
    1.90 +
    1.91 +
    1.92 +