Commit Graph

901 Commits

Author SHA1 Message Date
Travis Reeder
e71c3be9cf Removed unrelated comments. 2017-05-23 13:01:18 -07:00
Travis Reeder
e6d963f0dd Added fn update too to get latest version. 2017-05-22 16:41:51 -07:00
Travis Reeder
a546f1e93b Added fn start 2017-05-22 16:28:52 -07:00
Travis Reeder
9ac976f88c Merge branch 'lb2' into 'master'
lb round 2

See merge request !5
2017-05-22 21:48:39 +00:00
Reed Allman
6306b0ad7b chop up da files 2017-05-22 13:00:27 -07:00
Reed Allman
260a764458 make dash not give seizures 2017-05-22 13:00:27 -07:00
Reed Allman
5e69174523 dash throughput works yay 2017-05-22 13:00:27 -07:00
Reed Allman
277b3a2ef9 works but only one series wtf 2017-05-22 13:00:27 -07:00
Reed Allman
d8ada59911 in a reasonable unworking state 2017-05-22 13:00:27 -07:00
Reed Allman
b25e1e20ae meh add some stat shit not even close yet 2017-05-22 13:00:27 -07:00
Reed Allman
e5f10f5c3c change load to function + node tuple 2017-05-22 13:00:27 -07:00
Reed Allman
0e0486e6b3 seed rng 2017-05-22 13:00:27 -07:00
Reed Allman
a4e20b04c3 add preliminary load shedding algo / plumbing 2017-05-22 13:00:27 -07:00
Reed Allman
a725212327 add unworking speculative load shedding 2017-05-22 13:00:27 -07:00
Reed Allman
d52fa3704f fix buf pool, transport todos 2017-05-22 13:00:27 -07:00
Reed Allman
730e8f9c68 lb round 2
this rewrites the load balancer which was pointed out to be problematic here:
https://github.com/iron-io/functions/issues/570 with a test suite located at
test/fnlb-test-harness -- this test is now 'passing' in the sense that now
when running multiple functions nodes behind 1 load balancer every call goes
to the same functions node. yay. used a different consistent hashing algorithm
and also threw out all the fallback code (all the code, really).

this is basically an mvp and there is some work that needs to be done for
running multiple load balancers, allowing functions to run on more nodes as
load increases and some basic features like http/2 -- also needs some love to
be really robust; most of this is noted in TODOs in the file.

this does basic health checking configurable in the same way as aws elb. I
think we could probably do gossip but this works as a first cut. after N
health checks fail then requests start to go to a different node, meanwhile
all requests to that node will fail (need to fix). this continues to use
consistent hashing, which is great in that we don't need to store anything,
and we may be able to stick with the strategy in the future with some care.
2017-05-22 13:00:27 -07:00
Reed Allman
ab769ebe4a Merge branch 'fix-timeout' into 'master'
Fixed idle timeout bug

See merge request !9
2017-05-18 21:29:02 +00:00
Travis Reeder
961d17bdb8 Uses SetDefaults as it does in create too. 2017-05-18 14:18:16 -07:00
Travis Reeder
2696a8a917 Fixed idle timeout bug 2017-05-18 13:24:49 -07:00
Reed Allman
a2890e8037 Remove iron...
:'(
2017-05-18 18:59:35 +00:00
Travis Reeder
9cc12b4b12 Remove iron... 2017-05-18 18:59:34 +00:00
James Jeffrey
521df8c1ff Merge branch 'minor-cleanups' into 'master'
Cleanup imports and errors

See merge request !7
2017-05-18 15:07:28 +00:00
James
d2b4078b60 Cleanup imports and errors 2017-05-17 16:38:23 -07:00
Travis Reeder
c0cfb268d2 Merge branch 'fix-fn-deploy' into 'master'
Deploy will automatically create a route if it doesn't exist.

Closes #15

See merge request !6
2017-05-17 22:49:11 +00:00
Travis Reeder
fedf08964e Deploy will automatically create a route if it doesn't exist. 2017-05-17 15:11:44 -07:00
Travis Reeder
ad9e692fda Merge branch 'import-rewrite' into 'master'
Rewrite imports to use forks files on gitlab not use githubs.

See merge request !4
2017-05-16 20:11:42 +00:00
James
e4bb04887e Rewrite imports to use forks files on gitlab not use githubs. 2017-05-16 11:06:32 -07:00
Travis Reeder
014858143b Simplified cli commands to make things easier to use. 2017-05-15 16:51:59 -07:00
Travis Reeder
7cfd7d413f Fixed up build and updated dependencies. 2017-05-15 15:40:36 -07:00
Travis Reeder
2b01ae3616 functions: 0.3.2 release [skip ci] 2017-05-15 14:16:30 -07:00
Travis Reeder
aa046ba5fc functions: 0.3.1 release [skip ci] 2017-05-15 14:08:53 -07:00
Travis Reeder
0c6ca08a2f functions: 0.2.62 release [skip ci] 2017-05-15 14:04:01 -07:00
Travis Reeder
ffae780f07 functions: 0.2.60 release [skip ci] 2017-05-15 12:00:43 -07:00
Travis Reeder
454eedd963 updated deps. 2017-05-15 11:16:39 -07:00
Travis Reeder
4b9bba352d Rename location. 2017-05-15 11:00:15 -07:00
Travis Reeder
c0b381eb96 dep ensure instead of dep ensure -update 2017-04-30 13:30:14 -07:00
Travis Reeder
7c9d007f19 Merge pull request #1 from treeder/rename
Rename
2017-04-30 13:28:16 -07:00
Travis Reeder
d0ca2f9228 Moved runner into this repo, update dep files and now builds. 2017-04-21 07:42:42 -07:00
Travis Reeder
615ae5c36f Mass s&r: iron-io -> kumokit 2017-04-19 09:49:12 -06:00
CircleCI
32278fe2e0 functions: 0.2.59 release [skip ci] 2017-04-12 19:20:05 +00:00
jconning
c413e445a1 Test harness to assess whether fnlb works properly (#573)
* Initial commit.

* Update README.md

* Update README.md

* Update README.md.

* Update README.md

* Changes from PR code review.
2017-04-12 12:14:04 -07:00
CircleCI
d1ea037ea1 functions: 0.2.58 release [skip ci] 2017-04-07 18:28:29 +00:00
Travis Reeder
10f3178ae9 Switching to new dep tool (#616)
* making things work

* #506 - Add ability to login to a private docker registry

* Rolling back "make things work" to test them out more.

* Rolling back "make things work" to test them out more.

* credentials from docker/config.json if ENV is missing

* should get docker auth info just in the init

* update glide lock

* update glide

* Switched to new go dep tool, glide is too frikin annoying.

* Updated circle builds to use dep

* Added GOPATH/bin to path.

* Added GOPATH/bin to path.

* Using regular make test, instead of docker one (not sure why it was using the docker one?).
2017-04-07 11:22:08 -07:00
CircleCI
883cec599c functions: 0.2.57 release [skip ci] 2017-03-29 04:11:21 +00:00
Pedro Nasser
5e8340bc1c Solving postgres marshal/unmarshal issue (#610)
* Solving postgres marshal/unmarshal issue

Postgres datastore was not marshaling the App config during its insert, that behavior was resulting in issues when fetching the App and the datastore couldn't unmarshal the config.

The same issue was probably happening with the Route's headers in some situations.

This commit's idea is to always try to marshal configs and headers when inserting/updating Apps or Routes. But in Apps and Routes get methods, if the  config/headers unmarshal fails, it returns an empty config/headers.

* fix one more unmarshal case

* returning error when unmarshaling non-empty
2017-03-28 11:30:12 -07:00
Pedro Nasser
5761ce3499 fix: error unmarshal empty app config (#609) 2017-03-27 09:58:03 -07:00
CircleCI
a036563b9f functions: 0.2.56 release [skip ci] 2017-03-25 17:35:52 +00:00
Denis Makogon
7603e6e8fa Add idle_timeout to routes API (#603)
* Add inactivity_timeout to routes API

Closes: #544

* Fix failing datastore tests

* Rename inactivity_timeout to idle_timeout

* Update swagger doc

* Update hot fn doc

* Fix json tags

* Add function timeouts docs

* Rewording
2017-03-25 18:28:53 +01:00
CircleCI
11d3e29304 functions: 0.2.55 release [skip ci] 2017-03-24 17:50:47 +00:00
Seif Lotfy سيف لطفي
d8871d1562 Fix lambda import (#605)
* Fix lambda import

* more updates

* more changes
2017-03-24 10:44:38 -07:00