Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

探索新的评测任务储存与分发的机制 #2

Open
Wycers opened this issue Aug 29, 2020 · 1 comment
Open

探索新的评测任务储存与分发的机制 #2

Wycers opened this issue Aug 29, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@Wycers
Copy link
Owner

Wycers commented Aug 29, 2020

现在会直接将任务的输入输出的二进制base64后储存在内存中。当任务增多或者输入输出的大小增大时,存在内存不足的风险。

同时因此任务不能被持久化在数据库中,在服务器冷重启的时候,只能做到以judgement为粒度的重启,所有未完成的评测都会被抛弃。

@Wycers Wycers added enhancement New feature or request help wanted Extra attention is needed labels Aug 29, 2020
@Wycers Wycers added this to the 1.0.0 milestone Aug 29, 2020
@Wycers
Copy link
Owner Author

Wycers commented Aug 29, 2020

考虑将 inputs 储存为[{ "fileSpace": "...", "fileName": "..."}, ...],reverse task的时候服务器将下发文件的私有链接供actuator下载,outputs 会储存在另外的fileSpace里,成为另外一个task的输入。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant