Skip to content

Commit 7e62a47

Browse files
Merge pull request #309 from microsoft/main
Fork Sync: Update from parent repository
2 parents 6770232 + cbac57d commit 7e62a47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/agent/onefuzz-task/src/tasks/task_logger.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ use uuid::Uuid;
1616

1717
use tokio::sync::broadcast::{error::TryRecvError, Receiver};
1818

19-
const LOGS_BUFFER_SIZE: usize = 100;
19+
const LOGS_BUFFER_SIZE: usize = 1000;
2020
const MAX_LOG_SIZE: u64 = 100000000; // 100 MB
21-
const DEFAULT_LOGGING_INTERVAL: Duration = Duration::from_secs(60);
22-
const DEFAULT_POLLING_INTERVAL: Duration = Duration::from_secs(5);
21+
const DEFAULT_LOGGING_INTERVAL: Duration = Duration::from_secs(20);
22+
const DEFAULT_POLLING_INTERVAL: Duration = Duration::from_secs(3);
2323

2424
#[derive(Debug, Deserialize)]
2525
#[serde(rename_all = "PascalCase")]

src/agent/onefuzz-telemetry/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ mod global {
254254

255255
lazy_static! {
256256
pub static ref EVENT_SOURCE: RwLock<Option<Sender<LoggingEvent>>> = {
257-
let (telemetry_event_source, _) = broadcast::channel::<_>(100);
257+
let (telemetry_event_source, _) = broadcast::channel::<_>(5000);
258258
RwLock::new(Some(telemetry_event_source))
259259
};
260260
}

0 commit comments

Comments
 (0)