diff options
author | drebs <drebs@leap.se> | 2017-07-13 13:02:10 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2017-07-13 13:02:10 -0300 |
commit | 256182a91414b8a57e9614f65409fc06d62b39d1 (patch) | |
tree | 2880525aa3774300ff369edb8ebf12d80ec35ab5 /docs/misc | |
parent | 507093f88f08bca237f54ff995e070c429be47ab (diff) |
[doc] add info on how to update benchmarks website
Diffstat (limited to 'docs/misc')
-rw-r--r-- | docs/misc/benchmarks-website.rst | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/docs/misc/benchmarks-website.rst b/docs/misc/benchmarks-website.rst new file mode 100644 index 00000000..14a8412b --- /dev/null +++ b/docs/misc/benchmarks-website.rst @@ -0,0 +1,46 @@ +Benchmarks website +================== + +Currently, showing the results of benchmarks still requires manual +intervention. With time, we want to automatize these tasks. + +How to add a new test to the benchmarks website +----------------------------------------------- + +Current steps are: + +#. Create a new test in ``soledad/testing/tests/benchmarks``, and commit. +#. Push it to ``ssh://0xacab.org/leap/soledad``. +#. Wait until benchmarks stage finishes (so results are posted to elasticsearch). +#. Update kibana visualizations and dashboards:: + + # currently, kibana configurations are in the `scripts` repository. + cd scripts/elastic/ + ./generate-config.py + ./load.sh -url https://moose.leap.se:9200 + +#. Update the benchmarks website:: + + # currently, website lives in the `puppet` repository. + cd puppet/modules/site_benchmarks/ + vim generate-config + ./gen-dashboard-pages.sh + make + git commit -a -m "[benchmarks] update website with new tests" + git push + +TODO +---- + +The following steps are needed to have the website be updated automatically +with all existing stats: + +- Move kibana-related stuff to the ``puppet`` repository. +- Push kibana-related scripts to the server. +- Have kibana be updated periodically with new tests (either using a cron job + and maybe also use the CI to trigger that?) +- Modify website generation scripts so they run in the server to generate + static html (also cron and CI would be great here). +- Enable nginx ssi. +- Modify ``is-master-benchmarked.sh`` script to generate a simple html, include + the generated html in benchmark website. |