Permalink
Switch branches/tags
Commits on Nov 7, 2018
  1. Make use of cache in scaling

    alexellis committed Nov 5, 2018
    - this reinstates the cache to reduce the count of lookups to the
    provider when checking if scaling is needed.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
  2. Enable backoff/retries on scaling up

    alexellis committed Nov 5, 2018
    - this change is needed for Docker Swarm which may give an error
    when several concurrent requests come in to scale a deployment.
    
    Tested on Docker Swarm before/after with the hey tool and figlet
    scaled down to zero replicas.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Nov 5, 2018
  1. Add Ed to Core Contributors

    alexellis committed Nov 5, 2018
    This commit adds Ed to the Core Contributors
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Nov 4, 2018
  1. Enable hashed passwords with PowerShell

    alexellis committed Nov 4, 2018
    - PR #929 introduced the ability to generate passwords for the
    gateway admin user, this is a good step forwards for Windows
    users. It did introduce an inconsistency in the format that
    passwords are stored by not using a form of hashing. Hashing
    of secrets is used extensively within OpenFaaS/OpenFaaS Cloud
    whether with Swarm or Kubernetes via helm. If there are
    concerns about using a hashed value for a password I would
    suggest raising an issue to track this and have any decision
    we make applied for all users (not just PowerShell users).
    
    As a  compromise I've introduced hashing by default and added
    a new flag called -noHash which can be used to replicate the
    behaviour of the original PR.
    
    After feedback from other contributors I also looked into whether
    the flag syntax could match the existing syntax but left this as
    is. Bash will use --no-auth and PowerShell will use --noAuth.
    
    This was tested on Docker Swarm on Windows.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Nov 1, 2018
  1. Extract scaling from zero

    alexellis committed Nov 1, 2018
    - extracting this package means it can be used in other components
    such as the asynchronous nats-queue-worker which may need to
    invoke functions which are scaled down to zero replicas.
    
    Ref: openfaas/nats-queue-worker#32
    
    Tested on Docker Swarm for scaling up, already scaled and not
    found error.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Oct 28, 2018
  1. Add documentation for scaling handler

    alexellis committed Oct 28, 2018
    - documents ScalingConfig and MakeScalingHandler
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Oct 25, 2018
  1. Add sample function

    alexellis committed Oct 25, 2018
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
  2. Update for scaling edge-case

    alexellis committed Oct 25, 2018
    - as reported on Slack and in issue #931 the gateway scaling code
    was scaling to zero replicas as a result of the "proportional
    scaling" added by @Templum's PR. This commit added a failing test
    which was fixed by adding boundary checking - now if the scaling
    amount is "0" we keep the current amount of replicas.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Oct 21, 2018
  1. Bump gw version to 0.9.7

    alexellis committed Oct 21, 2018
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Oct 20, 2018
  1. Update CONTRIBUTING.md

    alexellis committed Oct 20, 2018
Commits on Oct 19, 2018
  1. Update integration test

    alexellis committed Oct 19, 2018
    We now send Accepted not OK for creating functions.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
  2. Don't follow redirects from functions

    alexellis committed Oct 19, 2018
    - Covers part of 919 by making the HTTP client used for proxying
    stop following redirects. Tested with a stateless microservice,
    but additional code changes may be requierd in the queue-worker,
    the watchdogs and other areas.
    
    Tested on Swarm with stateless microservice (Node.js) issuing
    a redirect via Location header.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Oct 13, 2018
  1. Add event locations to my talks

    alexellis committed Oct 13, 2018
Commits on Oct 12, 2018
  1. Add Lambda blog post and update key

    alexellis committed Oct 12, 2018
    Signed-off-by: Alex Ellis <alexellis2@gmail.com>
  2. Add 2x packtpub.com books

    alexellis committed Oct 12, 2018
    Signed-off-by: Alex Ellis <alexellis2@gmail.com>
  3. Add 2018 Bossie 🏆🏆!

    alexellis committed Oct 12, 2018
    Signed-off-by: Alex Ellis <alexellis2@gmail.com>
Commits on Oct 9, 2018
  1. Bump figlet version

    alexellis committed Oct 9, 2018
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Oct 3, 2018
  1. Update README files

    alexellis committed Oct 3, 2018
    - Removes use of "our" from CONTRIBUTING guide
    - Updates/adds README.md files
    - Commnents and typo fix in watchdog
    - Adds good/bad examples of commit messages
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
  2. Update comments

    alexellis committed Oct 3, 2018
    - updates comments and adds where missing
    - updates locks so that unlock is done via defer instead of
    at the end of the statement
    - extracts timeout variable in two places
    - remove makeClient() unused method from metrics package
    
    No-harm changes tested via go build.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Oct 2, 2018
  1. Add long-hand sign-off

    alexellis committed Oct 2, 2018
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Sep 30, 2018
  1. Update Alpine base to 3.8

    alexellis committed Sep 30, 2018
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Sep 28, 2018
  1. Add Ken's stats function

    alexellis committed Sep 28, 2018
Commits on Sep 20, 2018
  1. Create publish-armhf.sh

    alexellis committed Sep 20, 2018
  2. Update ci.sh

    alexellis committed Sep 20, 2018
  3. Update ci.sh

    alexellis committed Sep 20, 2018
Commits on Sep 19, 2018
  1. Update sample functions

    alexellis committed Sep 19, 2018
    - the path was converted to lowercase which meant the samples
    would not build, this fixes that error.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
  2. Bump g/w 0.9.5 and faas-swarm to 0.4.3

    alexellis committed Sep 19, 2018
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
  3. Enable basic auth for service query / scaling on provider

    alexellis committed Sep 19, 2018
    - this is a blocking issue for auth with Docker Swarm
    fixes #879
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Sep 18, 2018
  1. Update stack.yml

    alexellis committed Sep 18, 2018
  2. Update stack_arm.yml

    alexellis committed Sep 18, 2018
Commits on Sep 17, 2018
  1. Alter graceful shutdown sequence

    alexellis committed Sep 17, 2018
    - the shutdown sequence meant that the kubelet was still passing
    work to the watchdog after the HTTP socket was closed. This change
    means that the kubelet has a chance to run its check before we
    finally stop accepting new connections. It will require some
    basic co-ordination between the kubelet's checking period and the
    "write_timeout" value in the container.
    
    Tested with Kubernetes on GKE - before the change some Pods were
    giving a connection refused error due to them being not detected
    as unhealthy. Now I receive 0% error rate even with 20 qps.
    
    Issue was shown by scaling to 20 replicas, starting a test with
    hey and then scaling to 1 replica while tailing the logs from the
    gateway. Before I saw some 502, now I see just 200s.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Sep 15, 2018
  1. Fix issue with direct_functions and path behaviour

    alexellis committed Sep 15, 2018
    - 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: Alex Ellis (VMware) <alexellis2@gmail.com>
  2. Rename nodeinfo image to match store

    alexellis committed Sep 15, 2018
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
Commits on Sep 10, 2018
  1. Lock down faas-swarm

    alexellis committed Sep 10, 2018
    - This commit moves us to faas-swarm 0.4.2 which uses basic auth
    (when enabled) to prevent functions or other services from
    accessing the administrative API endpoints.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
  2. Add contributing_url

    alexellis committed Sep 10, 2018
    This means any repos which redirect here will pick up the standard
    openfaas/faas guide instead of pointing to their local variant.
    
    Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>