featurebase/server
Seebs 1a5696fe23 centralize attempts to set/check limits
We check mmap limits, and try to set/increase our open file limits,
and we check the mmap limit when we start the server, and try to set
the open file limit every time we open a holder.

It's useless to do these things more than once, though. We migrate
these things to be run through a sync.Once, which runs all of them
the first time a server starts up, and then thereafter just returns
the error code from that first run. This should make test startup
ever so slightly cheaper, saving us potentially several microseconds,
but also reducing the spamminess of the message.

I've taken out the `sudo ulimit` advice since it's wrong, and the
documentation link is updated to point to our (now private!)
customer documentation.
2021-04-21 13:56:42 -05:00
..
testdata/certs Supply "subject alternative name" for TLS certificates 2020-10-20 14:14:26 -05:00
cluster_test.go cluster state checking cleanups and fixes 2021-04-13 12:37:07 -05:00
config.go change "External" DB to "Lookup" DB 2021-03-29 12:54:29 -04:00
config_internal_test.go add --advertise-grpc configuration option 2020-07-09 11:17:12 -05:00
config_test.go update config to support etcd arguments 2021-01-29 19:43:48 -06:00
dup.go Reduce duplication of setupLogger arch-specific code 2020-04-16 17:08:50 -05:00
dup_arm64.go Reduce duplication of setupLogger arch-specific code 2020-04-16 17:08:50 -05:00
grpc.go Add log prefix levels 2021-04-12 20:33:39 -05:00
grpc_test.go Fix TestCRUDIndexes 2021-02-10 16:22:34 +01:00
handler_test.go Move vprint to separate pakage 2021-03-29 14:29:19 +02:00
pg.go Add log prefix levels 2021-04-12 20:33:39 -05:00
pg_test.go handling aggregate types: add to protobuf, etc 2021-01-19 16:23:15 -06:00
server.go centralize attempts to set/check limits 2021-04-21 13:56:42 -05:00
server_test.go cluster state checking cleanups and fixes 2021-04-13 12:37:07 -05:00
sql.go fix SQL memory leak 2020-08-31 13:10:49 -04:00
tlsconfig.go Add log prefix levels 2021-04-12 20:33:39 -05:00
trial.go clarify purpose of trialVersion by changing the name to handleTrialDeadline and adding a doc string 2021-02-11 16:13:04 -06:00