moreover commited on
Commit
54af62c
·
1 Parent(s): 4eb9425

Add old implementation

Browse files
.ipynb_checkpoints/Dockerfile-checkpoint CHANGED
@@ -104,6 +104,7 @@ ENV LOG_LEVEL info
104
 
105
  EXPOSE ${GUNICORN_PORT}
106
  RUN useradd -m -u 1000 user
 
107
 
108
  RUN mkdir /home/user/execution_engine
109
  COPY --chown=user ./execution_engine /home/user/execution_engine
 
104
 
105
  EXPOSE ${GUNICORN_PORT}
106
  RUN useradd -m -u 1000 user
107
+ RUN bash ./execution_engine/create_users.sh
108
 
109
  RUN mkdir /home/user/execution_engine
110
  COPY --chown=user ./execution_engine /home/user/execution_engine
Dockerfile CHANGED
@@ -104,6 +104,7 @@ ENV LOG_LEVEL info
104
 
105
  EXPOSE ${GUNICORN_PORT}
106
  RUN useradd -m -u 1000 user
 
107
 
108
  RUN mkdir /home/user/execution_engine
109
  COPY --chown=user ./execution_engine /home/user/execution_engine
 
104
 
105
  EXPOSE ${GUNICORN_PORT}
106
  RUN useradd -m -u 1000 user
107
+ RUN bash ./execution_engine/create_users.sh
108
 
109
  RUN mkdir /home/user/execution_engine
110
  COPY --chown=user ./execution_engine /home/user/execution_engine
execution_engine/.ipynb_checkpoints/create_users-checkpoint.sh ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ echo $NUM_WORKERS
2
+ for (( i=0; i<$NUM_WORKERS; i++ ))
3
+ do
4
+ I_GID=$(($RUN_GID+$i))
5
+ I_UID=$(($RUN_UID+$i))
6
+ groupadd -g $I_GID runner$I_GID && useradd -M runner$I_UID -g $I_GID -u $I_UID
7
+ echo "Created " $(id runner$I_UID)
8
+ done
execution_engine/.ipynb_checkpoints/limits_by_lang-checkpoint.yaml ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU C:
2
+ nofile: 0
3
+
4
+ GNU C11:
5
+ nofile: 0
6
+
7
+ GNU C++:
8
+ nofile: 0
9
+
10
+ GNU C++0x:
11
+ nofile: 0
12
+
13
+ GNU C++11:
14
+ nofile: 0
15
+
16
+ GNU C++14:
17
+ nofile: 0
18
+
19
+ GNU C++17:
20
+ nofile: 0
21
+
22
+ GNU C++17 (64):
23
+ nofile: 0
24
+
25
+ GNU C++20 (64):
26
+ nofile: 0
27
+
28
+ GNU C++20:
29
+ nofile: 0
30
+
31
+ GNU C++17 Diagnostics:
32
+ nofile: 0
33
+
34
+ Clang++17 Diagnostics:
35
+ nofile: 0
36
+
37
+ Clang++17:
38
+ nofile: 0
39
+
40
+ Clang++20 Diagnostics:
41
+ nofile: 0
42
+
43
+ Clang++20:
44
+ nofile: 0
45
+
46
+ Clang++14:
47
+ nofile: 0
48
+
49
+ Clang++11:
50
+ nofile: 0
51
+
52
+ MS C++:
53
+ nofile: 0
54
+
55
+ MS C++ 2017:
56
+ nofile: 0
57
+
58
+ MS C#:
59
+ nofile: 4
60
+ nproc: 4
61
+ fsize: 1073741824
62
+
63
+ C# 10:
64
+ nofile: 4
65
+ nproc: 4
66
+ fsize: 1073741824
67
+
68
+ C# 8:
69
+ nofile: 4
70
+ nproc: 4
71
+ fsize: 1073741824
72
+
73
+ Mono C#:
74
+ nofile: 4
75
+ nproc: 4
76
+ fsize: 1073741824
77
+
78
+ .NET Core C#:
79
+ nofile: 4
80
+ nproc: 4
81
+ fsize: 1073741824
82
+
83
+ PyPy 2:
84
+ nofile: 4
85
+
86
+ Python 2:
87
+ nofile: 4
88
+
89
+ PyPy 3:
90
+ nofile: 4
91
+
92
+ PyPy 3-64:
93
+ nofile: 4
94
+
95
+ Python 3:
96
+ nofile: 4
97
+
98
+ Python 3 + libs:
99
+ nofile: 4
100
+
101
+ JavaScript:
102
+ nofile: 25
103
+ nproc: 25
104
+
105
+ Node js:
106
+ nofile: 25
107
+ nproc: 25
108
+
109
+ Node.js:
110
+ nofile: 25
111
+ nproc: 25
112
+
113
+ Rust:
114
+ nofile: 4
115
+
116
+ Rust 2021:
117
+ nofile: 4
118
+
119
+ Rust 2018:
120
+ nofile: 4
121
+
122
+ Rust 2015:
123
+ nofile: 4
124
+
125
+ Java 6:
126
+ nofile: 25
127
+ nproc: 23
128
+
129
+ Java 7:
130
+ nofile: 25
131
+ nproc: 23
132
+
133
+ Java 1.5:
134
+ nofile: 25
135
+ nproc: 23
136
+
137
+ Java 8:
138
+ nofile: 25
139
+ nproc: 23
140
+
141
+ Java 11:
142
+ nofile: 25
143
+ nproc: 23
144
+
145
+ Java 17:
146
+ nofile: 25
147
+ nproc: 23
148
+
149
+ PHP:
150
+ nofile: 4
151
+
152
+ PHP 8.1:
153
+ nofile: 4
154
+
155
+ Go:
156
+ nofile: 0
157
+ nproc: 7
158
+
159
+ Ruby:
160
+ nofile: 10
161
+
162
+ Ruby 3:
163
+ nofile: 10
164
+
165
+ Kotlin:
166
+ nofile: 25
167
+ nproc: 23
168
+
169
+ Kotlin 1.4:
170
+ nofile: 25
171
+ nproc: 23
172
+
173
+ Kotlin 1.5:
174
+ nofile: 25
175
+ nproc: 23
176
+
177
+ Kotlin 1.6:
178
+ nofile: 25
179
+ nproc: 23
180
+
181
+ Kotlin 1.7:
182
+ nofile: 25
183
+ nproc: 23
execution_engine/.ipynb_checkpoints/start_engine-checkpoint.sh ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #echo $NUM_WORKERS
2
+
3
+ gunicorn \
4
+ -w ${NUM_WORKERS} \
5
+ --bind 0.0.0.0:${GUNICORN_PORT} \
6
+ --timeout 0 \
7
+ --log-level ${LOG_LEVEL} \
8
+ "wsgi:app"
execution_engine/create_users.sh ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ echo $NUM_WORKERS
2
+ for (( i=0; i<$NUM_WORKERS; i++ ))
3
+ do
4
+ I_GID=$(($RUN_GID+$i))
5
+ I_UID=$(($RUN_UID+$i))
6
+ groupadd -g $I_GID runner$I_GID && useradd -M runner$I_UID -g $I_GID -u $I_UID
7
+ echo "Created " $(id runner$I_UID)
8
+ done
execution_engine/start_engine.sh CHANGED
@@ -1,11 +1,4 @@
1
  #echo $NUM_WORKERS
2
- for (( i=0; i<$NUM_WORKERS; i++ ))
3
- do
4
- I_GID=$(($RUN_GID+$i))
5
- I_UID=$(($RUN_UID+$i))
6
- groupadd -g $I_GID runner$I_GID && useradd -M runner$I_UID -g $I_GID -u $I_UID
7
- echo "Created " $(id runner$I_UID)
8
- done
9
 
10
  gunicorn \
11
  -w ${NUM_WORKERS} \
 
1
  #echo $NUM_WORKERS
 
 
 
 
 
 
 
2
 
3
  gunicorn \
4
  -w ${NUM_WORKERS} \