Commit Graph

1459 Commits

Author SHA1 Message Date
Bryan Stitt 3ac15558e3 fix decay time 2023-05-22 15:43:39 -07:00
Bryan Stitt 91eeee23e2 use ether's reconnects instead of our own which need a lock (wip) 2023-05-22 15:32:27 -07:00
yenicelik 59634139c9 updated error_response 2023-05-21 20:27:52 -04:00
yenicelik 29678b025e updated error_response 2023-05-21 20:27:46 -04:00
yenicelik 46afe8b1e4 influxdb query also groups by archive_needed now 2023-05-21 17:13:15 -04:00
yenicelik 795548580a now should also group by archive_needed (turns out this was wanted) 2023-05-21 16:40:42 -04:00
Bryan Stitt c443f76623 refactor tiers again 2023-05-19 14:09:03 -07:00
Bryan Stitt 5aae318620 logs and comments 2023-05-18 15:11:29 -07:00
Bryan Stitt 9c584354d9 add to skip list earlier 2023-05-18 13:51:28 -07:00
Bryan Stitt a92c93706b dont check heads while waiting
this isn't great. but should work better than what we have
2023-05-18 13:47:00 -07:00
Bryan Stitt 8898ffe578 cargo upgrade 2023-05-18 13:36:35 -07:00
Bryan Stitt b61675e928 replace all moka with quick_cache_ttl 2023-05-18 13:34:22 -07:00
Bryan Stitt 24439c5143 disable balance join for now 2023-05-18 00:43:33 -07:00
Bryan Stitt 0f367d9035 more quick cache ttl 2023-05-18 00:04:30 -07:00
Bryan Stitt 1c61390ad1 check if watch_consensus_rpcs.changed has failed
i dont think it ever will, but better safe than sorry
2023-05-16 23:42:42 -07:00
Bryan Stitt c818a8fcd7 default balance to zero instead of panicing 2023-05-16 23:40:32 -07:00
Bryan Stitt 89961331af refactor wait_for_block into should_wait_for_block 2023-05-16 22:29:36 -07:00
Bryan Stitt a07da30042 keep usable_rpcs_by_tier_and_head_number around longer 2023-05-16 18:32:33 -07:00
Bryan Stitt 0f79d2e60d more loud logs 2023-05-16 18:29:56 -07:00
Bryan Stitt 58b7799cc5 for now, always return 0 for cost 2023-05-16 18:25:56 -07:00
Bryan Stitt a0d8218eb1 best block num has to check has_block_data 2023-05-16 18:18:56 -07:00
Bryan Stitt 30ea532c70 display, not debug 2023-05-16 16:13:56 -07:00
Bryan Stitt 5d64524aa6 add name to web3rpcs 2023-05-16 16:04:17 -07:00
Bryan Stitt 59e864e70f Merge branch 'quick_cache_ttl' into devel 2023-05-16 15:42:10 -07:00
Bryan Stitt efaaf1bb5f send the correct content type 2023-05-16 15:27:18 -07:00
Bryan Stitt 525f6d4a34 better variable names 2023-05-16 14:58:00 -07:00
Bryan Stitt 40b15579ab Merge remote-tracking branch 'origin/devel' into quick_cache_ttl 2023-05-16 14:47:43 -07:00
Bryan Stitt f4cebde53f use ttl quick cache 2023-05-16 14:46:05 -07:00
Bryan Stitt 4d2b405b4e lower log level 2023-05-16 14:09:10 -07:00
Bryan Stitt 978c385b3c improve wait for block 2023-05-16 14:02:37 -07:00
Bryan Stitt c66eb6d864 head latency instead of peak latency for now 2023-05-16 12:18:59 -07:00
Bryan Stitt 1ab98f1edc fix panic 2023-05-15 13:19:57 -07:00
Bryan Stitt b204a1f8ca kqcache too 2023-05-14 16:25:58 -07:00
Bryan Stitt 9621cfdccd add quick cache wrapper for ttl expiration 2023-05-13 16:28:27 -07:00
Bryan Stitt 685c1d039a cargo upgrade 2023-05-13 15:00:24 -07:00
Bryan Stitt 2080739865
Quick cache (#70)
* quick cache and allocate less

* improve /status cache

* prepare to cache raw transaction hashes so we dont dos our backends

* simple benchmark for /health and /status

* mut not needed with atomics

* DRY all the status pages

* use u64 instead of bytes for subscriptions

* fix setting earliest_retry_at and improve logs

* Revert "use kanal instead of flume or tokio channels (#68)"

This reverts commit 510612d343.

* fix automatic retries

* put relaxed back

* convert error message time to seconds

* assert instead of debug_assert while we debug

* ns instead of seconds

* disable peak_latency for now

* null is the default

* cargo fmt

* comments

* remove request caching for now

* log on exit

* unit weigher for now

* make cache smaller. we need a weigher for prod. just debugging

* oops. we need async

* add todo

* no need for to_string on a RawValue
2023-05-13 11:13:02 -07:00
Bryan Stitt b493f02c3d put relaxed back 2023-05-13 09:56:40 -07:00
Bryan Stitt 376c2261ea Merge remote-tracking branch 'origin/main' into devel 2023-05-12 23:42:28 -07:00
Bryan Stitt cfe4b2bf56 fix consensus head bug
iterated on the vec
2023-05-12 23:41:15 -07:00
Bryan Stitt c3cdf7ef43 fix consensus finding bug 2023-05-12 23:40:15 -07:00
Bryan Stitt 1639405f6d remove loud log 2023-05-12 23:27:19 -07:00
Bryan Stitt 4b7f88367d fix serializing /status 2023-05-12 23:22:20 -07:00
Bryan Stitt 74a602bc9c wip 2023-05-12 23:20:59 -07:00
Bryan Stitt a3b97fda9b lint 2023-05-12 23:04:56 -07:00
Bryan Stitt c54970da0a change ordering and move fetch_add and fetch_sub 2023-05-12 23:00:03 -07:00
Bryan Stitt 914c3e03a8 remove stale comments 2023-05-12 22:22:21 -07:00
Bryan Stitt 3cea4c3123 update peak_ewma to use request latency and fix off by one 2023-05-12 22:21:11 -07:00
Bryan Stitt 0c990b0755 use a cancel-safe channel for stats 2023-05-12 16:02:43 -07:00
Bryan Stitt 510612d343
use kanal instead of flume or tokio channels (#68) 2023-05-12 15:47:01 -07:00
Bryan Stitt 8a097dabbe
Bryan devel 2023-05-12 (#67)
* add minor todo

* BadRequest instead of web3_context

* more bad request error codes

* use tokio-uring for the tcp listener

* clear block instead of panic

* clone earlier

* more watch channels instead of rwlocks

* drop uring for now (its single threaded) and combine get/post/put routes

* clean up iter vs into_iter and unnecessary collect

* arcswap instead of rwlock for Web3Rpcs.by_name

* cargo upgrade

* uuid fast-rng and alphabetize

* if protected rpcs, only use protected rpcs

* listenfd

* make connectinfo optional

* try_get_with_by_ref instead of try_get_with

* anyhow ensure. and try_get_with_as_ref isn't actually needed

* fix feature flags

* more refs and less clone

* automatic retry for eth_getTransactionReceipt and eth_getTransactionByHash

thanks for the report Lefteris @ Rotki

* ArcSwap for provider

* set archive_request to true on transaction retrying

* merge durable stats

* Revert "ArcSwap for provider"

This reverts commit 166d77f204cde9fa7722c0cefecbb27008749d47.

* comments

* less clones

* more refs

* fix test

* add optional mimalloc feature

* remove stale dependency

* sort

* cargo upgrade

* lint constants

* add todo

* another todo

* lint

* anyhow::ensure instead of panic

* allow rpc_accounting_v2 entries for requests without an rpc key
2023-05-12 15:15:32 -07:00