Commit Graph

1704 Commits

Author SHA1 Message Date
CI
1e3104c649 fnserver: 0.3.605 release [skip ci] 2018-10-31 21:46:47 +00:00
CI
5c72e476f5 fnserver: 0.3.604 release [skip ci] 2018-10-30 19:19:05 +00:00
Tolga Ceylan
e227802512 fn: Remove error channel for container exits (#1287)
The channel is unnecessary and unreliable since exits
trigger I/O failure on UDS earlier than we detect
the exit.
2018-10-30 12:11:23 -07:00
CI
e01243fd40 fnserver: 0.3.603 release [skip ci] 2018-10-26 17:52:11 +00:00
Reed Allman
e13a6fd029 death to format (#1281)
* get rid of old format stuff, utils usage, fix up for fdk2.0 interface

* pure agent format removal, TODO remove format field, fix up all tests

* shitter's clogged

* fix agent tests

* start rolling through server tests

* tests compile, some failures

* remove json / content type detection on invoke/httptrigger, fix up tests

* remove hello, fixup system tests

the fucking status checker test just hangs and it's testing that it doesn't
work so the test passes but the test doesn't pass fuck life it's not worth it

* fix migration

* meh

* make dbhelper shut up about dbhelpers not being used

* move fail status at least into main thread, jfc

* fix status call to have FN_LISTENER

also turns off the stdout/stderr blocking between calls, because it's
impossible to debug without that (without syslog), now that stdout and stderr
go to the same place (either to host stderr or nowhere) and isn't used for
function output this shouldn't be a big fuss really

* remove stdin

* cleanup/remind: fixed bug where watcher would leak if container dies first

* silence system-test logs until fail, fix datastore tests

postgres does weird things with constraints when renaming tables, took the
easy way out

system-tests were loud as fuck and made you download a circleci text file of
the logs, made them only yell when they goof

* fix fdk-go dep for test image. fun

* fix swagger and remove test about format

* update all the gopkg files

* add back FN_FORMAT for fdks that assert things. pfft

* add useful error for functions that exit

this error is really confounding because containers can exit for all manner of
reason, we're just guessing that this is the most likely cause for now, and
this error message should very likely change or be removed from the client
path anyway (context.Canceled wasn't all that useful either, but anyway, I'd
been hunting for this... so found it). added a test to avoid being publicly
shamed for 1 line commits (beware...).
2018-10-26 10:43:04 -07:00
CI
7fd61054b0 fnserver: 0.3.602 release [skip ci] 2018-10-25 19:25:33 +00:00
Tolga Ceylan
241d3fede1 fn: blocking mode should not emit 503 if can't evict (#1283) 2018-10-25 12:17:26 -07:00
CI
5228269e15 fnserver: 0.3.601 release [skip ci] 2018-10-25 10:18:23 +00:00
Tolga Ceylan
bf41789af2 fn: eviction resource correction (#1282)
Previously evictor did not perform an eviction
if total cpu/mem of evictable containers was less
than requested cpu/mem. With this change, we
try to perform evictions based on actual needed cpu & mem
reported by resource tracker.
2018-10-25 11:10:19 +01:00
CI
93777daff1 fnserver: 0.3.600 release [skip ci] 2018-10-19 23:11:01 +00:00
CI
a53b6a6199 fnserver: 0.3.599 release [skip ci] 2018-10-18 22:18:35 +00:00
Tolga Ceylan
8fe1c9a07c fn: reduce logging for evicted containers (#1276)
Let's not log evicted containers which would be context
canceled.
2018-10-18 15:10:15 -07:00
CI
9e87e86a84 fnserver: 0.3.598 release [skip ci] 2018-10-17 15:26:17 +00:00
Tom Coupland
ceb2a1fc8a Configure logrus to include nano seconds in log messages (#1273)
Currently the default time format, time.RFC3339, is used, which doesn't include any
subsecond resolution information. This makes it hard to understand the
ordering of log messages when viewing in a log aggregator, like
Kibana.

This change sets the TimestampFormat of the logrus JSONFormatter to
time.RFC3339Nano.
2018-10-17 16:17:00 +01:00
CI
f84ae832b7 fnserver: 0.3.597 release [skip ci] 2018-10-17 00:12:23 +00:00
James Jeffrey
fdaa776c9f Update promclient and its usage (#1272) 2018-10-16 17:03:49 -07:00
CI
d2629caed6 fnserver: 0.3.596 release [skip ci] 2018-10-15 19:23:23 +00:00
Tolga Ceylan
44e366d195 fn: add details to runner finish logging (#1271)
Adding http-status/fn-http-status details in runner finish
logger.
2018-10-15 12:15:08 -07:00
CI
50643cfe23 fnserver: 0.3.595 release [skip ci] 2018-10-06 00:10:22 +00:00
Tolga Ceylan
f10fab21bc fn: fixup possible go-routine leak (#1265) 2018-10-05 17:02:18 -07:00
CI
b7d53332d3 fnserver: 0.3.594 release [skip ci] 2018-10-05 23:40:15 +00:00
Reed Allman
e6eec186d0 small tweaks to dispatch (#1264)
* the dispatch span actually encloses dispatch and gives an accurate span now
* turning a call into an http request can't fail unless it's our fault, if
tests don't catch this, we don't deserve money
* moved http req creation inside of dispatch goroutine

there's further work to do cleaning up dispatch... removing the old formats
will make this slightly more clear, waiting for that. this was bugging me
anyway after seeing something else and was easy to fix up.
2018-10-05 16:32:01 -07:00
CI
34e40256d9 fnserver: 0.3.593 release [skip ci] 2018-10-05 02:02:35 +00:00
Tolga Ceylan
29dcf0a791 fn: adding docker events to stats (#1262)
Streaming docker events is useful as we can record/capture some
asynchronous containers events such as out-of-memory. For now,
we record these in opencensus/prometheus stats.
2018-10-04 18:54:09 -07:00
CI
ec2f9539f2 fnserver: 0.3.592 release [skip ci] 2018-10-04 23:06:37 +00:00
Tolga Ceylan
5a9118ff32 fn: default fnserver tag keys and api key adjustment (#1261)
Default fn server keys should be minimal (empty) since not
all stats have associated app name, fn id, etc.

API tags for requests should not include "status" as this is
part of responses.
2018-10-04 15:58:21 -07:00
CI
0595e9b1c8 fnserver: 0.3.591 release [skip ci] 2018-10-01 23:24:21 +00:00
Tolga Ceylan
f132bba3fb fn: adding hot launcher eviction waiting (#1257)
If checkLaunch triggers evictions, it must wait
for these eviction to complete before returning.
Premature returning from checkLaunch will cause
checkLaunch to be called again by hot launcher.
This causes checkLaunch to receive an out of
capacity error and causes a 503.

The evictor is also improved with this PR and it
provides a slice of channels to wait on if evictions
are taking place.

Eviction token deletion is performed *after*
resource token close to ensure that once an
eviction is done, resource token is also free.
2018-10-01 16:16:29 -07:00
CI
5a407dc3bd fnserver: 0.3.590 release [skip ci] 2018-10-01 17:55:32 +00:00
Tolga Ceylan
2e610a264a fn: remove async+sync seperation in resource tracker (#1254)
This simplifies resource tracker. Originally, logically we had
split the cpu/mem into two pools where a 20%
was kept specifically for sync calls to avoid
async calls dominating the system. However, resource
tracker should not handle such call prioritization.
Given the improvements to the evictor, I think
we can get rid of this code in resource tracker
for time being.
2018-10-01 10:46:32 -07:00
CI
927424092b fnserver: 0.3.589 release [skip ci] 2018-09-30 19:03:03 +00:00
CI
7430dd26ea fnserver: 0.3.588 release [skip ci] 2018-09-29 00:35:25 +00:00
Owen Strain
21f77f837e Add APIErrorWrapper so that underlying errors can be logged (#1246) 2018-09-28 17:26:54 -07:00
CI
0dd24932f2 fnserver: 0.3.587 release [skip ci] 2018-09-28 18:16:15 +00:00
Dario Domizioli
4a862212a2 Limit connection pool size on UDS: we should only need one per container (#1252)
Hopefully this reduces FD usage even further.
2018-09-28 11:07:31 -07:00
Tolga Ceylan
a256d96f1e fn: keepalives timeout for UDS http-stream client (#1253) 2018-09-28 10:59:22 -07:00
CI
f94999500f fnserver: 0.3.586 release [skip ci] 2018-09-28 14:02:39 +00:00
Dario Domizioli
5aabdae26a Fix missing context on request sent through UDS (#1251) 2018-09-28 14:54:05 +01:00
CI
a17a437db7 fnserver: 0.3.585 release [skip ci] 2018-09-28 11:15:23 +00:00
Richard Connon
8d8c7df569 Log failure to close fsnotify handle (#1250) 2018-09-28 12:06:43 +01:00
CI
f9e4f93ad6 fnserver: 0.3.584 release [skip ci] 2018-09-28 01:28:40 +00:00
Owen Cliffe
53d4be00ca Add checks for unix socket destination to avoid FDK tricking agent into talking to non-relative dirs (#1247)
* Add checks for unix socket destination to avoid leaking access to host OS

* style, typos
2018-09-27 18:20:03 -07:00
CI
d011f58163 fnserver: 0.3.583 release [skip ci] 2018-09-27 22:46:16 +00:00
Reed Allman
319e0af41c we shouldn't log tokens, this shouldn't have been info either and was noisy (#1249)
* we shouldn't log tokens, this shouldn't have been info either and was noisy

* simplify logic too
2018-09-27 23:37:35 +01:00
CI
651b49e1bc fnserver: 0.3.582 release [skip ci] 2018-09-26 23:13:26 +00:00
Matt Stephenson
4d30b9de09 Add support for json formatted logs (#1245) 2018-09-26 16:04:55 -07:00
CI
3920e15769 fnserver: 0.3.581 release [skip ci] 2018-09-26 19:25:42 +00:00
Tolga Ceylan
34f2133518 fn: api metrics custom path filter function (#1243)
Adding a simple global path filter function to api views. This can
be set to a custom function to group path/url in API view tags.
2018-09-26 12:17:27 -07:00
Reed Allman
911c7d993e help people figure out why their syslog url is wrong more better (#1242)
closes #1240
2018-09-26 11:56:14 -07:00
CI
1855ebf2ce fnserver: 0.3.580 release [skip ci] 2018-09-26 13:09:50 +00:00