Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lemosep committed Jun 21, 2024
1 parent c1f5dc1 commit b1c4bb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async fn handle_service(cmd: ServiceCmd, ctl_client: CtlClient) -> eyre::Result<
concurrency,
resource_config: ResourceConfig {
cpu_shares,
memory_limit,
memory_limit: memory_limit * 1024 * 1024,
},
};
let rd = RedeploymentPolicy::None;
Expand Down
3 changes: 2 additions & 1 deletion ctl/src/deployer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use tokio::{
sync::{mpsc, oneshot},
task::JoinSet,
};
use tracing::{error, instrument, warn};
use tracing::{debug, error, instrument, warn};
use uuid::Uuid;

use crate::{
Expand Down Expand Up @@ -110,6 +110,7 @@ impl Deployer {
}

async fn handle_deploy_service(&mut self, spec: ServiceSpec) -> eyre::Result<DeployServiceRes> {
debug!(?spec, "deploying service");
let workers = self.h.worker_mgr.query_workers().await;
let instances = alloc::rand_many(&workers, spec.concurrency);
let deployment_id = DeploymentId(Uuid::now_v7());
Expand Down
2 changes: 1 addition & 1 deletion worker/src/runner/container_rt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl ContainerRuntime {

let options = Some(CreateContainerOptions {
name,
platform: Some("linux/x86_64".to_string()),
platform: None,
});
let create_response = self.docker.create_container(options, config).await?;

Expand Down

0 comments on commit b1c4bb1

Please sign in to comment.