Commit Graph

36 Commits

Author SHA1 Message Date
Kim Altintop ba4546c5a2 core: Use Program instead of (Hash, Box<[u8]>) (#1558)
Signed-off-by: Kim Altintop <kim@eagain.io>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
2024-08-09 01:28:37 +00:00
joshua-spacetime 61ee5def83 feat: System table based slow query logging (#1350) 2024-06-07 21:37:34 +00:00
Jeremie Pelletier da23401368 Jeremie/notify sql (#1198)
* Notify subscriptions from SQL code path

* Remove blocking_broadcast_event

(From another PR, but helps tests to pass)

* Update from review

* Update from rebase

* cargo fmt

* cargo fmt

* cargo fmt

* update space.rs
2024-06-03 22:51:05 +00:00
Noa a8549457e9 Re-add execute_sql_mut_tx (#1313) 2024-06-03 09:49:03 +00:00
Noa 6b1a3d3896 Module hotswapping (#1147) 2024-05-22 17:49:35 +00:00
Noa 3b754f10b1 Bump to Rust 1.78 (#1205)
* Bump to rust 1.78

* Fix lints
2024-05-08 14:20:12 +00:00
joshua-spacetime 9ce8fc8db7 feat(1168): Track subscription query duration for each reducer (#1195)
Closes #1168.
2024-05-03 18:24:45 +00:00
joshua-spacetime fc3ff30c34 fix(1170): Use scope guard to decrement reducer queue length (#1172)
Fixes #1170.

Also updates the bucket values for the queue length histogram.
Also removes the max queue length metric, since the histogram should suffice.
2024-04-29 20:31:02 +00:00
Kim Altintop 3c6b60a9d0 core: AnyBytes from boxed slice (#1133)
Avoids an unnecessary roundtrip through `Vec<u8>` in private#731.
2024-04-22 10:58:35 +00:00
Mazdak Farrokhzad ce7d9b0565 slow query log: only use Instant::now when needed + refactor (#1110)
* slow query log: only use Instant::now when needed + refactor

* address Joshua's review
2024-04-18 21:41:35 +00:00
Mario Montoya 7d5eb1532d Slow query log (#1052)
* Slow query log

* Addressing some PR comments
2024-04-17 13:53:55 +00:00
joshua-spacetime c69ab121eb fix(1051): Reset queue length metrics on module restart (#1053)
Fixes #1051.

Queue length metrics were not being reset in all cases for module restarts.
2024-04-09 19:19:33 +00:00
Noa 987d742baa Also poll handle_queue while flushing (#947)
* Also poll handle_queue while flushing

* Apply suggestions from code review

Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
Signed-off-by: Noa <coolreader18@gmail.com>

---------

Signed-off-by: Noa <coolreader18@gmail.com>
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
2024-03-08 21:09:30 +00:00
Noa 558822e9ed Parallelize QuerySet::eval (#891)
* Parallelize QuerySet::eval

* Reduce number of arguments for make_actor
2024-02-28 06:14:30 +00:00
Noa 7491835e99 ResultInspectExt is obsolete (#818) 2024-02-12 18:28:42 +00:00
John Detter 602f1bac26 Fix for reducer queue metric - tested on staging (#737)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2024-01-22 21:53:25 +00:00
joshua-spacetime c265ed195f refactor(metrics): Move metric builder macros into their own crate 2023-12-05 10:26:41 -08:00
joshua-spacetime 9ae4e079b0 refactor(metrics): Remove dependencies of metric builder macros (#624)
Prometheus metric builders should not have any outside dependencies,
other than prometheus.
2023-12-01 22:36:35 -08:00
joshua-spacetime 4bbcb4fc0c perf(591): Distinguish query metrics as sql, subscription or incremental update (#605)
Closes #591.
2023-11-28 12:46:49 -08:00
joshua-spacetime 7f8773384e perf(582): Track maximum reducer queue length
Closes #582.
2023-11-21 11:07:40 -08:00
joshua-spacetime be452a3c9b refactor(571): Observe queue length on semaphore blocking and acquisition
Fixes #571.
2023-11-20 09:32:02 -08:00
joshua-spacetime 4aca84a822 refactor(571): Accept histogram buckets argument in metric macros 2023-11-20 09:32:02 -08:00
Mario Montoya f12a238237 Moving object defs to SATS (#460)
* Moving object defs to SATS

* move ColumnIndexAttribute to primitives, nix path attr

* revert unnecessary reformating

* ProductValue: don't take ColId
ProductValues can be more than rows and can be nested

* simplify sats::db::def wrt. Constraints + impl ser/de

* cargo fmt

---------

Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
2023-11-13 12:21:56 +00:00
joshua-spacetime 9062843ab4 Track instance_queue_length by reducer (#530)
Co-authored-by: Noa <coolreader18@gmail.com>
2023-11-07 18:30:33 +00:00
joshua-spacetime ecebf3dcf7 refactor(531): Label transaction count metric with boolean flag (#532)
Fixes #531.

Instead of having two distinct metrics for commits and rollbacks,
this patch replaces them with a single metric plus a boolean label
representing whether the transaction was committed or rolled back.
2023-11-07 08:54:56 -08:00
joshua-spacetime d1cbef2558 perf(471): Add duration metrics for wasm abi calls (#499) 2023-10-30 14:55:46 -07:00
joshua-spacetime feaba247d8 refactor(485): Label metrics with database address and reducer name (#486)
Fixes #485.

Previously we were labeling metrics with internal database and reducer IDs.
2023-10-27 17:42:47 -07:00
Noa 628dac120e Simplify/deabstract module_host_actor and wasmer_module (#417)
* Simplify/deabstract module_host_actor and wasmer_module

* DatabaseLogger doesn't need an external mutex
2023-10-27 15:53:55 -05:00
joshua-spacetime 23b2e6c713 perf(461): Record metrics for rows [inserted|deleted] on commit (#462)
Closes #456.
Closes #461.

Define an execution context for database operations.
Store the database id in RelationalDB.
Record metrics for rows [inserted|deleted] on commit.
2023-10-25 15:28:26 -07:00
Noa ac24ff0205 Prometheus stuff (#301) 2023-10-17 20:45:15 +02:00
Phoebe Goldman 77065a8f08 Add some comments to FutureQueue and the subscribe route (#378) 2023-10-06 15:18:29 -04:00
Noa 90207251a0 Fix deadlock (#369) 2023-10-05 15:33:49 -05:00
Mazdak Farrokhzad 12a7e7f572 use derive_more::From (#281) 2023-09-13 11:40:23 +00:00
Noa 50e8e28463 Module/instance thread rework (#222)
* Module/instance thread rework

* Update docker action versions
2023-09-11 19:43:38 +00:00
j gilles 751da204e0 Run cargo fmt (#99) 2023-08-01 23:17:03 +02:00
Tyler Cloutier 44df6c6e7d Initial commit 2023-08-01 23:16:37 +02:00