Compare commits

..

19 commits

Author SHA1 Message Date
Jacob Taylor
1b4890fd26 exponential backoff is now just bees. did you want bees? no? well you have them now. congrats 2025-08-14 20:23:40 -07:00
Jacob Taylor
a81822165d fix too many infos 2025-08-14 20:23:40 -07:00
Jacob Taylor
b2050836a9 more funny settings (part 3 of 12) 2025-08-14 20:23:40 -07:00
Jacob Taylor
dd504aba4e sender_workers scaling. this time, with feeling! 2025-08-14 20:23:40 -07:00
Jacob Taylor
5cf175c392 vehicle loan documentation now available at window 7 2025-08-14 20:23:40 -07:00
Jacob Taylor
ff2e41f81e lock the getter instead ??? c/o M 2025-08-14 20:23:40 -07:00
Jacob Taylor
54008dcd5e make fetching key room events less smart 2025-08-14 20:23:40 -07:00
Jacob Taylor
564d3f179a change rocksdb stats level to 3
scale rocksdb background jobs and subcompactions

change rocksdb default error level to info from error

delete unused num_threads function

fix warns from cargo
2025-08-14 20:23:40 -07:00
nexy7574
6b5e4fab28 log which room struggled to get mainline depth 2025-08-14 20:23:40 -07:00
nexy7574
8046f69ed4 more logs 2025-08-14 20:23:40 -07:00
nexy7574
82f4521e65 Fix room ID check 2025-08-14 20:23:40 -07:00
nexy7574
113ab10e54 Kick up a fuss when m.room.create is unfindable 2025-08-14 20:23:40 -07:00
nexy7574
3728fe572f Note about ruma#2064 in TODO 2025-08-14 20:23:40 -07:00
nexy7574
9fea7c4899 fix an auth rule not applying correctly 2025-08-14 20:23:40 -07:00
Jacob Taylor
6adead0da7 upgrade some settings to enable 5g in continuwuity
enable converged 6g at the edge in continuwuity

better stateinfo_cache_capacity default

better roomid_spacehierarchy_cache_capacity

make sender workers default better and clamp value to core count

update sender workers documentation

add more parallelism_scaled and make them public

update 1 document
2025-08-14 20:23:40 -07:00
Jacob Taylor
53bf4ac512 bump the number of allowed immutable memtables by 1, to allow for greater flood protection
this should probably not be applied if you have rocksdb_atomic_flush = false (the default)
2025-08-14 20:23:40 -07:00
Jacob Taylor
69e47b7fb7 probably incorrectly delete support for non-standardized matrix srv record 2025-08-14 20:23:40 -07:00
nexy7574
255aa44ecc
fix(fed): Alter log levels to be less noisy 2025-08-15 04:20:03 +01:00
nexy7574
04130dcdd8
fix(fed): Improve transaction flushing 2025-08-15 04:11:54 +01:00
2 changed files with 29 additions and 7 deletions

View file

@ -3,7 +3,7 @@ use std::{fmt::Debug, mem};
use bytes::Bytes;
use conduwuit::{
Err, Error, Result, debug, debug::INFO_SPAN_LEVEL, debug_error, debug_warn, err,
error::inspect_debug_log, implement, trace, utils::string::EMPTY,
error::inspect_debug_log, implement, trace, utils::string::EMPTY, warn,
};
use http::{HeaderValue, header::AUTHORIZATION};
use ipaddress::IPAddress;
@ -193,7 +193,7 @@ fn handle_error(
) -> Result {
if e.is_timeout() || e.is_connect() {
e = e.without_url();
debug_warn!("{e:?}");
debug_warn!(?url, "network error while sending request: {e:?}");
} else if e.is_redirect() {
debug_error!(
method = ?method,
@ -204,7 +204,7 @@ fn handle_error(
e,
);
} else {
debug_error!("{e:?}");
warn!(?url, "failed to send federation request: {e:?}");
}
Err(e.into())

View file

@ -10,7 +10,7 @@ use std::{
use base64::{Engine as _, engine::general_purpose::URL_SAFE_NO_PAD};
use conduwuit_core::{
Error, Event, Result, debug, err, error,
Error, Event, Result, debug, err, error, info,
result::LogErr,
trace,
utils::{
@ -142,7 +142,7 @@ impl Service {
}
fn handle_response_err(dest: Destination, statuses: &mut CurTransactionStatus, e: &Error) {
debug!(dest = ?dest, "{e:?}");
debug!(dest = ?dest, "error response: {e:?}");
statuses.entry(dest).and_modify(|e| {
*e = match e {
| TransactionStatus::Running => TransactionStatus::Failed(1, Instant::now()),
@ -177,7 +177,21 @@ impl Service {
if !new_events.is_empty() {
self.db.mark_as_active(new_events.iter());
let new_events_vec = new_events.into_iter().map(|(_, event)| event).collect();
let new_events_vec: Vec<SendingEvent> =
new_events.into_iter().map(|(_, event)| event).collect();
if let Some(status) = statuses.get(&dest.clone()) {
if matches!(status, TransactionStatus::Running) {
// If the server is in backoff, clear it
info!(
?dest,
"Catching up previously failed destination with {}+ new events",
new_events_vec.len()
);
statuses.insert(dest.clone(), TransactionStatus::Running);
}
}
futures.push(self.send_events(dest.clone(), new_events_vec));
} else {
statuses.remove(dest);
@ -859,12 +873,20 @@ impl Service {
pdus,
edus,
};
let pdu_count = request.pdus.len();
let edu_count = request.edus.len();
let result = self
.services
.federation
.execute_on(&self.services.client.sender, &server, request)
.await;
.await
.inspect(|_| {
info!(%txn_id, %server, "Sent {} PDUs, {} EDUs", pdu_count, edu_count);
})
.inspect_err(|e| {
info!(%txn_id, %server, "Failed to send transaction ({} PDUs, {} EDUs): {e:?}", pdu_count, edu_count);
});
for (event_id, result) in result.iter().flat_map(|resp| resp.pdus.iter()) {
if let Err(e) = result {