use std::time::Duration;
use common::{ObjectStoreConfig, AwsObjectStoreConfig};
use buffer::{ProducerConfig, ConsumerConfig, CompressionType};
let object_store = ObjectStoreConfig::Aws(AwsObjectStoreConfig {
region: "us-west-2".to_string(),
bucket: "my-ingest-bucket".to_string(),
});
let producer_config = ProducerConfig {
object_store: object_store.clone(),
data_path_prefix: "ingest".to_string(),
manifest_path: "ingest/manifest".to_string(),
flush_interval: Duration::from_millis(200),
flush_size_bytes: 128 * 1024 * 1024,
max_buffered_inputs: 1000,
batch_compression: CompressionType::Zstd,
};
let consumer_config = ConsumerConfig {
object_store,
manifest_path: "ingest/manifest".to_string(),
data_path_prefix: "ingest".to_string(),
gc_interval: Duration::from_secs(5 * 60),
gc_grace_period: Duration::from_secs(10 * 60),
};