Commit Graph

1395 Commits

Author SHA1 Message Date
Denis Makogon
7a36e424d1 Fix app updating
Closes: #212
2017-08-09 14:41:23 +03:00
CI
a7ed30a55f fnlb: 0.0.25 release [skip ci] 0.0.25 2017-08-08 13:22:42 +00:00
CI
a990306cac fn tool: 0.3.48 release [skip ci] fn-0.3.48 2017-08-08 13:21:47 +00:00
CI
65fed1a2bf functions: 0.3.49 release [skip ci] 0.3.49 2017-08-08 13:20:11 +00:00
Denis Makogon
0ca12b9bb2 Merge pull request #206 from fnproject/fix-async-ram
plumb all config fields into task
2017-08-08 16:11:00 +03:00
CI
7758e4a76a fnlb: 0.0.24 release [skip ci] 0.0.24 2017-08-07 19:06:57 +00:00
CI
ae62f7469d fn tool: 0.3.47 release [skip ci] fn-0.3.47 2017-08-07 19:05:59 +00:00
CI
2940727082 functions: 0.3.48 release [skip ci] 0.3.48 2017-08-07 19:04:21 +00:00
Reed Allman
efe9027b8a Merge pull request #204 from fnproject/private-lb
kubernetes: add instructions for private services
2017-08-07 11:54:17 -07:00
CI
0a8ed020b2 fnlb: 0.0.23 release [skip ci] 0.0.23 2017-08-07 18:09:13 +00:00
CI
7afcad9992 fn tool: 0.3.46 release [skip ci] fn-0.3.46 2017-08-07 18:08:16 +00:00
CI
d70f27b870 functions: 0.3.47 release [skip ci] 0.3.47 2017-08-07 18:06:39 +00:00
Reed Allman
10c99abd46 Merge pull request #203 from fnproject/update-swagger
Update swagger
2017-08-07 10:56:41 -07:00
CI
3a38928386 fn tool: 0.3.45 release [skip ci] fn-0.3.45 2017-08-07 17:56:03 +00:00
CI
995619f077 functions: 0.3.46 release [skip ci] 0.3.46 2017-08-07 17:54:26 +00:00
Reed Allman
f7345e8080 Merge pull request #191 from fnproject/fix-memory-limits
fix task memory
2017-08-07 10:44:23 -07:00
Denis Makogon
fcb41c89a7 Update swagger
removing backslash that causes HTTP 301 Redirect

[GIN-debug] redirecting request 301: /v1/apps/testapp/calls/ --> /v1/apps/testapp/calls
2017-08-07 14:08:19 +03:00
CI
15ada7f17f fnlb: 0.0.22 release [skip ci] 0.0.22 2017-08-05 04:49:46 +00:00
CI
064c946c42 fn tool: 0.3.44 release [skip ci] fn-0.3.44 2017-08-05 04:48:49 +00:00
CI
b3b243bb56 functions: 0.3.45 release [skip ci] 0.3.45 2017-08-05 04:47:13 +00:00
Reed Allman
8d526bbeb8 Merge pull request #198 from fnproject/bumpies
update bump script to be slightly less brittle, all perl syntax
2017-08-04 21:31:13 -07:00
Brandon Philips
c4af465ccc kubernetes: add instructions for private services 2017-08-03 18:33:08 -07:00
CI
0322d2623e fnlb: 0.0.21 release [skip ci] 0.0.21 2017-08-03 22:42:43 +00:00
CI
9fae8d6853 fn tool: 0.3.43 release [skip ci] fn-0.3.43 2017-08-03 22:41:41 +00:00
CI
159db07817 functions: 0.3.44 release [skip ci] 0.3.44 2017-08-03 22:40:00 +00:00
Reed Allman
ccea601028 Merge pull request #163 from fnproject/hot-env-changes
change hot containers when route/app vars change
2017-08-03 15:29:41 -07:00
CI
b1f41f60bb fnlb: 0.0.20 release [skip ci] 0.0.20 2017-08-03 21:15:57 +00:00
CI
faac8734a8 fn tool: 0.3.42 release [skip ci] fn-0.3.42 2017-08-03 21:14:59 +00:00
CI
e2bb0b1965 functions: 0.3.43 release [skip ci] 0.3.43 2017-08-03 21:13:23 +00:00
Reed Allman
10e41c331f Merge pull request #190 from fnproject/update-deps
Update CLI deps
2017-08-03 14:04:22 -07:00
Travis Reeder
2d96f8350c Update deps 2017-08-03 13:36:48 -07:00
CI
e47ab56ff0 fnlb: 0.0.19 release [skip ci] 0.0.19 2017-08-03 18:18:32 +00:00
CI
104924dea5 fn tool: 0.3.41 release [skip ci] fn-0.3.41 2017-08-03 18:17:36 +00:00
CI
7ad81ebeb5 functions: 0.3.42 release [skip ci] 0.3.42 2017-08-03 18:15:58 +00:00
Reed Allman
36af7513ac Merge pull request #175 from fnproject/fn-tests
Tests cli for all quickstart commands
2017-08-03 11:06:35 -07:00
Travis Reeder
95dc8bc4ed docker login earlier 2017-08-03 10:12:29 -07:00
Travis Reeder
8f81ff7b56 Updated circle 2017-08-03 08:09:44 -07:00
Reed Allman
6a7973e6b6 plumb all config fields into task
the mqs are storing a models.Task, which was not incorporating all the fields
that are in a task.Config. I would very much like to merge these two things,
but expect to do this in a future restructuring as both are used widely and
not cordoned off properly (Config has a channel, stdin, stdout, stderr -- and
isn't just a 'config', so to speak, as Task is).

Since a task.Config is what is used to actually run a container, the result of
the aforementioned deficiency was #193 where tasks are improperly configured
and ran (namely, memory wrong).

async tasks can still not be hot, they will be reverted to default format.
would also like to fix this (also part of restructuring). I actually started
doing this, hence the changes to those files (the surface area of the change
is small and discourages improper future use, so I've left what I've done).

this will:

closes #193
closes #195
closes #154

removes many unused fields in models.Task, since we have not implemented
retries. priority & delay are left, even though they are not used either,
the main goal of this is to resolve #193 and both these fields are strongly
plumbed into all the mqs, so punting on those two.
2017-08-03 06:33:30 -07:00
Reed Allman
c0edde7abe update bump script to be slightly less brittle, all perl syntax 2017-08-02 21:16:24 -07:00
Reed Allman
910f6a4b09 fix memory setting in cli, remove MEMORY_MB for now 2017-08-02 20:24:58 -07:00
Reed Allman
3ff28163db fix task memory
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.
2017-08-02 19:09:16 -07:00
Reed Allman
4ad1167284 simplify env var setting, precisely allocate maps 2017-08-02 15:40:50 -07:00
CI
e40b5a832c fnlb: 0.0.18 release [skip ci] 0.0.18 2017-08-02 22:19:53 +00:00
CI
d624f82a8b fn tool: 0.3.40 release [skip ci] fn-0.3.40 2017-08-02 22:18:53 +00:00
CI
7f054b46cb functions: 0.3.41 release [skip ci] 0.3.41 2017-08-02 22:17:17 +00:00
Reed Allman
9ccd48eb18 adds FN_FORMAT, APP_NAME and ROUTE to hot containers 2017-08-02 15:14:23 -07:00
Reed Allman
63796a7c48 change hot containers when route/app vars change
this changes the behavior of hot containers:

1) we are no longer populating a hot container with all of the env vars from the
first request to start up that hot container. this will only populate the
container with any vars that are defined on the app or route.
2) when env vars are changed on the route or app, we will now start up a new
hot container that contains those changes.
3) fixes a bug where we could have a collision if the image and path name
created one, e.g. `/yo/foo` & `oze/yo:latest` collides with `/yo/fo` and
`ooze/yo:latest` (if all other fields are held constant), since we're
name spacing with app name in theory it would happen to the same user (though
we were relying on a comma delimiter there, not great). now we use NULL bytes
which should be hard to get in through a json api ;) i added a sha1 to keep
the size of the (soon to be very large) map down, i don't expect collisions
but, well, it's a hash function.

a small note that we could add a few things to the hot container that will not
change on a request basis, such as `app_name`, `format` and `route` but it's a
bit pedantic. ultimately, it's confusing imo that we have a different set of
vars in the env and in the request itself for hot, which is unavoidable unless
we choose to omit setting env vars entirely, but it seems to be what the
people want (lmk, people, if otherwise).
2017-08-02 15:14:23 -07:00
CI
563c202a94 fnlb: 0.0.17 release [skip ci] 0.0.17 2017-08-02 22:08:22 +00:00
CI
3849054b75 fn tool: 0.3.39 release [skip ci] fn-0.3.39 2017-08-02 22:07:27 +00:00
CI
4d0b2d2f3c functions: 0.3.40 release [skip ci] 0.3.40 2017-08-02 22:05:52 +00:00