Commit Graph

233 Commits

Author SHA1 Message Date
James Jeffrey
4fbb34655a Update vendored deps 2017-07-06 13:41:25 -07:00
James Jeffrey
9d677fab63 Update cli to use put for deploy 2017-07-06 13:31:35 -07:00
James Jeffrey
2832c5adec Catch errors when building fn bin 2017-07-06 11:46:24 -07:00
Denis Makogon
fa20db0df4 Remove trace message on client init 2017-07-06 20:42:42 +03:00
Denis Makogon
009c478c07 Clean up leftover imports 2017-07-06 18:15:07 +03:00
Denis Makogon
adf61c77be Full stack tests 2017-07-05 12:38:09 -07:00
Reed Allman
452dc1ee86 Merge branch 'fnpatch' into 'master'
fixes fn set/unset for routes & apps

Closes #80

See merge request !83
2017-06-29 13:43:44 -07:00
Reed Allman
94c0232480 Merge branch 'remove_iron' into 'master'
Use FN_TOKEN not iron_token

See merge request !82
2017-06-29 10:59:44 -07:00
Reed Allman
4e7a497696 fixes fn set/unset for routes & apps
was posting a whole config and not letting the server do the merging, now the
server does the merging instead. touch tested this, works as originally
intended now.

closes !80
closes #80
2017-06-28 21:19:01 -07:00
Denis Makogon
1dccbaf5b7 Updating functions_go 2017-06-27 21:43:07 +03:00
James Jeffrey
4738cd3aae Use FN_TOKEN not iron_token 2017-06-26 17:16:15 -07:00
Travis Reeder
106ba2a102 fn tool: 0.3.12 release [skip ci] 2017-06-21 08:46:20 -07:00
Travis Reeder
47d78c3307 Fixed slice index out of bounds error from fix-logs 2017-06-21 08:24:06 -07:00
Travis Reeder
8c96d3ba2f Fixes async payload passing for #68. 2017-06-20 11:32:51 -07:00
Travis Reeder
c94dab3d45 Merge branch 'cleanup-lambda' into 'master'
Fixed up lambda-node to work with multi-stage changes.

See merge request !64
2017-06-19 11:46:13 -07:00
Travis Reeder
c6a315ae7d Fixed up lambda-node to work with multi-stage changes. 2017-06-19 11:28:14 -07:00
Travis Reeder
9a8ff408b5 Fixes scary output on docker startup. 2017-06-15 15:48:34 -07:00
Travis Reeder
855dcf6ac7 fn tool: 0.3.11 release [skip ci] 2017-06-15 08:35:11 -07:00
Travis Reeder
63680ad815 Added alpine fn release. 2017-06-15 08:33:53 -07:00
Reed Allman
84c7b4d656 Merge branch 'fix-fn-glide' into 'master'
fix the fn glide

See merge request !54
2017-06-13 11:47:14 -07:00
Travis Reeder
6480725b51 fn tool: 0.3.10 release [skip ci] 2017-06-13 11:39:40 -07:00
Travis Reeder
da70a0ef67 Fixing fn release script. 2017-06-13 11:38:54 -07:00
Travis Reeder
4a89f5648d fixing fn release script 2017-06-13 11:14:34 -07:00
Travis Reeder
9981004af3 fn tool: 0.3.9 release [skip ci] 2017-06-13 11:11:02 -07:00
Travis Reeder
f9cc13c7f5 Fixing fn release script. 2017-06-13 11:10:22 -07:00
Travis Reeder
475a070278 fn tool: 0.3.8 release [skip ci] 2017-06-13 11:07:53 -07:00
Travis Reeder
012855ee0d Fixing fn release script. 2017-06-13 11:07:18 -07:00
Reed Allman
d4340e4932 add fn/vendor 2017-06-11 02:10:50 -07:00
Reed Allman
16529159a9 update other gitignore 2017-06-11 02:07:31 -07:00
Reed Allman
6ee9c1fa0a remove dep files, update glide top to ignore fn/ 2017-06-11 02:03:02 -07:00
Reed Allman
8790859532 fix the fn glide 2017-06-10 02:35:26 -07:00
James Jeffrey
79f1dab007 Deploy sh 2017-06-09 13:42:59 -07:00
Denis Makogon
52137e3b61 Update fn tool 2017-06-08 11:46:56 -07:00
Reed Allman
478245de4c Merge branch 'rm-max-c-2' into 'master'
clean up hotf(x) concurrency, rm max c

See merge request !40
2017-06-07 15:51:07 -07:00
Reed Allman
9ed66591c3 need to use >=17.05 (not 17.5), add trimming for weird builds 2017-06-07 15:48:00 -07:00
Travis Reeder
f628e39490 Moving dep builds into Dockerfile and multi-stage builds. 2017-06-06 15:02:08 -07:00
Denis Makogon
1a2a805740 Update functions_{lang} tool to recent git source 2017-06-06 19:50:33 +03:00
Reed Allman
9edacae928 clean up hotf(x) concurrency, rm max c
this patch gets rid of max concurrency for functions altogether, as discussed,
since it will be challenging to support across functions nodes. as a result of
doing so, the previous version of functions would fall over when offered 1000
functions, so there was some work needed in order to push this through.
further work is necessary as docker basically falls over when trying to start
enough containers at the same time, and with this patch essentially every
function can scale infinitely. it seems like we could add some kind of
adaptive restrictions based on task run length and configured wait time so
that fast running functions will line up to run in a hot container instead of
them all creating new hot containers.

this patch takes a first cut at whacking out some of the insanity that was the
previous concurrency model, which was problematic in that it limited
concurrency significantly across all functions since every task went through
the same unbuffered channel, which could create blocking issues for all
functions if the channel is not picked off fast enough (it's not apparent that
this was impossible in the previous implementation). in any event, each
request has a goroutine already, there's no reason not to use it. not too hard
to wrap a map in a lock, not sure what the benefits were (added insanity?) in effect
this is marginally easier to understand and less insane (marginally). after
getting rid of max c this adds a blocking mechanism for the first invocation
of any function so that all other hot functions will wait on the first one to
finish to avoid a herd issue (was making docker die...) -- this could be
slightly improved, but works in a pinch. reduced some memory usage by having
redundant maps of htfnsvr's and task.Requests (by a factor of 2!). cleaned up
some of the protocol stuff, need to clean this up further. anyway, it's a
first cut. have another patch that rewrites all of it but was getting into
rabbit hole territory, would be happy to oblige if anybody else has problems
understanding this rat's nest of channels. there is a good bit of work left to
make this prod ready (regardless of removing max c).

a warning that this will break the db schemas, didn't put the effort in to add
migration stuff since this isn't deployed anywhere in prod...

TODO need to clean out the htfnmgr bucket with LRU
TODO need to clean up runner interface
TODO need to unify the task running paths across protocols
TODO need to move the ram checking stuff into worker for noted reasons
TODO need better elasticity of hot f(x) containers
2017-06-05 20:04:13 -07:00
James Jeffrey
7e02597142 Merge branch 'chad-update-tutorial' into 'master'
adding rust, fixing python/php, adding ability to detect rusts src/main.rs file. Updates all tutorials as well.

See merge request !39
2017-06-05 15:52:31 -07:00
Chad Arimura
17bbef04f5 adding rust, fixing python/php, adding ability to detect rusts src/main.rs file 2017-06-05 12:32:23 -07:00
James
b29e4c2564 Ignore only fn file in fn 2017-06-02 08:45:16 -07:00
Travis Reeder
87ef24fe04 Updated dependencies and fixed issue with fn dependending on version from api. 2017-06-01 13:45:24 -07:00
Mukhtar Haji
cd0b68dfb7 First iteration of support for Java 2017-06-01 02:19:37 -07:00
James Jeffrey
c7a5bae587 Merge branch 'chad-gitlab-url-change' into 'master'
Chad gitlab url change

See merge request !28
2017-05-30 11:34:22 -07:00
James Jeffrey
22dff9b45e Merge branch 'chad-ux-updates' into 'master'
changing url in install script

See merge request !26
2017-05-30 11:32:30 -07:00
Travis Reeder
af918fdfe9 Fix run env vars passed in via command line to test locally and updated docs to match. 2017-05-30 10:54:34 -07:00
Denis Makogon
31b4ac4516 Address broken tests 2017-05-30 08:50:53 -07:00
Chad Arimura
49d397293b global url replace 2017-05-29 17:10:47 -07:00
Chad Arimura
065c5fef68 test webhook to MM, fixing release.sh URL 2017-05-29 08:50:41 -07:00
Chad Arimura
af95509912 changing url in install script 2017-05-28 18:43:31 -07:00