Perf measurement & bottleneck fix #102

Merged
quentin merged 16 commits from perf/cpu-ram-bottleneck into main 2024-02-23 17:32:39 +00:00
Showing only changes of commit 0b122582e8 - Show all commits

View file

@ -2,8 +2,8 @@ use aws_sdk_s3::{self as s3, error::SdkError, operation::get_object::GetObjectEr
use aws_smithy_runtime::client::http::hyper_014::HyperClientBuilder; use aws_smithy_runtime::client::http::hyper_014::HyperClientBuilder;
use aws_smithy_runtime_api::client::http::SharedHttpClient; use aws_smithy_runtime_api::client::http::SharedHttpClient;
use hyper_rustls::HttpsConnector; use hyper_rustls::HttpsConnector;
use hyper_util::rt::TokioExecutor;
use hyper_util::client::legacy::{connect::HttpConnector, Client as HttpClient}; use hyper_util::client::legacy::{connect::HttpConnector, Client as HttpClient};
use hyper_util::rt::TokioExecutor;
use serde::Serialize; use serde::Serialize;
use crate::storage::*; use crate::storage::*;
@ -35,7 +35,7 @@ impl GarageRoot {
conf, conf,
aws_http: self.aws_http.clone(), aws_http: self.aws_http.clone(),
k2v_http: self.k2v_http.clone(), k2v_http: self.k2v_http.clone(),
unicity unicity,
})) }))
} }
} }
@ -95,7 +95,8 @@ impl IBuilder for GarageUser {
user_agent: None, user_agent: None,
}; };
let k2v_client = match k2v_client::K2vClient::new_with_client(k2v_config, self.k2v_http.clone()) { let k2v_client =
match k2v_client::K2vClient::new_with_client(k2v_config, self.k2v_http.clone()) {
Err(e) => { Err(e) => {
tracing::error!("unable to build k2v client: {}", e); tracing::error!("unable to build k2v client: {}", e);
return Err(StorageError::Internal); return Err(StorageError::Internal);