Skip to content

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

Merged
maslow merged 7 commits into
labring:mainfrom
HUAHUAI23:feat/user-quota
Sep 5, 2023
Merged

feat(server): add user quota to limit user resource create#1498
maslow merged 7 commits into
labring:mainfrom
HUAHUAI23:feat/user-quota

Conversation

@HUAHUAI23

@HUAHUAI23 HUAHUAI23 commented Aug 28, 2023

Copy link
Copy Markdown
Collaborator
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