Commit Graph

23 Commits

Author SHA1 Message Date
Travis Reeder
8c96d3ba2f Fixes async payload passing for #68. 2017-06-20 11:32:51 -07: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
Travis Reeder
f628e39490 Moving dep builds into Dockerfile and multi-stage builds. 2017-06-06 15:02:08 -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
Mukhtar Haji
cd0b68dfb7 First iteration of support for Java 2017-06-01 02:19:37 -07:00
Chad Arimura
49d397293b global url replace 2017-05-29 17:10:47 -07:00
Chad Arimura
b49337d4e0 php langhelper (needs funcy/php), tutorial 2017-05-26 12:36:38 -07:00
Chad Arimura
98e05eec63 init cli changes, removed app create from initial walkthrough 2017-05-26 10:32:07 -07:00
Chad Arimura
a565c09c7f reorging examples/tutorials a bit 2017-05-25 14:28:00 -07:00
James
e4bb04887e Rewrite imports to use forks files on gitlab not use githubs. 2017-05-16 11:06:32 -07:00
Travis Reeder
4b9bba352d Rename location. 2017-05-15 11:00:15 -07:00
Travis Reeder
615ae5c36f Mass s&r: iron-io -> kumokit 2017-04-19 09:49:12 -06:00
Travis Reeder
ca18ae88fa Added Lambda Node support as part of the regular functions workflow. (#601)
* Added Lambda Node support as part of the regular functions workflow.

* Fixes for PR comments.
2017-03-22 21:41:27 +01:00
Seif Lotfy سيف لطفي
c154e0811b Clean func file (#507)
* remove wrongfully added fnctl

* Remove path and max_concurrency from func.yaml generated with `fn init`

Fixes: 424
2017-02-02 19:39:18 -02:00
C Cirello
2f0520521c all: rename hot containers to hot functions (#465) 2016-12-29 20:07:41 +01:00
Seif Lotfy سيف لطفي
f815ab54c2 Add support for F# and set dotnet docket image to 1.0.1-projectjson (#409) 2016-12-08 19:32:36 +01:00
Seif Lotfy سيف لطفي
717d8455e9 fn: support for dotnet (#326)
* Add initial support for dotnet

* Initial work on dotnet example

* fn: fix docker incantation

* fn: .gitignore

* Add README.md for dotnet example

* Update docs
2016-12-05 23:13:52 +01:00
C Cirello
9ac2539aeb fn: improve UX and publish/deploy command (#359)
* fn: improve UX and publish/deploy command

* fn: remove wrong use cases for deploy

* fn: fix regression introduced by merge
2016-12-01 18:11:13 +01:00
C Cirello
ac0044f7d9 functions: hot containers (#332)
* functions: modify datastore to accomodate hot containers support

* functions: protocol between functions and hot containers

* functions: add hot containers clockwork

* fn: add hot containers support
2016-11-28 15:45:35 -02:00
Seif Lotfy سيف لطفي
237ab3e21b Inital work on Rust support (#333)
* Inital work on Rust support

* update accepted runtimes

* fn: fix rust build

* Last tweaks and README.md

* fix typo

* update comment on rust.go
2016-11-23 23:17:13 +01:00
C Cirello
b649d490d5 fn: fix broken flags (#336) 2016-11-23 20:59:43 +01:00
C Cirello
d13c8fba8c fn: add support for python (#328) 2016-11-21 23:12:30 +01:00
C Cirello
c0512a4cbd fn: rename from fnctl (#321)
* fn: rename from fnctl

* fn: predicting the release version for installer

* fn: predicting the release version for installer
2016-11-21 17:24:26 +01:00