Commit Graph

2126 Commits

Author SHA1 Message Date
Tolga Ceylan
dd88ec5d4e fn: sigterm graceful shutdown handling (#557) 2017-12-01 16:56:17 -08:00
CI
51343ff06a fnlb: 0.0.176 release [skip ci] fnlb-0.0.176 2017-12-01 19:38:47 +00:00
CI
d2556ae2c7 fnserver: 0.3.214 release [skip ci] 0.3.214 2017-12-01 19:37:18 +00:00
CI
7603aa5dcd fnlb: 0.0.175 release [skip ci] fnlb-0.0.175 2017-12-01 19:31:44 +00:00
CI
02f39749e3 fnserver: 0.3.213 release [skip ci] 0.3.213 2017-12-01 19:30:25 +00:00
Tolga Ceylan
25f6706642 Container memory tracking related changes (#541)
* squash# This is a combination of 10 commits2

fn: get available memory related changes

*) getAvailableMemory() improvements
*) early fail if requested memory too large to meet
*) tracking async and sync pools individually. Sync pool
is reserved for sync jobs only, while async pool can be
used by all jobs.
*) head room estimation for available memory in Linux.
2017-12-01 11:21:16 -08:00
CI
ee2cf07feb fnlb: 0.0.174 release [skip ci] fnlb-0.0.174 2017-12-01 18:12:20 +00:00
CI
ae8c0d27be fnserver: 0.3.212 release [skip ci] 0.3.212 2017-12-01 18:10:52 +00:00
Chad Arimura
a707968711 reduce Lambda language in top section bullets 2017-12-01 09:55:35 -08:00
Michael J Williams
1aa1618404 Update to docs, examples, and tutorial links (#546)
* Update to docs, examples, and tutorial links

* Added categories to docs index page. Removed icons.

* Update to docs, examples, and tutorial links.
Added categories to docs index page. Removed icons.

* updates to docs upon review
2017-12-01 09:53:51 -08:00
CI
b0b113477d fnlb: 0.0.173 release [skip ci] fnlb-0.0.173 2017-12-01 17:53:21 +00:00
CI
3f63e613eb fnserver: 0.3.211 release [skip ci] 0.3.211 2017-12-01 17:51:52 +00:00
CI
d510f0f38a fnlb: 0.0.172 release [skip ci] fnlb-0.0.172 2017-12-01 16:13:07 +00:00
CI
06313fb9b0 fnserver: 0.3.210 release [skip ci] 0.3.210 2017-12-01 16:11:42 +00:00
Dario Domizioli
b083390d6b Documentation notes about running Fn on SELinux systems (#507)
Documentation notes about running Fn on SELinux systems
2017-12-01 15:55:00 +00:00
CI
84e95096d4 fnlb: 0.0.171 release [skip ci] fnlb-0.0.171 2017-11-30 02:08:03 +00:00
CI
dfead4b0c2 fnserver: 0.3.209 release [skip ci] 0.3.209 2017-11-30 02:06:39 +00:00
Denis Makogon
5c68a88599 Fn-prefix everything (#545)
* Fn-prefix everything

Closes: #492

* Global replacement

* missed one fn_
2017-11-29 17:50:24 -08:00
CI
64997ed0fe fnlb: 0.0.170 release [skip ci] fnlb-0.0.170 2017-11-29 12:22:12 +00:00
CI
9b531bb675 fnserver: 0.3.208 release [skip ci] 0.3.208 2017-11-29 12:20:39 +00:00
Nigel Deakin
9a75785cbf Per route api extensions (#542)
* Extend extension mechanism to support per-route API extensions

* Tidy up comment

* Remove print statement

* Minor improvement to README

* Avoid calling c.Request.Context() twice
2017-11-29 12:03:23 +00:00
CI
4f72a1201f fnlb: 0.0.169 release [skip ci] fnlb-0.0.169 2017-11-29 00:04:05 +00:00
CI
209234960b fnserver: 0.3.207 release [skip ci] 0.3.207 2017-11-29 00:02:40 +00:00
Travis Reeder
a67d5a6290 Drop viper dependency (#550)
* Removed viper dependency.

* removed from glide files
2017-11-28 15:46:17 -08:00
Denis Makogon
81e3c4387c Docker compose file for simpler dev env (#526)
* Docker compose file for simpler dev env

* Updating readme, adding UI to compose

* Define dependencies between services

* Prometheus. Grafana

* Link Prometheus to Grafana service

* Addressing review comments

* Linking compose doc to common table of content
2017-11-28 13:31:34 -07:00
CI
84382d51d3 fnlb: 0.0.168 release [skip ci] fnlb-0.0.168 2017-11-28 18:31:11 +00:00
CI
1529dff810 fnserver: 0.3.206 release [skip ci] 0.3.206 2017-11-28 18:29:50 +00:00
Derek Schultz
e27142cb8a use kubectl JSONPath (#544)
* remove extra export

* use kubectl jsonpath

* remove http prefix. included in API_URL

* show example of fn call
2017-11-28 11:14:45 -07:00
CI
f967c8d5aa fnlb: 0.0.167 release [skip ci] fnlb-0.0.167 2017-11-28 17:39:38 +00:00
CI
3a2abbff28 fnserver: 0.3.205 release [skip ci] 0.3.205 2017-11-28 17:38:09 +00:00
Reed Allman
892c843d87 add error to call model (#539)
* add error to call model

closes #331

previously, for async this error was being masked completely even if it was
something useful like the image not existing. for sync, the error was returned
in the http request but now it's also being stored. this error itself can
cover a lot of landscape, it could be an error in getting a slot, pulling an
image, running a container, among other things. anyway, no longer being
masked. we can likely improve it in certain cases we run into in the future,
but it's open ended at the moment and not being masked like some errors in
sync http request returns (503 non-models.APIError) for now.

* tucks in callTrigger stuff to keep api clean
* adds swagger
* adds migration
* adds tests for datastore and agent to ensure behavior

* pull images before tests are ran

* gofmt migrations file
2017-11-28 11:21:39 -06:00
CI
10e17b1c4d fnlb: 0.0.166 release [skip ci] fnlb-0.0.166 2017-11-28 16:34:15 +00:00
CI
adb9872921 fnserver: 0.3.204 release [skip ci] 0.3.204 2017-11-28 16:32:54 +00:00
Nigel Deakin
954f69e74a Add appname to basic metrics (#547)
* Add app labels to queued/running/completed/failed metrics

* Add app labels to queued/running/completed/failed metrics

* Add app labels to queued/running/completed/failed metrics
2017-11-28 10:17:24 -06:00
CI
778c8b0495 fnlb: 0.0.165 release [skip ci] fnlb-0.0.165 2017-11-27 15:10:42 +00:00
CI
93ab1f0bc2 fnserver: 0.3.203 release [skip ci] 0.3.203 2017-11-27 15:09:20 +00:00
Reed Allman
c9198b8525 add per call stats field as histogram (#528)
* add per call stats field as histogram

this will add a histogram of up to 240 data points of call data, produced
every second, stored at the end of a call invocation in the db. the same
metrics are also still shipped to prometheus (prometheus has the
not-potentially-reduced version). for the API reference, see the updates to
the swagger spec, this is just added onto the get call endpoint.

this does not add any extra db calls and the field for stats in call is a json
blob, which is easily modified to add / omit future fields. this is just
tacked on to the call we're making to InsertCall, and expect this to add very
little overhead; we are bounding the set to be relatively small, planning to
clean out the db of calls periodically, functions will generally be short, and
the same code used at a previous firm did not cause a notable db size increase
with production workload that is worse, wrt histogram size (I checked). the
code changes are really small aside from changing to strfmt.DateTime,
adding a migration and implementing sql.Valuer; needed to slightly modify the
swap function so that we can safely read `call.Stats` field to upload at end.

with the full histogram in hand, we can compute max/min/average/median/growth
rate/bernoulli distributions/whatever very easily in a UI or tooling. in
particular, this data is easily chartable [for a UI], which is beneficial.

* adds swagger spec of api update to calls endpoint
* adds migration for call.stats field
* adds call.stats field to sql queries
* change swapping of hot logger to exec, so we know that call.Stats is no
longer being modified after `exec` [in call.End]
* throws out docker stats between function invocations in hot functions (no
call to store them on, we could change this later for debug; they're in prom)
* tested in tests and API

closes #19

* add format of ints to swag
2017-11-27 08:52:53 -06:00
CI
d8c41aac9d fnlb: 0.0.164 release [skip ci] fnlb-0.0.164 2017-11-24 16:50:18 +00:00
CI
3adf478530 fnserver: 0.3.202 release [skip ci] 0.3.202 2017-11-24 16:48:55 +00:00
Denis Makogon
347edea56e Use valid call type instead in protocol (#534) 2017-11-24 10:32:17 -06:00
CI
4cc2b093b0 fnlb: 0.0.163 release [skip ci] fnlb-0.0.163 2017-11-22 20:18:41 +00:00
CI
19df15bd9b fnserver: 0.3.201 release [skip ci] 0.3.201 2017-11-22 20:17:21 +00:00
Tolga Ceylan
89dc79f0b0 fn: remove redundant httprouter code (#532)
*) tree from https://github.com/julienschmidt/httprouter
is already in Gin and this only seems to be parsing
parameters from URI.
2017-11-22 13:58:10 -06:00
CI
d8a1431418 fnlb: 0.0.162 release [skip ci] fnlb-0.0.162 2017-11-22 15:44:36 +00:00
CI
c2a0f83467 fnserver: 0.3.200 release [skip ci] 0.3.200 2017-11-22 15:43:11 +00:00
Nigel Deakin
7f03c22df0 Fix for Prometheus/Grafana quickstart guide (#523)
* Fix for #520

* Addressing review comments

* Addressing review comments
2017-11-22 15:26:41 +00:00
CI
ea10f36dcc fnlb: 0.0.161 release [skip ci] fnlb-0.0.161 2017-11-21 20:58:52 +00:00
CI
7548ab44d5 fnserver: 0.3.199 release [skip ci] 0.3.199 2017-11-21 20:57:31 +00:00
Tolga Ceylan
2551be446a fn: introducing 503 responses for out of capacity case (#518)
* fn: introducing 503 responses for out of capacity case

*) Adding 503 with Retry-After header case if request failed
during waiting for slots.
*) TODO: return 503 without Retry-After if the request can
never be met by this fn server.
*) fn: runner test docker pull fixup
*) fn: MaxMemory for routes is now a variable to allow
testing and adjusting it according to fleet memory sizes.
2017-11-21 12:42:02 -08:00
CI
460e9d2dea fnlb: 0.0.160 release [skip ci] fnlb-0.0.160 2017-11-21 19:01:48 +00:00