Skip to content

Commit

Permalink
Feature/file limits (#104)
Browse files Browse the repository at this point in the history
* configure fargate task ulimits

* increase ecs task file limit

* add nproc limits

Co-authored-by: Raj Poluri <[email protected]>
  • Loading branch information
rpoluri and Raj Poluri authored Mar 16, 2022
1 parent c9fb312 commit 819f4f5
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 55 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [3.4.2] - 2022-03-16
- Configure ECS task file limits.

## [3.4.1] - 2022-01-11
- Add k8s internal service with client affinity, for usecases than cannot use headless service and seamlessly failover to new waggle-dance instances.

Expand Down
122 changes: 67 additions & 55 deletions templates/waggledance.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,71 @@
[
{
"name": "waggledance",
"image": "${docker_image}:${docker_version}",
${docker_auth}
"essential": true,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "${loggroup}",
"awslogs-region": "${region}",
"awslogs-stream-prefix": "/"
}
},
"portMappings": [
{
"containerPort": 48869,
"hostPort": 48869
}
],
"environment":[
{
"name": "HEAPSIZE",
"value": "${heapsize}"
},
{
"name": "LOGLEVEL",
"value": "${loglevel}"
},
{
"name": "SERVER_YAML",
"value": "${server_yaml}"
},
{
"name": "FEDERATION_YAML",
"value": "${federation_yaml}"
},
{
"name": "HIVE_SITE_XML",
"value": "${hive_site_xml}"
},
{
"name": "BASTION_SSH_KEY_ARN",
"value": "${bastion_ssh_key_arn}"
},
{
"name": "LOG4J_FORMAT_MSG_NO_LOOKUPS",
"value": "true"
}
],
"healthCheck": {
"command": ["CMD-SHELL", "curl -f http://localhost:18000/actuator/health || exit 1"],
"interval": 5,
"retries": 3,
"startPeriod": 60,
"timeout": 5
}
"name": "waggledance",
"image": "${docker_image}:${docker_version}",
${docker_auth}
"essential": true,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "${loggroup}",
"awslogs-region": "${region}",
"awslogs-stream-prefix": "/"
}
},
"portMappings": [
{
"containerPort": 48869,
"hostPort": 48869
}
],
"environment":[
{
"name": "HEAPSIZE",
"value": "${heapsize}"
},
{
"name": "LOGLEVEL",
"value": "${loglevel}"
},
{
"name": "SERVER_YAML",
"value": "${server_yaml}"
},
{
"name": "FEDERATION_YAML",
"value": "${federation_yaml}"
},
{
"name": "HIVE_SITE_XML",
"value": "${hive_site_xml}"
},
{
"name": "BASTION_SSH_KEY_ARN",
"value": "${bastion_ssh_key_arn}"
},
{
"name": "LOG4J_FORMAT_MSG_NO_LOOKUPS",
"value": "true"
}
],
"healthCheck": {
"command": ["CMD-SHELL", "curl -f http://localhost:18000/actuator/health || exit 1"],
"interval": 5,
"retries": 3,
"startPeriod": 60,
"timeout": 5
},
"ulimits": [
{
"name": "nofile",
"softLimit": 65536,
"hardLimit": 65536
},
{
"name": "nproc",
"softLimit": 65536,
"hardLimit": 65536
}
]
}
]

0 comments on commit 819f4f5

Please sign in to comment.