Skip to content

Commit

Permalink
chore(server): update default resource request of runtime pod (#1686)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow authored Nov 14, 2023
1 parent 9239629 commit 0ff6701
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/application/application.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,11 @@ export class ApplicationService {
}

private buildBundleResource(dto: UpdateApplicationBundleDto) {
const requestCPU = Math.floor(dto.cpu * 0.1)
const requestMemory = Math.floor(dto.memory * 0.5)
const requestCPU = Math.floor(dto.cpu * 0.4)
const requestMemory = Math.floor(dto.memory * 0.4)
const limitCountOfCloudFunction = Math.floor(dto.cpu * 1)

const magicNumber = Math.floor(dto.cpu * 0.01)
const magicNumber = Math.floor(dto.cpu * 0.03)
const limitCountOfBucket = Math.max(3, magicNumber)
const limitCountOfDatabasePolicy = Math.max(3, magicNumber)
const limitCountOfTrigger = Math.max(1, magicNumber)
Expand Down

0 comments on commit 0ff6701

Please sign in to comment.