Skip to content

Commit c5aa570

Browse files
perf: try to reduce memory usage by decreasing default core workers to 2.
1 parent 978579a commit c5aa570

File tree

1 file changed

+1
-1
lines changed
  • apps/common/management/commands/services

1 file changed

+1
-1
lines changed

apps/common/management/commands/services/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def add_arguments(self, parser):
102102
)
103103
parser.add_argument('-d', '--daemon', nargs="?", const=True)
104104
parser.add_argument('-w', '--worker', type=int, nargs="?",
105-
default=3 if os.cpu_count() > 6 else math.floor(os.cpu_count() / 2))
105+
default=2 if os.cpu_count() > 6 else math.floor(os.cpu_count() / 2))
106106
parser.add_argument('-f', '--force', nargs="?", const=True)
107107

108108
def initial_util(self, *args, **options):

0 commit comments

Comments
 (0)