improve dedicated worker on default worker grou[

This commit is contained in:
Ruben Fiszel
2023-10-23 22:59:25 +02:00
parent edd93b5d44
commit d8eefe59b7
3 changed files with 2425 additions and 2414 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ pub async fn load_worker_config(db: &DB) -> error::Result<WorkerConfig> {
WorkspacedPath { workspace_id: workspace.to_string(), path: script_path.to_string() }
}
});
if *WORKER_GROUP == "default" {
if *WORKER_GROUP == "default" && dedicated_worker.is_none() {
let mut all_tags = config
.worker_tags
.unwrap_or_default()
+6 -5
View File
@@ -261,7 +261,7 @@ db.address.apply((address) => {
containerDefinitions: JSON.stringify([
{
name: "windmill-worker",
image: "ghcr.io/windmill-labs/windmill:1.190.0",
image: "ghcr.io/windmill-labs/windmill-ee:main",
cpu: 1024,
memory: 1800,
essential: true,
@@ -272,7 +272,8 @@ db.address.apply((address) => {
},
],
environment: [
{ name: "DISABLE_SERVER", value: "true" },
{ name: "MODE", value: "worker" },
{ name: "NUM_WORKERS", value: "10" },
// { name: "METRICS_ADDR", value: "true" },
{ name: "RUST_LOG", value: "info" },
{
@@ -311,12 +312,12 @@ db.address.apply((address) => {
containerDefinitions: JSON.stringify([
{
name: "windmill-server",
image: "ghcr.io/windmill-labs/windmill:1.165.0",
image: "ghcr.io/windmill-labs/windmill-ee:main",
cpu: 1024,
memory: 1024,
essential: true,
environment: [
{ name: "NUM_WORKERS", value: "0" },
{ name: "MODE", value: "server" },
// { name: "METRICS_ADDR", value: "true" },
{ name: "RUST_LOG", value: "info" },
{
@@ -371,7 +372,7 @@ db.address.apply((address) => {
const service_worker = new aws.ecs.Service("service-worker", {
cluster: cluster.id,
taskDefinition: worker_td.arn,
desiredCount: 30,
desiredCount: 10,
forceNewDeployment: true,
orderedPlacementStrategies: [
{
+2418 -2408
View File
File diff suppressed because it is too large Load Diff