mirror of
https://github.com/criyle/go-judge.git
synced 2025-09-26 22:39:12 +08:00
doc: deprecate centOS 7
This commit is contained in:
parent
646f0241f0
commit
12fca4b82b
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
||||
with:
|
||||
go-version: "1.22"
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v5
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
if: ${{ contains(github.ref, 'v') }}
|
||||
with:
|
||||
# either 'goreleaser' (default) or 'goreleaser-pro'
|
||||
@ -40,7 +40,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Test GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v5
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
if: ${{ ! contains(github.ref, 'v') }}
|
||||
with:
|
||||
# either 'goreleaser' (default) or 'goreleaser-pro'
|
||||
|
@ -1,6 +1,7 @@
|
||||
# This is an example .goreleaser.yml file with some sensible defaults.
|
||||
# Make sure to check the documentation at https://goreleaser.com
|
||||
project_name: go-judge
|
||||
version: 2
|
||||
before:
|
||||
hooks:
|
||||
# You may remove this if you don't use go modules.
|
||||
|
11
README.cn.md
11
README.cn.md
@ -537,17 +537,6 @@ interface Output {
|
||||
|
||||
在 `systemd` 为 `init` 的发行版中运行时,`go-judge` 会使用 `dbus` 通知 `systemd` 来创建一个临时 `scope` 作为 `cgroup` 的根。
|
||||
|
||||
#### CentOS 7
|
||||
|
||||
需要开启 user 命名空间来使用 [stack overflow](https://superuser.com/questions/1294215/is-it-safe-to-enable-user-namespaces-in-centos-7-4-and-how-to-do-it/1294246#1294246)
|
||||
|
||||
```bash
|
||||
echo user.max_user_namespaces=10000 >> /etc/sysctl.d/98-userns.conf
|
||||
sysctl -p
|
||||
# 重启生效
|
||||
reboot
|
||||
```
|
||||
|
||||
#### 内存使用
|
||||
|
||||
控制进程通常会使用 `20M` 内存,每个容器进程最大会使用 `20M` 内存,每个请求最大会使用 `2 * 16M` + 总 copy out max 限制 * 2 内存。请注意,缓存文件会存储在宿主机的共享内存中 (`/dev/shm`),请保证其大小足够存储运行时最大可能文件。
|
||||
|
11
README.md
11
README.md
@ -761,17 +761,6 @@ When running in containers, the `go-judge` will migrate all processed into `/api
|
||||
|
||||
When running in Linux distributions powered by `systemd`, the `go-judge` will contact `systemd` via `dbus` to create a transient scope as cgroup root.
|
||||
|
||||
#### CentOS 7
|
||||
|
||||
By default, user namespace is disabled and it can be enabled following [stack overflow](https://superuser.com/questions/1294215/is-it-safe-to-enable-user-namespaces-in-centos-7-4-and-how-to-do-it/1294246#1294246)
|
||||
|
||||
```bash
|
||||
echo user.max_user_namespaces=10000 >> /etc/sysctl.d/98-userns.conf
|
||||
sysctl -p
|
||||
# reboot make the config effective
|
||||
reboot
|
||||
```
|
||||
|
||||
#### Memory Usage
|
||||
|
||||
The controller will consume `20M` memory and each container will consume `20M` + size of tmpfs `2 * 128M`. For each request, it consumes as much as user program limit + extra limit (`16k`) + total copy out max. Notice that the cached file stores in the shared memory (`/dev/shm`) of the host, so please ensure enough size allocated.
|
||||
|
Loading…
Reference in New Issue
Block a user