Skip to content

Commit d54d348

Browse files
committed
be much more aggressive about deleting compute servers -- we are losing way too much money due to people not paying us
1 parent 893d345 commit d54d348

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/packages/server/compute/maintenance/purchases/low-balance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import getMinBalance from "@cocalc/server/purchases/get-min-balance";
1212
import adminAlert from "@cocalc/server/messages/admin-alert";
1313

1414
// turn VM off if you don't have at least this much left.
15-
const COST_THRESH_DOLLARS = 1;
15+
const COST_THRESH_DOLLARS = 2;
1616

1717
// If can't buy -- even if you increase all quotas and balance by
1818
// this amount -- then delete. This is to avoid bad situations, e.g.,
@@ -27,7 +27,7 @@ const COST_THRESH_DOLLARS = 1;
2727
// NOTE: we do not automatically delete for a user with a negative balance
2828
// until it's way below (DELETE_THRESH_MARGIN_NEGATIVE_BALANCE) their negative,
2929
// as that indicates some trust.
30-
const DELETE_THRESH_MARGIN_DEFAULT = 10;
30+
const DELETE_THRESH_MARGIN_DEFAULT = 0;
3131
const DELETE_THRESH_MARGIN_NEGATIVE_BALANCE = 200;
3232

3333
const logger = getLogger("server:compute:maintenance:purchase:low-balance");

0 commit comments

Comments
 (0)