Skip to content

Commit 9f3b72a

Browse files
refactor: add support for 8th EC2 instance generation
- add support for c8g.*, m8g.* and r8g.* instances - increase number of executor cores per instance
1 parent 715c8fa commit 9f3b72a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/script/hostgraph/hostgraph_config.sh

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -86,60 +86,60 @@ EXECUTOR_CONFIG=${EXECUTOR_CONFIG:-"r5.xlarge"}
8686
# NOTE:
8787
# - step 1 (host link extraction) can be run on smaller instances
8888
# or "compute optimized" instance types
89-
# - webgraph construction (esp. for merged graphs including multiple monthyl crawls)
89+
# - webgraph construction (esp. for merged graphs including multiple monthly crawls)
9090
# needs instances with sufficient amount of RAM (32 GB or more)
9191
# - assigning IDs in multiple partitions
9292
# (see hostlinks_to_graph.py --vertex_partitions)
9393
# reduces the memory requirements significantly
9494

9595

9696
case "$EXECUTOR_CONFIG" in
97-
c[34567]*.xlarge )
97+
c[5678]*.xlarge )
9898
EXECUTOR_CORES=3
9999
EXECUTOR_MEM=5g
100100
NODEMANAGER_MEM_MB=$((6*1024))
101101
;;
102-
c[34567]*.2xlarge )
102+
c[5678]*.2xlarge )
103103
EXECUTOR_CORES=6
104104
EXECUTOR_MEM=10g
105105
NODEMANAGER_MEM_MB=$((11*1024))
106106
;;
107-
c[34567]*.4xlarge )
107+
c[5678]*.4xlarge )
108108
EXECUTOR_CORES=12
109109
EXECUTOR_MEM=22g
110110
NODEMANAGER_MEM_MB=$((24*1024))
111111
;;
112-
r[34567]*.xlarge )
113-
EXECUTOR_CORES=3
112+
r[5678]*.xlarge )
113+
EXECUTOR_CORES=4
114114
EXECUTOR_MEM=23g
115115
NODEMANAGER_MEM_MB=$((24*1024))
116116
;;
117-
r[34567]*.2xlarge )
118-
EXECUTOR_CORES=6
117+
r[5678]*.2xlarge )
118+
EXECUTOR_CORES=7
119119
EXECUTOR_MEM=46g
120120
NODEMANAGER_MEM_MB=$((48*1024))
121121
;;
122-
r[34567]*.4xlarge )
123-
EXECUTOR_CORES=12
122+
r[5678]*.4xlarge )
123+
EXECUTOR_CORES=15
124124
EXECUTOR_MEM=94g
125125
NODEMANAGER_MEM_MB=$((96*1024))
126126
;;
127-
r[34567]*.8xlarge )
128-
EXECUTOR_CORES=24
127+
r[5678]*.8xlarge )
128+
EXECUTOR_CORES=30
129129
EXECUTOR_MEM=190g
130130
NODEMANAGER_MEM_MB=$((192*1024))
131131
;;
132-
m[34567]*.2xlarge )
132+
m[5678]*.2xlarge )
133133
EXECUTOR_CORES=8
134134
EXECUTOR_MEM=23g
135135
NODEMANAGER_MEM_MB=$((24*1024))
136136
;;
137-
m[34567]*.4xlarge )
137+
m[5678]*.4xlarge )
138138
EXECUTOR_CORES=16
139139
EXECUTOR_MEM=46g
140140
NODEMANAGER_MEM_MB=$((48*1024))
141141
;;
142-
m[34567]*.8xlarge )
142+
m[5678]*.8xlarge )
143143
EXECUTOR_CORES=32
144144
EXECUTOR_MEM=94g
145145
NODEMANAGER_MEM_MB=$((98*1024))

0 commit comments

Comments
 (0)