Skip to content

Commit 819f4f5

Browse files
rpoluriRaj Poluri
and
Raj Poluri
authored
Feature/file limits (#104)
* configure fargate task ulimits * increase ecs task file limit * add nproc limits Co-authored-by: Raj Poluri <rpoluri@expediagroup.com>
1 parent c9fb312 commit 819f4f5

File tree

2 files changed

+70
-55
lines changed

2 files changed

+70
-55
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
33

44
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).
55

6+
## [3.4.2] - 2022-03-16
7+
- Configure ECS task file limits.
8+
69
## [3.4.1] - 2022-01-11
710
- Add k8s internal service with client affinity, for usecases than cannot use headless service and seamlessly failover to new waggle-dance instances.
811

templates/waggledance.json

Lines changed: 67 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,71 @@
11
[
22
{
3-
"name": "waggledance",
4-
"image": "${docker_image}:${docker_version}",
5-
${docker_auth}
6-
"essential": true,
7-
"logConfiguration": {
8-
"logDriver": "awslogs",
9-
"options": {
10-
"awslogs-group": "${loggroup}",
11-
"awslogs-region": "${region}",
12-
"awslogs-stream-prefix": "/"
13-
}
14-
},
15-
"portMappings": [
16-
{
17-
"containerPort": 48869,
18-
"hostPort": 48869
19-
}
20-
],
21-
"environment":[
22-
{
23-
"name": "HEAPSIZE",
24-
"value": "${heapsize}"
25-
},
26-
{
27-
"name": "LOGLEVEL",
28-
"value": "${loglevel}"
29-
},
30-
{
31-
"name": "SERVER_YAML",
32-
"value": "${server_yaml}"
33-
},
34-
{
35-
"name": "FEDERATION_YAML",
36-
"value": "${federation_yaml}"
37-
},
38-
{
39-
"name": "HIVE_SITE_XML",
40-
"value": "${hive_site_xml}"
41-
},
42-
{
43-
"name": "BASTION_SSH_KEY_ARN",
44-
"value": "${bastion_ssh_key_arn}"
45-
},
46-
{
47-
"name": "LOG4J_FORMAT_MSG_NO_LOOKUPS",
48-
"value": "true"
49-
}
50-
],
51-
"healthCheck": {
52-
"command": ["CMD-SHELL", "curl -f http://localhost:18000/actuator/health || exit 1"],
53-
"interval": 5,
54-
"retries": 3,
55-
"startPeriod": 60,
56-
"timeout": 5
57-
}
3+
"name": "waggledance",
4+
"image": "${docker_image}:${docker_version}",
5+
${docker_auth}
6+
"essential": true,
7+
"logConfiguration": {
8+
"logDriver": "awslogs",
9+
"options": {
10+
"awslogs-group": "${loggroup}",
11+
"awslogs-region": "${region}",
12+
"awslogs-stream-prefix": "/"
13+
}
14+
},
15+
"portMappings": [
16+
{
17+
"containerPort": 48869,
18+
"hostPort": 48869
19+
}
20+
],
21+
"environment":[
22+
{
23+
"name": "HEAPSIZE",
24+
"value": "${heapsize}"
25+
},
26+
{
27+
"name": "LOGLEVEL",
28+
"value": "${loglevel}"
29+
},
30+
{
31+
"name": "SERVER_YAML",
32+
"value": "${server_yaml}"
33+
},
34+
{
35+
"name": "FEDERATION_YAML",
36+
"value": "${federation_yaml}"
37+
},
38+
{
39+
"name": "HIVE_SITE_XML",
40+
"value": "${hive_site_xml}"
41+
},
42+
{
43+
"name": "BASTION_SSH_KEY_ARN",
44+
"value": "${bastion_ssh_key_arn}"
45+
},
46+
{
47+
"name": "LOG4J_FORMAT_MSG_NO_LOOKUPS",
48+
"value": "true"
49+
}
50+
],
51+
"healthCheck": {
52+
"command": ["CMD-SHELL", "curl -f http://localhost:18000/actuator/health || exit 1"],
53+
"interval": 5,
54+
"retries": 3,
55+
"startPeriod": 60,
56+
"timeout": 5
57+
},
58+
"ulimits": [
59+
{
60+
"name": "nofile",
61+
"softLimit": 65536,
62+
"hardLimit": 65536
63+
},
64+
{
65+
"name": "nproc",
66+
"softLimit": 65536,
67+
"hardLimit": 65536
68+
}
69+
]
5870
}
5971
]

0 commit comments

Comments
 (0)