add bench docker
This commit is contained in:
parent
c3c95e9589
commit
b870baf1c3
5 changed files with 45 additions and 2 deletions
|
|
@ -59,6 +59,14 @@ pub fn parse_opts(globals: &mut Globals, backends: &mut HashMap<String, Backend>
|
|||
info!("Listen port: {} (for TLS)", globals.https_port.unwrap());
|
||||
}
|
||||
|
||||
// max values
|
||||
if let Some(c) = config.max_clients {
|
||||
globals.max_clients = c as usize;
|
||||
}
|
||||
if let Some(c) = config.max_concurrent_streams {
|
||||
globals.max_concurrent_streams = c;
|
||||
}
|
||||
|
||||
// backend apps
|
||||
ensure!(config.apps.is_some(), "Missing application spec.");
|
||||
let apps = config.apps.unwrap();
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ use std::{collections::HashMap, fs};
|
|||
pub struct ConfigToml {
|
||||
pub listen_port: Option<u16>,
|
||||
pub listen_port_tls: Option<u16>,
|
||||
pub max_concurrent_streams: Option<u32>,
|
||||
pub max_clients: Option<u32>,
|
||||
pub apps: Option<Apps>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue