Grant Limberg
b5d7d71e1e
use connection pool instead of new connection for member status writes
...
redis plus plus has an annoying feature where it will open a new
connection for each tx or pipeline by default, rather than just fetching
an existing connection from the pool. Let's change that
4 years ago
Grant Limberg
6fdc7be502
redis connection pool tuning
4 years ago
Grant Limberg
0d7197381a
exit here on error
4 years ago
Grant Limberg
ff8da9d246
Play with online notification timing again
4 years ago
Grant Limberg
c1384422c3
just sleep 1 second
4 years ago
Grant Limberg
ccc0ebd0f9
don't spam the logs quite as much on first startup
...
sleep the thread 1 second every round until we're actually updating
members
4 years ago
Grant Limberg
9d4336d296
redis connection tuning
4 years ago
Grant Limberg
17bc9d3085
redis thread now uses this_thread::yield()
4 years ago
Grant Limberg
436f481a34
fix log line
4 years ago
Grant Limberg
9e8215b213
adjust sleep between onlineNotification runs. Added timer to output
4 years ago
TossPig
bc7f18064f
fix sql
...
bind message supplies 17 parameters, but prepared statement "" requires 16
4 years ago
Grant Limberg
355d3f44fb
logging & redis standalone fix
4 years ago
Grant Limberg
9de863e68b
update controller db record
4 years ago
Grant Limberg
626f488cb4
quiet down the controller logs a smidge
4 years ago
Grant Limberg
10212e376a
more redis in the controller
4 years ago
Grant Limberg
0ed339f19d
make sure value here is true, not just that the env var is set
4 years ago
Grant Limberg
9ddc0327d4
enable redis member status again
4 years ago
Grant Limberg
59151fbf86
remove max count for xread
4 years ago
Grant Limberg
1c700b7b41
Fix redis cluster usage
4 years ago
Grant Limberg
ff18bacd94
fix XREAD commands for redis message queue
4 years ago
Grant Limberg
f8e24f4629
Fix issue where restarting a controller causes a DB write for each network member
4 years ago
Grant Limberg
c09010c25a
handle nonce rotation in controller better
...
Won't generate new nonces until there are no active ones.
4 years ago
Grant Limberg
b3fbbd3124
refresh tokens now working
...
Still investigating the best way to do a couple things, but we have something working
4 years ago
Grant Limberg
730482e62f
encode network ID into sso state param
4 years ago
Grant Limberg
663a09b38d
oidc stuff coming across the wire properly and generating a working login URL
4 years ago
Grant Limberg
dfdac7adbd
iomanip
4 years ago
Grant Limberg
a33d7c64fe
more fixin
4 years ago
Grant Limberg
d15516f0ef
query fix & controller build fix
4 years ago
Grant Limberg
fa21fdc1cc
rename stuff for clarity
...
authenticationURL will still be used by the client for v1 and v2 of sso
4 years ago
Grant Limberg
8d39c9a861
plumbing full flow from controller -> client network
4 years ago
Grant Limberg
3818351287
use pqxx::pipeline for online update thread
5 years ago
Grant Limberg
4d26b5a868
no reason for this to be a pointer
5 years ago
Grant Limberg
ac0dc7844f
rework commit thread & some connection pool borrowing issues
5 years ago
Adam Ierymenko
75a45eeb27
Revert "Backport guts of 1.8 to 1.6 tree so we can point release without waiting for UI quirks to be fixed."
...
This reverts commit 48ce7632fa .
5 years ago
Adam Ierymenko
48ce7632fa
Backport guts of 1.8 to 1.6 tree so we can point release without waiting for UI quirks to be fixed.
5 years ago
Grant Limberg
46adc1f059
ifdef this out
5 years ago
Grant Limberg
9002555596
ensure count > 0
5 years ago
Grant Limberg
a20a290836
ifdef this out
5 years ago
Grant Limberg
83265768c1
ensure count > 0
5 years ago
Grant Limberg
c3a42bf590
remove heartbeat log
5 years ago
Grant Limberg
8b95afa96a
logging
5 years ago
Grant Limberg
6a49a766ca
logging
5 years ago
Grant Limberg
16ff14bda7
identify controller in pool stats
5 years ago
Grant Limberg
57c1d96b71
math
5 years ago
Grant Limberg
40f376e2b9
print db pool stats periodically
5 years ago
Grant Limberg
dc61f78916
set psql application_name in startup script
5 years ago
Grant Limberg
a2ffe8c05e
dont generate nonce for deleted members
5 years ago
Grant Limberg
d0f4cfe6b4
print load status messages a little less often now that things go brrrrrrrrr
5 years ago
Grant Limberg
3ec23f92ec
helps to add part of the query
5 years ago
Grant Limberg
6baac1b4e0
more query optimizations
5 years ago