Commit Graph

40 Commits

Author SHA1 Message Date
Bryan Stitt
3159844f5d more detailed errors for timeouts and other things 2023-11-14 16:22:54 -08:00
Bryan Stitt
a501a2d2fa MissedTickBehavior::Delay everywhere 2023-11-14 13:50:11 -08:00
Bryan Stitt
02c73a8925 more lint 2023-11-09 18:21:32 -08:00
Rory Neithinger
515d0af751 forward request id for eth_sendRawTransaction
currently looking into a single test case failure which may be due to
this change.
2023-11-07 00:57:30 -08:00
Bryan Stitt
a4400bbd40 stricter ordering. refs #210 2023-11-06 10:06:32 -08:00
Bryan Stitt
ab29135056 fix import 2023-11-03 16:34:04 -07:00
Bryan Stitt
0e58641676 start script for after the frontend starts 2023-11-03 16:11:21 -07:00
Bryan Stitt
5fb64614fe use pin for some sleeps 2023-10-23 23:06:02 -07:00
Bryan Stitt
ff3ff5d72f remove stub script 2023-10-20 11:58:50 -07:00
Bryan Stitt
369abae2fa make rdkafka fully optional 2023-10-16 12:06:10 -07:00
Bryan Stitt
47fd88c1c6 give longer to start 2023-10-13 20:15:01 -07:00
Bryan Stitt
ce3fbca7b6 fix eth_sendRawTransaction 2023-10-13 19:41:59 -07:00
Bryan Stitt
0769e26afb give initial start more time 2023-10-13 00:22:38 -07:00
Bryan Stitt
93533eabc7 Revert "try a RwLock (more should be done if this works)"
This reverts commit 9aa33dae2d3869965ba131e8e561338f2298fd56.
2023-10-12 23:33:25 -07:00
Bryan Stitt
eaaf9bdc81 DRY tracing_registry 2023-10-12 20:34:07 -07:00
Bryan Stitt
9786fb58b2 use select_all more 2023-10-12 19:23:22 -07:00
Bryan Stitt
6bd5ca3277 only select on the balanced handle 2023-10-12 16:52:39 -07:00
Bryan Stitt
f73fd66b89 dont sleep at start
that was a gross fix anyways
2023-10-12 16:25:26 -07:00
Bryan Stitt
75da1b8070 make tokio-console and the normal logging work together 2023-10-12 14:14:02 -07:00
Bryan Stitt
9aa33dae2d try a RwLock (more should be done if this works) 2023-10-11 10:55:45 -07:00
Bryan Stitt
413ee63b45 give it 30 seconds to start 2023-10-11 04:20:59 -07:00
Bryan Stitt
e43309abc0 move permits around and start rpcs slower 2023-10-11 04:18:53 -07:00
Bryan Stitt
072c52050f add another minimum sleep and set missed tick behavior 2023-10-11 01:42:55 -07:00
Bryan Stitt
a3812d8c5f sleep before first config reload 2023-10-11 00:52:58 -07:00
Bryan Stitt
78edfee6b9 timeout and server selection fixes
add a short connect timeout separate from the overall request timeout.

also fix a bug when only 1 server was in the rpc list causing a very tight loop that made tokio sad
2023-10-09 23:30:17 -07:00
Bryan Stitt
6789050196 panic if no head block after running for 30 seconds 2023-10-07 13:51:43 -07:00
Bryan Stitt
aeb30787dd more openssl and no rmp
i like rustls, but we can't use it on everything and so our compile times are bad
2023-10-07 00:35:22 -07:00
Bryan Stitt
6756559ec2 wow this got big 2023-10-07 00:35:22 -07:00
Bryan Stitt
e917a11d6c
Suprisingly large refactor to get ids everywhere (#222)
* cargo upgrade --incompatible and update

* first draft at suprisingly_large_refactor_to_get_ids_everywhere

* put app in a task_local

* ref cleanup

* use a OnceLock instead of a tokio local

* test more methods

* APP isn't set in all tests

* it compiles. tests fail. todos still open

* use the app only when necessary

* more tests. less panic

* less verbose debug impl

* short enum names

* move kafka and secrets to their own files

* main tests pass

* add debug chain block time

* helper for stats that ignores internal stats

* Update Jenkinsfile (#223)

* more tests

---------

Co-authored-by: Pewxz <124064710+pewxz@users.noreply.github.com>
2023-10-03 13:46:27 -07:00
Bryan Stitt
f0b6465069
streaming responses 2 (#219)
* streaming responses compile, still small TODOs & cleanup

* refactor to allow short curcuits on uncacheable requests (#220)

* refactor to allow short curcuits on uncacheable requests

* handle error inside an Arc from moka

* arc instead of box

* lint

* more lint

* add bonus rate limits and keep all semaphores after rate limits (#221)

* add bonus rate limits and keep all semaphores after rate limits

* remove stale todos

* better function names

* cargo upgrade and update

* make some panics warn. more todo

* pass request_metadata through so streaming responses include their final size

* remove stale TODO

* remove more stale todos

* add file i missed

* make to_json_string work well enough

* check config for free_subscriptions

---------

Co-authored-by: Rory Neithinger <rory@llamanodes.com>
2023-09-26 18:18:06 -07:00
Bryan Stitt
c53b9eb5d1 add median latency to the table 2023-09-07 12:07:17 -07:00
Bryan Stitt
cee4603b55 add check_balance command 2023-08-08 16:18:07 -07:00
Bryan Stitt
2a62dd4e47 lint 2023-08-08 15:50:50 -07:00
Bryan Stitt
7454c1a256 credits helpers 2023-08-07 15:25:10 -07:00
Bryan Stitt
bc8040f61d more yields and less timeouts 2023-08-04 18:54:16 -07:00
Bryan Stitt
aed98ac034 try yielding around all selects 2023-08-04 18:37:46 -07:00
Bryan Stitt
0bc523ab9f improve hard limits
rate limit per server or per endpoint and with any period
2023-08-03 12:24:28 -07:00
Bryan Stitt
ab6d3a1d9b split command line into separte module 2023-08-03 00:16:54 -07:00
Bryan Stitt
fcc1843af0 put it back. duplication between cargo.toml isnt worth it 2023-05-30 21:37:58 -07:00
Bryan Stitt
2273637a07 move cli into a separate packge and clean up dependencies 2023-05-30 20:58:24 -07:00