Commit Graph

2066 Commits

Author SHA1 Message Date
Travis Reeder
02067bddc0 grrr, more release fixes... 2017-11-18 07:47:21 -08:00
Travis Reeder
5eb51283bf Fix release. 2017-11-18 07:09:43 -08:00
CI
228fbd559e fn-server: 0.3.194 release [skip ci] 0.3.194 2017-11-18 04:46:58 +00:00
Reed Allman
f08ea57bc0 add docker health check waiter to start (#434)
before returning the cookie in the driver, wait for health checks
https://docs.docker.com/engine/reference/builder/#healthcheck if provided.
for images that don't have health checks, this will have no affect (an added
call to inspect container, for hot it's small potatoes).

this will be useful for containers so that they can pull large files or do
setup that takes a while before accepting tasks. since this is before start,
it won't run into the idle timeout. we could likely use these for hot
containers in general and check between runs or something, but didn't do that
here.

one nascient concern is that for hot if the containers never become healthy
I don't think we will ever kill them and the slot will 'leak'. this is true
for this and for other cases (pulling image) I think, we should probably
recycle hot containers every hour or something which would also close this.
anyway, not a huge blocker I don't think, there will likely be 1 user of this
feature for a bit, it's not documented since we're not sure we want to support
it.

closes #336
2017-11-17 20:31:33 -08:00
CI
5b2b5ea201 fn-server: 0.3.193 release [skip ci] 0.3.193 2017-11-18 00:09:00 +00:00
Travis Reeder
ab18e467fa updates functions -> fnserver (#516)
* updates functions -> fn-server and fnlb -> fn-lb

* changed to fnserver and fnlb
2017-11-17 15:53:44 -08:00
CI
94607d898d fn-lb: 0.0.156 release [skip ci] fn-lb-0.0.156 2017-11-17 23:42:41 +00:00
CI
9281941bbb fn-server: 0.3.192 release [skip ci] 0.3.192 2017-11-17 23:41:14 +00:00
Travis Reeder
bafc3b2714 Merge branch 'master' of https://github.com/fnproject/fn 2017-11-17 15:27:59 -08:00
Travis Reeder
45a8cd0033 fix fn-lb release 2017-11-17 15:27:55 -08:00
Tolga Ceylan
17d4271ffb fn: move memory/token code into resource (#512)
*) bugfix: fix nil ptr access in docker registry RoundTrip
*) move async and ram token related code into resource.go
2017-11-17 15:25:53 -08:00
CI
1acb1e99b4 fn-lb: 0.0.155 release [skip ci] fn-lb-0.0.155 2017-11-17 21:03:42 +00:00
CI
f1d4387f23 fn-server: 0.3.191 release [skip ci] 0.3.191 2017-11-17 21:02:20 +00:00
Tolga Ceylan
57b24d63c3 fn: prometheus collector concurrent map access (#510)
* fn: prometheus collector concurrent map access

*) Added mutex to guard against concurrent access to maps

* fn: prometheus collector method receivers should be ptr

* fn: prometheus collector concurrent map access

*) Moved the mutex into getHistogramVec()
2017-11-17 12:46:53 -08:00
CI
5693f7dc53 fn-server: 0.3.190 release [skip ci] 0.3.190 2017-11-17 20:01:24 +00:00
Travis Reeder
1ba8620035 FIx release issue 2017-11-17 11:44:52 -08:00
CI
71eb32820b fn-server: 0.3.189 release [skip ci] 0.3.189 2017-11-17 19:40:33 +00:00
Travis Reeder
7d467a2e4a Changed image names to be better and consistent (#505) 2017-11-17 11:11:00 -08:00
CI
b2b3e608b9 fnlb: 0.0.154 release [skip ci] fnlb-0.0.154 2017-11-17 16:16:23 +00:00
CI
5f308829b0 functions: 0.3.188 release [skip ci] 0.3.188 2017-11-17 16:15:08 +00:00
Nigel Deakin
86f9a1aade Update CONTRIBUTING.md (#515)
Add a note to tell people to use go 1.9.1 or newer.
2017-11-17 15:59:36 +00:00
CI
e5d8953a95 fnlb: 0.0.153 release [skip ci] fnlb-0.0.153 2017-11-17 15:14:29 +00:00
CI
5440789e08 functions: 0.3.187 release [skip ci] 0.3.187 2017-11-17 15:13:15 +00:00
CI
5f16bc9fe0 fnlb: 0.0.152 release [skip ci] fnlb-0.0.152 2017-11-16 23:53:35 +00:00
CI
ca30310352 functions: 0.3.186 release [skip ci] 0.3.186 2017-11-16 23:52:13 +00:00
Tolga Ceylan
4edda24703 fn: fnlb: default health state for new nodes (#508)
* fn: fnlb: default health state for new nodes

*) Any new node now by default is in unknown state.
*) One health check is required for unknown state to move in
   to healthy/unhealthy states, then actual interval and
   thresholds apply.
*) add() no longer runs health check as this is now handled
   with the new logic.

This means during restarts fnlb will run one health check
immediately for nodes to switch to healthy/unhealthy state
to ensure speedy start, but guard against routing traffic to
unhealthy servers. After this initial state, nodes are
subjected to regular interval and thresholds.

* *) style fixes
2017-11-16 15:35:33 -08:00
CI
73817c0fd4 fnlb: 0.0.151 release [skip ci] fnlb-0.0.151 2017-11-16 20:16:29 +00:00
CI
20c50bc9da functions: 0.3.185 release [skip ci] 0.3.185 2017-11-16 20:15:01 +00:00
Tolga Ceylan
657afd5838 fn: fnlb: enhancements and new grouper tests (#493)
* fn: fnlb: enhancements and new grouper tests

*) added healthy threshold (default: 1)
*) grouper is now using configured hcEndpoint for version checks
*) grouper now logs when servers switch between healthy/unhealthy status
*) moved DB code out of grouper
*) run health check immediately at start (don't wait until hcInterval)
*) optional shutdown timeout (default: 0) & mgmt port (default: 8081)
*) hot path List() in grouper now uses atomic ptr Load
*) consistent router: moved closure to a new function
*) bugfix: version parsing from fn servers should not panic fnlb
*) bugfix: servers removed from DB, stayed in healthy list
*) bugfix: if DB is down, health checker stopped monitoring
*) basic new tests for grouper (add/rm/unhealthy/healthy) server
2017-11-16 11:35:30 -08:00
Nigel Deakin
910612d0b1 Docker stats to Prometheus (#486)
* Docker stats to Prometheus

* Fix compilation error in docker_test

* Refactor docker driver Run function to wait for  the container to have stopped before stopping the colleciton of statistics

* Fix go fmt errors

* Updates to sending docker stats to Prometheus

* remove new test TestWritResultImpl because we changes to support multiple waiters have been removed

* Update docker.Run to use channels not contextrs to shut down stats collector
2017-11-16 11:02:33 -08:00
CI
83145db6ba fnlb: 0.0.150 release [skip ci] fnlb-0.0.150 2017-11-16 18:27:02 +00:00
CI
db3d76fd1b functions: 0.3.184 release [skip ci] 0.3.184 2017-11-16 18:25:15 +00:00
CI
f605370309 fnlb: 0.0.149 release [skip ci] fnlb-0.0.149 2017-11-16 18:16:53 +00:00
CI
0f3b64867f functions: 0.3.183 release [skip ci] 0.3.183 2017-11-16 18:15:31 +00:00
Travis Reeder
64c6118313 Removed a bunch of old examples. (#502)
* Removed a bunch of old examples.

* moved grafana back.

* Bumping, circle didn't do build... ?
2017-11-16 10:10:03 -08:00
Travis Reeder
96cfc9f5c1 Update json (#463)
* wip

* wip

* Added more fields to JSON and added blank line between objects.

* Update tests.

* wip

* Updated to represent recent discussions.

* Fixed up the json test

* More docs

* Changed from blank line to bracket, newline, open bracket.

* Blank line added back, easier for delimiting.
2017-11-16 09:59:13 -08:00
CI
279e5248ba fnlb: 0.0.148 release [skip ci] fnlb-0.0.148 2017-11-16 17:57:17 +00:00
CI
86fb89d250 functions: 0.3.182 release [skip ci] 0.3.182 2017-11-16 17:55:59 +00:00
Derek Schultz
c281f96486 K8s docs update (#499)
* split fn-ui to its own service

* add fn namespace

* update path

* add namespace flag for kubectl

* simplify grabbing minikube IP and port

* typo: FUNCTIONS -> API_URL
2017-11-16 10:45:25 -07:00
CI
724d3730a3 fnlb: 0.0.147 release [skip ci] fnlb-0.0.147 2017-11-16 15:49:50 +00:00
CI
a8a0345090 functions: 0.3.181 release [skip ci] 0.3.181 2017-11-16 15:48:31 +00:00
Alexander Bransby-Sharples
c5ec0cc41e Add CORS support to fn api (#455)
The Gin middleware is being used if one or more Origins are specified. Default setup for each Origin is as follows:

- GET,POST, PUT, HEAD methods allowed
- Credentials share disabled
- Preflight requests cached for 12 hours

Which are the defaults gin-contrib/cors comes with out of the box.

Gin-cors will return a 403 if it gets a request with an Origin header that isn't on its' list. If no Origin header is specified then it will just return the servers response.

Start fn with CORS enabled:

`API_CORS="http://localhost:4000, http://localhost:3000" make run`
2017-11-16 15:37:26 +00:00
CI
8f7794c53a fnlb: 0.0.146 release [skip ci] fnlb-0.0.146 2017-11-16 00:19:17 +00:00
CI
406267a040 functions: 0.3.180 release [skip ci] 0.3.180 2017-11-16 00:17:55 +00:00
Owen Cliffe
8aa2c8958f Remove java tutorial, link to FDK (#504) 2017-11-15 16:06:42 -08:00
CI
fe82fc724c fnlb: 0.0.145 release [skip ci] fnlb-0.0.145 2017-11-15 16:41:22 +00:00
CI
92c68e3665 functions: 0.3.179 release [skip ci] 0.3.179 2017-11-15 16:40:04 +00:00
Travis Reeder
d30732e5b8 image was in wrong place. 2017-11-15 08:29:10 -08:00
CI
daaf7fb7c1 fnlb: 0.0.144 release [skip ci] fnlb-0.0.144 2017-11-14 21:06:42 +00:00
CI
3031a465a2 functions: 0.3.178 release [skip ci] 0.3.178 2017-11-14 21:05:21 +00:00