Commit Graph

60 Commits

Author SHA1 Message Date
Bryan Stitt ed0b74f186 1.43.88 2023-11-09 18:21:32 -08:00
Bryan Stitt 156ff1c33a 1.43.85 2023-11-08 11:45:49 -08:00
Bryan Stitt 6c2917ba68 1.43.84 2023-11-06 17:49:32 -08:00
Bryan Stitt a4400bbd40 stricter ordering. refs #210 2023-11-06 10:06:32 -08:00
Bryan Stitt 6e891d9081 1.43.70 2023-10-29 20:37:23 -07:00
Bryan Stitt 8a1e8f614c 1.43.68 2023-10-26 11:06:15 -07:00
Bryan Stitt 7a019bd1f1 1.43.57 2023-10-23 15:41:03 -07:00
Bryan Stitt da7bb4b07c 1.43.55 2023-10-20 12:30:54 -07:00
Bryan Stitt d329bfdc97 start at 60 seconds instead of 1. servers are often behind and we want these to stand out 2023-10-16 15:07:20 -07:00
Bryan Stitt 18e3795863 1.43.47 2023-10-13 19:46:52 -07:00
Bryan Stitt d4e72a5455 1.43.43 2023-10-12 20:19:24 -07:00
Bryan Stitt 2c175103ae remove more unused deps 2023-10-11 01:46:59 -07:00
Bryan Stitt 4f6e75e109 cargo upgrade and update 2023-10-09 09:46:43 -07:00
Bryan Stitt ec533c8b30 cargo upgrade and update 2023-08-30 20:59:06 -07:00
Bryan Stitt df12b3dc73 cargo upgrade and update 2023-08-24 14:37:04 -07:00
Bryan Stitt d036806a61 cargo upgrade and cargo update 2023-08-22 10:42:59 -07:00
Bryan Stitt 6be05bab4b cargo upgrade 2023-08-17 13:49:45 -07:00
Bryan Stitt aa71a406bb cargo upgrade 2023-08-15 15:39:13 -07:00
Bryan Stitt d56d39c82f cargo upgrade 2023-08-07 15:40:59 -07:00
Bryan Stitt 5257329559 cargo upgrade 2023-08-04 16:19:43 -07:00
Bryan Stitt 2885bc6ef2 cargo upgrade 2023-07-31 12:58:20 -07:00
Bryan Stitt d14837aa77 cargo upgrade 2023-07-28 12:55:10 -07:00
Bryan Stitt ebfb4c6386 cargo upgrade 2023-07-27 12:29:10 -07:00
Bryan Stitt 9b361cb849 cargo upgrade 2023-07-24 21:59:37 -07:00
Bryan Stitt 6c6a2406b7 cargo upgrade 2023-07-19 22:55:53 -07:00
Bryan Stitt 1b8ae5dee0 cargo upgrade 2023-07-18 09:54:56 -07:00
Bryan Stitt df2f3d340f
More balance tests (#182)
* fix popularity contest

* more info in the Debug for Web3Rpc

* add frontend_requests and cache_misses to the Balance query

* add more to balance and stats flushing and improved test coverage

* it compiles

* deserializer for Ulid to Uuid

I think a wrapper type on Ulid that implements sea_orm::Value is probably better

* rename variable to match struct name

* add deserializer for Address -> Vec<u8>

* sql sum returns a Decimal. need to convert to u64

* assert more

* one log and assert more

* log more

* use a helper to get the user's rpc provider

* this should be 2 now that we have a public and authed call

* this should be zero. the public has the cache miss

* instrument cu calcs

* trace the value we took, not the default that replaced it

* move usd_per_chain into config

* remove some extra logging

* use Arc::into_inner to maybe avoid a race

* off by 1

* pass paid credits used instead of returning it

this lets us use it to write to our user balance cache first. importantly, this keeps us from holding a write lock while writing to mysql

* no cache misses expected in this test

* actually check the admin

* put the balance checks back now that the rest of the test works

* archive request is being set incorrectly

* wow howd we manage flipping the greater than sign on archive depth

* move latest_balance and premium_credits_used to before any stats are emitted

* lint

* and build undoes the linting. fun

i didnt even want to lint them in the first place, so this is fine

* missed incrementing total_spent when not incrementing total_spent_paid_credits

* use the credits on self

* use the credits on self (pt 2)

* fix type for 10 cu query

* convert the requestmetadata on the other side of the channel

* logs

* viewing stats is allowed even without a balance

* move paid_credits_used to AuthorizationChecks

* wip

* test_sum_credits_used finally passes

* UserBalanceCache::get_or_insert

* re-enable rpc_secret_key_cache

* move invalidate to a helper function

and always call it **after** the db is commited

* fix PartialEq and Eq on RpcSecretKey

* cargo upgrade
2023-07-12 00:35:07 -07:00
Bryan Stitt 0f7e370c92 drop flume. just use tokio
i dont know if this is the problem, but this will also get compile times down
2023-07-10 23:08:06 -07:00
Bryan Stitt cceee646ad cargo upgrade 2023-07-10 14:05:03 -07:00
Bryan Stitt 71aab0dedc cargo upgrade 2023-07-07 15:16:14 -07:00
Bryan Stitt 64505953ee cargo upgrade 2023-07-03 12:28:07 -07:00
Bryan Stitt 501ec21442 drop workspace-hack for now
it doesn't work well with features and so we were installing things like kafka even if the feature was off
2023-06-30 13:18:37 -07:00
Bryan Stitt 645fa7328b cargo upgrade tokio 2023-06-29 23:16:31 -07:00
Bryan Stitt cdea61cb6b one list for ranked rpcs 2023-06-27 15:55:29 -07:00
Bryan Stitt 272f7ce800 add cargo hakari and chef to build process 2023-06-27 11:59:49 -07:00
Bryan Stitt fd661689a3
Tracing (#144)
* tracing

* add tracing and features to match

* use just one hostname crate

* cargo upgrade

* set up pretty logger and sentry layer
2023-06-23 16:28:45 -07:00
Bryan Stitt c3ae4ded2b move data to the right places 2023-06-18 21:42:16 -07:00
Bryan Stitt 825ba006f1 move floats and durations around for latency tracking 2023-06-18 10:46:22 -07:00
Bryan Stitt e54299beca rolling median for choosing tier 2023-06-18 09:53:36 -07:00
Bryan Stitt c456432cc3 cargo upgrade 2023-06-12 11:44:51 -07:00
Bryan Stitt b6ff14210d cargo upgrade 2023-06-08 22:35:14 -07:00
Bryan Stitt 2273637a07 move cli into a separate packge and clean up dependencies 2023-05-30 20:58:24 -07:00
Bryan Stitt 9e935e2c44 cargo upgrade 2023-05-29 09:43:51 -07:00
Bryan Stitt 3ac15558e3 fix decay time 2023-05-22 15:43:39 -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 40b15579ab Merge remote-tracking branch 'origin/devel' into quick_cache_ttl 2023-05-16 14:47:43 -07:00
Bryan Stitt 4d2b405b4e lower log level 2023-05-16 14:09:10 -07:00
Bryan Stitt c66eb6d864 head latency instead of peak latency for now 2023-05-16 12:18:59 -07:00
Bryan Stitt b204a1f8ca kqcache too 2023-05-14 16:25:58 -07:00