1. 22 Feb, 2019 4 commits
  2. 21 Feb, 2019 1 commit
  3. 20 Feb, 2019 5 commits
  4. 19 Feb, 2019 8 commits
  5. 18 Feb, 2019 6 commits
  6. 15 Feb, 2019 3 commits
  7. 14 Feb, 2019 2 commits
  8. 10 Feb, 2019 2 commits
  9. 08 Feb, 2019 4 commits
    • Guillaume Hervier's avatar
      software/kvm: Add buildout.hash.cfg and refactor software sections. · 1707af40
      Guillaume Hervier authored
      - Add `buildout.hash.cfg` file so this way we can use the useful `update-hash` script
      - Refactor a bit the `software.cfg` file sections as it was repeating itself
      
      /reviewed-on nexedi/slapos!512
      1707af40
    • Łukasz Nowak's avatar
      caddy-frontend: Test try_duration and try_interval · 26900109
      Łukasz Nowak authored
      Extend the backend with Timeout configuration via headers and use it
      to prove, that request taking more than try_duration is correctly served.
      
      Also prove that try_duration and try_interval are correct passed to the slave
      configuration.
      26900109
    • Łukasz Nowak's avatar
      caddy-frontend: Fix random 502 EOFs by adding try_duration · 4f168972
      Łukasz Nowak authored
      try_duration and try_interval are Caddy proxy's switches which allow to deal
      with non working backend (https://caddyserver.com/docs/proxy)
      
      The non working backend is the one, to which connection is lost or was not
      possible to make, without sending any data.
      
      The default try_duration=5s and try_interval=250ms are chosen, so that in
      normal network conditions (with all possible problems in the network, like
      lost packets) the browser will have to wait up to 5 seconds to be informed
      that backend is inaccessible or for the request to start being processed,
      but only a bit more than 250ms if Caddy would have to reestablish connection
      to faulty backend.
      
      In order to check it out it is advisable to setup a system, with real backend,
      like apache one, and configure iptables to randomly reject packets to it:
      
        iptables -A INPUT -m statistic --mode random -p tcp --dport <backend_port> \
        --probability 0.05 -j REJECT --reject-with tcp-reset
      
      Using ab or any other tool will results with lot of 502 EOF in the Caddy error
      log and also reported by ab. With this configuration there are no more
      errors visible to the client, which come from the problems on the network
      between Caddy and the backend.
      4f168972
    • Łukasz Nowak's avatar
      caddy-frontend/test: Avoid checking command result during assertion · ee87b773
      Łukasz Nowak authored
      Assert itself "check_output" of given command, so provide simple
      subprocess_output with all possible information from the called command.
      ee87b773
  10. 07 Feb, 2019 2 commits
  11. 06 Feb, 2019 1 commit
  12. 05 Feb, 2019 2 commits