mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
prior to this patch we were allowing 256MB for every function run, just because that was the default for the docker driver and we were not using the memory field on any given route configuration. this fixes that, now docker containers will get the correct memory limit passed into the container from the route. the default is still 128. there is also an env var now, `MEMORY_MB` that is set on each function call, see the linked issue below for rationale. closes #186 ran the given function code from #186, and now i only see allocations up to 32MB before the function is killed. yay. notes: there is no max for memory. for open source fn i'm not sure we want to cap it, really. in the services repo we probably should add a cap before prod. since we don't know any given fn server's ram, we can't try to make sure the setting on any given route is something that can even be run. remove envconfig & bytefmt this updates the glide.yaml file to remove the unused deps, but trying to install fresh is broken atm so i couldn't remove from vendor/, going to fix separately (next update we just won't get these). also changed the skip dir to be the cli dir now that its name has changed (related to brokenness). fix how ram slots were being allocated. integer division is significantly slower than subtraction.
78 lines
2.1 KiB
YAML
78 lines
2.1 KiB
YAML
package: github.com/fnproject/fn
|
|
excludeDirs:
|
|
- cli
|
|
import:
|
|
- package: github.com/funcy/functions_go
|
|
version: ^0.1.35
|
|
subpackages:
|
|
- models
|
|
- package: github.com/Sirupsen/logrus
|
|
repo: https://github.com/sirupsen/logrus.git
|
|
vcs: git
|
|
version: ^v0.11.5
|
|
subpackages:
|
|
- hooks/syslog
|
|
- package: github.com/amir/raidman
|
|
- package: github.com/boltdb/bolt
|
|
- package: github.com/cactus/go-statsd-client
|
|
subpackages:
|
|
- statsd
|
|
- package: github.com/ccirello/supervisor
|
|
- package: github.com/dchest/siphash
|
|
- package: github.com/dghubble/go-twitter
|
|
subpackages:
|
|
- twitter
|
|
- package: github.com/dghubble/oauth1
|
|
- package: github.com/dgrijalva/jwt-go
|
|
- package: github.com/docker/cli
|
|
subpackages:
|
|
- cli/config/configfile
|
|
- package: github.com/docker/distribution
|
|
branch: master
|
|
- package: github.com/fsouza/go-dockerclient
|
|
- package: github.com/garyburd/redigo
|
|
subpackages:
|
|
- redis
|
|
- package: github.com/gin-gonic/gin
|
|
- package: github.com/go-openapi/errors
|
|
- package: github.com/go-openapi/loads
|
|
subpackages:
|
|
- fmts
|
|
- package: github.com/go-openapi/runtime
|
|
subpackages:
|
|
- client
|
|
- package: github.com/go-openapi/spec
|
|
- package: github.com/go-openapi/strfmt
|
|
- package: github.com/go-openapi/swag
|
|
- package: github.com/go-openapi/validate
|
|
- package: github.com/go-sql-driver/mysql
|
|
- package: github.com/google/btree
|
|
- package: github.com/heroku/docker-registry-client
|
|
subpackages:
|
|
- registry
|
|
- package: github.com/iron-io/iron_go3
|
|
subpackages:
|
|
- config
|
|
- mq
|
|
- package: github.com/jmoiron/jsonq
|
|
- package: github.com/lib/pq
|
|
- package: github.com/docker/docker
|
|
version: v17.05.0-ce
|
|
- package: github.com/pkg/errors
|
|
- package: github.com/spf13/viper
|
|
- package: golang.org/x/crypto
|
|
subpackages:
|
|
- bcrypt
|
|
- package: gopkg.in/mgo.v2
|
|
subpackages:
|
|
- bson
|
|
- package: github.com/jmoiron/sqlx
|
|
- package: github.com/mattn/go-sqlite3
|
|
- package: github.com/opentracing/opentracing-go
|
|
- package: github.com/openzipkin/zipkin-go-opentracing
|
|
testImport:
|
|
- package: github.com/opencontainers/go-digest
|
|
branch: master
|
|
- package: github.com/patrickmn/go-cache
|
|
branch: master
|