archivist_lib/constants.rs
1// Copyright 2020 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5/// The maximum number of bytes in a formatted content VMO.
6pub const FORMATTED_CONTENT_CHUNK_SIZE_TARGET: u64 = 1 << 20; // 1 MiB
7
8/// For production archivist instances this value is retrieved from configuration but we still
9/// provide a default here for internal testing purposes.
10pub const LEGACY_DEFAULT_MAXIMUM_CACHED_LOGS_BYTES: u64 = 4 * 1024 * 1024;
11
12/// Default path where pipeline configuration are located.
13pub const DEFAULT_PIPELINES_PATH: &str = "/config/data";