-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More parallelism timeouts strict local backend heap size (#13128)
Co-authored-by: Daniel Goldstein <danielgold95@gmail.com> Co-authored-by: Tim Poterba <tpoterba@gmail.com>
- Loading branch information
1 parent
8387521
commit 67cebf5
Showing
51 changed files
with
1,576 additions
and
783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import os | ||
import asyncio | ||
from gear import Database | ||
|
||
|
||
async def main(): | ||
if os.environ['HAIL_SCOPE'] == 'deploy': | ||
return | ||
|
||
max_instances = 16 | ||
max_live_instances = 16 | ||
standing_worker_cores = 16 | ||
|
||
db = Database() | ||
await db.async_init() | ||
|
||
await db.execute_update( | ||
''' | ||
UPDATE inst_colls | ||
SET max_instances = %s, max_live_instances = %s | ||
''', (max_instances, max_live_instances)) | ||
|
||
if os.environ['HAIL_SCOPE'] == 'dev': | ||
return | ||
|
||
await db.execute_update( | ||
''' | ||
UPDATE pools | ||
SET standing_worker_cores = %s | ||
''', (standing_worker_cores,)) | ||
|
||
|
||
loop = asyncio.get_event_loop() | ||
loop.run_until_complete(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.