From 39efc4e5c76925fec115e877f36f07ed11ebd88e Mon Sep 17 00:00:00 2001 From: Vlad Volodkin Date: Sat, 9 Nov 2024 19:53:16 +0000 Subject: [PATCH] Update user-agent on express cache usage Signed-off-by: Vlad Volodkin --- mountpoint-s3/src/cli.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mountpoint-s3/src/cli.rs b/mountpoint-s3/src/cli.rs index ccfc887e8..d6a895039 100644 --- a/mountpoint-s3/src/cli.rs +++ b/mountpoint-s3/src/cli.rs @@ -734,6 +734,9 @@ pub fn create_s3_client(args: &CliArgs) -> anyhow::Result<(S3CrtClient, EventLoo if let Some(interfaces) = &args.bind { user_agent.key_value("mp-nw-interfaces", &interfaces.len().to_string()); } + if args.cache_express_bucket_name().is_some() { + user_agent.value("mp-cache-express"); + } // This is a weird looking number! We really want our first request size to be 1MiB, // which is a common IO size. But Linux's readahead will try to read an extra 128k on on