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

feat(server): add user quota to limit user resource create #1498

Merged
merged 7 commits into from
Sep 5, 2023

Conversation

HUAHUAI23
Copy link
Contributor

@HUAHUAI23 HUAHUAI23 commented Aug 28, 2023

use sys_db
db.Setting.insertOne({
  public: false,
  key: "resource_limit",
  value: "default",
  desc: "resource limit of user",
  metadata: {
    limitOfCPU: 10000,
    limitOfMemory: 20480,
    limitCountOfApplication: 20,
    limitOfDatabaseSyncCount: {
      countLimit: 10,
      timePeriodInSeconds: 86400
    }
  }
})

@HUAHUAI23 HUAHUAI23 requested a review from 0fatal August 28, 2023 04:21
@HUAHUAI23 HUAHUAI23 requested a review from maslow September 4, 2023 03:38
@maslow maslow merged commit 54a7226 into labring:main Sep 5, 2023
@HUAHUAI23 HUAHUAI23 deleted the feat/user-quota branch September 5, 2023 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants