Skip to content
Snippets Groups Projects
  1. Jan 04, 2019
  2. Nov 07, 2018
  3. Nov 01, 2018
  4. Oct 28, 2018
  5. Sep 19, 2018
  6. Sep 15, 2018
    • Alex Ellis (VMware)'s avatar
      Fix issue with direct_functions and path behaviour · c67c9f2b
      Alex Ellis (VMware) authored
      
      - The path clipping / transforming behaviour must be turned-off
      when we are not using direct_functions as is used in
      faas-nomad and faas-ecs. This will need a change in each provider
      to strip paths, but fixes a 404 error these users will see if they
      upgrade to 0.9.2 or newer. 0.9.3 will have a this fix meaning
      the whole un-edited path is passed to the provider when
      direct_functions is set to false.
      
      Signed-off-by: default avatarAlex Ellis (VMware) <alexellis2@gmail.com>
      c67c9f2b
  7. Sep 08, 2018
  8. Sep 06, 2018
  9. Sep 05, 2018
    • Alex Ellis (VMware)'s avatar
      Refactor #843 · ffd81afd
      Alex Ellis (VMware) authored
      
      Code-review/refactoring for #843. Closes #843.
      
      FaaSHandlers has had info and query handlers added to its list
      of types for consistency.
      
      Secrets added to queue-worker component ready for next PR.
      
      Signed-off-by: default avatarAlex Ellis (VMware) <alexellis2@gmail.com>
      ffd81afd
    • Burton Rheutan's avatar
      Pass basic auth to all system calls · fa076fb2
      Burton Rheutan authored
      
      This changeset enables passing the basic auth credentials
      to all /system/ calls to allow upstream providers to
      perform authorization checks independent of the gateway.
      
      This is essential for some providers, like Swarm, where
      the system is accessible on the same network, and not
      protected via the gateway
      
      Signed-off-by: default avatarBurton Rheutan <rheutan7@gmail.com>
      fa076fb2
  10. Aug 29, 2018
  11. Aug 24, 2018
  12. Aug 16, 2018
  13. Jul 23, 2018
  14. Jul 20, 2018
    • Alex Ellis (VMware)'s avatar
      Refactor scaling to use existing code · 9512f09d
      Alex Ellis (VMware) authored
      
      Existing code has been used for scaling up and querying replicas.
      This meant the new code was deleted and there is less duplication
      now.
      
      The cache store a whole query response rather than just the
      available replica count and the tests were updated. This has been
      tested with Docker swarm and the image:
       openfaas/gateway:scale-17-07-2018
      
      This feature now needs the env-var of scale_from_zero to be enabled
      in order to turn on the scaling behaviour.
      
      Signed-off-by: default avatarAlex Ellis (VMware) <alexellis2@gmail.com>
      9512f09d
    • Alex Ellis (VMware)'s avatar
      Disable scaling from zero by default · c58af8da
      Alex Ellis (VMware) authored
      
      This disables the scaling proxy by default since it is not the
      default user-experience and is still under refinement.
      
      Signed-off-by: default avatarAlex Ellis (VMware) <alexellis2@gmail.com>
      c58af8da
    • Alex Ellis (VMware)'s avatar
      Add feature: scale from zero to 1 replicas · e67d45ca
      Alex Ellis (VMware) authored
      
      This change allows functions to be "idled" or scaled to zero
      replicas and then be invoked later on. There is a penalty to
      scaling up - the API gateway proxy will block until the function
      is ready.
      
      A cache is included to off-set the calls to upstream API to check
      on readiness along with unit tests.
      
      Testing via scaling to zero replicas and then invoking function.
      On Swarm I observed 3 seconds on an Intel Nuc i5 for scaling back
      from zero replicas.
      
      Signed-off-by: default avatarAlex Ellis (VMware) <alexellis2@gmail.com>
      e67d45ca
  15. Jul 06, 2018
  16. Jun 18, 2018
  17. May 23, 2018
  18. May 20, 2018
  19. Apr 03, 2018
  20. Mar 26, 2018
  21. Mar 23, 2018
    • John McCabe's avatar
      Use http package consts for http methods · fac33456
      John McCabe authored
      
      This commit replaces occurences of http method strings with the
      corresponding consts from the http package.
      
      *Note* UPDATE is not strictly speaking a valid method and as such isn't
      part of the http package (should be a PUT or PATCH?)
      
      Signed-off-by: default avatarJohn McCabe <john@johnmccabe.net>
      fac33456
    • Alex Ellis's avatar
      Add direct_functions mode to gateway for tuning · 0c7e59fe
      Alex Ellis authored
      
      Adds a pair of configuration options for performance tuning. The
      gateway can now invoke functions directly and can bypass the
      provider. See updated table in README.md for configuration values.
      
      BaseURLResolver is added with unit tests that decouples resolving
      upstream URL from the reverse proxy client code.
      
      - SingleHostBaseURLResolver resolves a single upstream host
      - FunctionAsHostBaseURLResolver resolves host based upon conventions
      within the URL of the request to a function for direct access
      
      Tested with Kubernetes (faas-netes) and faas-swarm through UI, CLI
      calling system endpoints and functions directly.
      
      Signed-off-by: default avatarAlex Ellis (VMware) <alexellis2@gmail.com>
      0c7e59fe
  22. Mar 20, 2018
  23. Mar 05, 2018
  24. Mar 03, 2018
  25. Mar 01, 2018
  26. Feb 01, 2018
  27. Dec 13, 2017
  28. Dec 05, 2017
  29. Nov 29, 2017
  30. Oct 29, 2017
Loading