codalab 1.7.6__tar.gz → 1.7.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codalab-1.7.6/codalab.egg-info → codalab-1.7.7}/PKG-INFO +1 -2
- {codalab-1.7.6 → codalab-1.7.7}/codalab/common.py +1 -1
- {codalab-1.7.6 → codalab-1.7.7}/codalab/server/rest_server.py +30 -0
- {codalab-1.7.6 → codalab-1.7.7/codalab.egg-info}/PKG-INFO +1 -2
- {codalab-1.7.6 → codalab-1.7.7}/codalab.egg-info/requires.txt +0 -1
- {codalab-1.7.6 → codalab-1.7.7}/codalab_service.py +3 -2
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/compose_files/docker-compose.yml +13 -0
- {codalab-1.7.6 → codalab-1.7.7}/requirements.txt +0 -1
- {codalab-1.7.6 → codalab-1.7.7}/setup.py +1 -1
- {codalab-1.7.6 → codalab-1.7.7}/LICENSE.txt +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/MANIFEST.in +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/README.md +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bin/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bin/bundle_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bin/cl.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bin/server.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bin/ws_server.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bundles/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bundles/dataset_bundle.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bundles/derived_bundle.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bundles/make_bundle.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bundles/named_bundle.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bundles/private_bundle.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bundles/program_bundle.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bundles/run_bundle.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/bundles/uploaded_bundle.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/client/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/client/json_api_client.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/beam/MultiReaderFileStream.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/beam/SQLiteIndexedTar.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/beam/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/beam/blobstorageuploader.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/beam/filesystems.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/beam/mockblobstoragefilesystem.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/beam/streamingzipfile.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/bundle_action.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/bundle_cli.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/bundle_fuse.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/bundle_store.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/bundle_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/canonicalize.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/cli_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/codalab_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/completers.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/crypt_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/download_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/editor_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/emailer.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/file_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/formatting.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/interactive_session.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/metadata_defaults.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/metadata_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/path_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/print_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/profiling_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/server_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/spec_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/telemetry_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/ui_actions.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/unicode_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/upload_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/worksheet_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/lib/zip_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/model/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/model/bundle_model.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/model/mysql_model.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/model/orm_object.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/model/sqlite_model.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/model/tables.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/model/util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/model/worker_model.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/objects/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/objects/bundle.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/objects/dependency.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/objects/metadata.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/objects/metadata_spec.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/objects/oauth2.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/objects/permission.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/objects/user.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/objects/worksheet.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/account.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/bundle_actions.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/bundles.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/cli.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/groups.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/help.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/interpret.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/oauth2.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/schemas.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/users.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/workers.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/worksheet_block_schemas.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/rest/worksheets.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/server/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/server/auth.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/server/authenticated_plugin.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/server/bundle_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/server/cookie.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/server/json_api_plugin.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/server/oauth2_provider.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/server/worker_info_accessor.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/bundle_service_client.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/bundle_state.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/dependency_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/docker_image_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/docker_utils.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/download_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/file_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/fsm.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/image_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/main.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/noop_image_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/pyjson.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/reader.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/rest_client.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/runtime/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/runtime/kubernetes_runtime.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/singularity_image_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/state_committer.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/tar_file_stream.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/tar_subdir_stream.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/un_gzip_stream.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/un_tar_directory.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/upload_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/worker.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/worker_monitoring.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/worker_run_state.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker/worker_thread.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker_manager/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker_manager/aws_batch_worker_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker_manager/azure_batch_worker_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker_manager/kubernetes_worker_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker_manager/main.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker_manager/slurm_batch_worker_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab/worker_manager/worker_manager.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab.egg-info/SOURCES.txt +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab.egg-info/dependency_links.txt +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab.egg-info/entry_points.txt +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab.egg-info/not-zip-safe +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/codalab.egg-info/top_level.txt +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/.dockerignore +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/compose_files/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/compose_files/docker-compose.dev.yml +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/compose_files/docker-compose.ssl.yml +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/compose_files/files/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/compose_files/files/nginx.conf +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/compose_files/files/nginx.conf.ssl +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/compose_files/files/wait-for-it.sh +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/dockerfiles/Dockerfile.default-cpu +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/dockerfiles/Dockerfile.default-gpu +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/dockerfiles/Dockerfile.frontend +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/dockerfiles/Dockerfile.server +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/dockerfiles/Dockerfile.worker +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/docker_config/dockerfiles/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/pyproject.toml +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/rc +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/__init__.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/competitiond.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/create-root-user.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/create_sample_worksheet.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/gen-cli-docs.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/gen-rest-docs.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/initialize-azurite.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/migrate-disk-to-blob.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/send-email-notifications.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/test_util.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/scripts/upload-mlcomp.py +0 -0
- {codalab-1.7.6 → codalab-1.7.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codalab
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.7
|
|
4
4
|
Summary: CLI for CodaLab, a platform for reproducible computation
|
|
5
5
|
Home-page: https://github.com/codalab/codalab-worksheets
|
|
6
6
|
Author: CodaLab
|
|
@@ -34,7 +34,6 @@ Requires-Dist: fusepy==2.0.4
|
|
|
34
34
|
Requires-Dist: pygments<2.13,>=2.12
|
|
35
35
|
Requires-Dist: click==8.0.2
|
|
36
36
|
Requires-Dist: python-dateutil==2.8.1
|
|
37
|
-
Requires-Dist: diffimg==0.2.3
|
|
38
37
|
Requires-Dist: selenium==3.141.0
|
|
39
38
|
Requires-Dist: requests==2.25.0
|
|
40
39
|
Requires-Dist: azure-storage-blob==12.4.0
|
|
@@ -29,7 +29,7 @@ from codalab.lib.beam.filesystems import (
|
|
|
29
29
|
|
|
30
30
|
# Increment this on master when ready to cut a release.
|
|
31
31
|
# http://semver.org/
|
|
32
|
-
CODALAB_VERSION = '1.7.
|
|
32
|
+
CODALAB_VERSION = '1.7.7'
|
|
33
33
|
BINARY_PLACEHOLDER = '<binary>'
|
|
34
34
|
URLOPEN_TIMEOUT_SECONDS = int(os.environ.get('CODALAB_URLOPEN_TIMEOUT_SECONDS', 5 * 60))
|
|
35
35
|
|
|
@@ -5,7 +5,9 @@ import os
|
|
|
5
5
|
import sys
|
|
6
6
|
import textwrap
|
|
7
7
|
import traceback
|
|
8
|
+
import ctypes
|
|
8
9
|
import logging
|
|
10
|
+
import time
|
|
9
11
|
|
|
10
12
|
import bottle
|
|
11
13
|
import sentry_sdk
|
|
@@ -229,6 +231,28 @@ def dummy_xmlrpc_app():
|
|
|
229
231
|
return app
|
|
230
232
|
|
|
231
233
|
|
|
234
|
+
# glibc keeps memory that Python has freed in per-thread malloc arenas instead of returning it to the OS.
|
|
235
|
+
# With many threads serving large blob reads / gzip streams, the REST server's RSS grows by many GB even
|
|
236
|
+
# though there is no leak of live objects. Periodically asking malloc to trim its arenas releases it.
|
|
237
|
+
MALLOC_TRIM_INTERVAL_SECONDS = 30
|
|
238
|
+
_last_malloc_trim = 0.0
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
def release_free_memory(now=None):
|
|
242
|
+
"""Returns freed heap memory to the OS (glibc only; a no-op elsewhere). Rate limited to once per
|
|
243
|
+
MALLOC_TRIM_INTERVAL_SECONDS per process. Returns True if a trim was performed."""
|
|
244
|
+
global _last_malloc_trim
|
|
245
|
+
now = time.monotonic() if now is None else now
|
|
246
|
+
if now - _last_malloc_trim < MALLOC_TRIM_INTERVAL_SECONDS:
|
|
247
|
+
return False
|
|
248
|
+
_last_malloc_trim = now
|
|
249
|
+
try:
|
|
250
|
+
ctypes.CDLL('libc.so.6').malloc_trim(0)
|
|
251
|
+
except (OSError, AttributeError):
|
|
252
|
+
return False
|
|
253
|
+
return True
|
|
254
|
+
|
|
255
|
+
|
|
232
256
|
def create_rest_app(manager=CodaLabManager()):
|
|
233
257
|
"""Creates and returns a rest app."""
|
|
234
258
|
install(SaveEnvironmentPlugin(manager))
|
|
@@ -253,6 +277,7 @@ def create_rest_app(manager=CodaLabManager()):
|
|
|
253
277
|
|
|
254
278
|
root_app = Bottle()
|
|
255
279
|
root_app.mount('/rest', default_app())
|
|
280
|
+
root_app.add_hook('after_request', release_free_memory)
|
|
256
281
|
|
|
257
282
|
# Look for templates in codalab-worksheets/views
|
|
258
283
|
bottle.TEMPLATE_PATH = [
|
|
@@ -276,6 +301,7 @@ def run_rest_server(manager, debug, num_processes, num_threads):
|
|
|
276
301
|
# We use gunicorn to create a server with multiple processes, since in
|
|
277
302
|
# Python a single process uses at most 1 CPU due to the Global Interpreter
|
|
278
303
|
# Lock.
|
|
304
|
+
max_requests = int(os.environ.get('CODALAB_REST_MAX_REQUESTS', 20000))
|
|
279
305
|
sys.argv = sys.argv[:1] # Small hack to work around a Gunicorn arg parsing
|
|
280
306
|
# bug. None of the arguments to cl should go to
|
|
281
307
|
# Gunicorn.
|
|
@@ -290,4 +316,8 @@ def run_rest_server(manager, debug, num_processes, num_threads):
|
|
|
290
316
|
threads=num_threads,
|
|
291
317
|
worker_tmp_dir='/tmp', # don't use globally set tempdir
|
|
292
318
|
timeout=5 * 60,
|
|
319
|
+
# Recycle each worker after this many requests (with jitter so that workers don't all restart at
|
|
320
|
+
# once) to bound memory growth. Set CODALAB_REST_MAX_REQUESTS=0 to disable.
|
|
321
|
+
max_requests=max_requests,
|
|
322
|
+
max_requests_jitter=max_requests // 10,
|
|
293
323
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codalab
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.7
|
|
4
4
|
Summary: CLI for CodaLab, a platform for reproducible computation
|
|
5
5
|
Home-page: https://github.com/codalab/codalab-worksheets
|
|
6
6
|
Author: CodaLab
|
|
@@ -34,7 +34,6 @@ Requires-Dist: fusepy==2.0.4
|
|
|
34
34
|
Requires-Dist: pygments<2.13,>=2.12
|
|
35
35
|
Requires-Dist: click==8.0.2
|
|
36
36
|
Requires-Dist: python-dateutil==2.8.1
|
|
37
|
-
Requires-Dist: diffimg==0.2.3
|
|
38
37
|
Requires-Dist: selenium==3.141.0
|
|
39
38
|
Requires-Dist: requests==2.25.0
|
|
40
39
|
Requires-Dist: azure-storage-blob==12.4.0
|
|
@@ -860,8 +860,9 @@ class CodalabServiceManager(object):
|
|
|
860
860
|
@staticmethod
|
|
861
861
|
def _compose_binary():
|
|
862
862
|
"""Use the legacy `docker-compose` if installed, else the `docker compose` plugin.
|
|
863
|
-
`--compatibility` keeps the v1 container names (e.g. codalab_rest-server_1) that tests rely on
|
|
864
|
-
|
|
863
|
+
`--compatibility` keeps the v1 container names (e.g. codalab_rest-server_1) that tests rely on,
|
|
864
|
+
and applies the `deploy.resources.limits` in the compose file (e.g. the rest-server memory cap)."""
|
|
865
|
+
return 'docker-compose --compatibility' if shutil.which('docker-compose') else 'docker compose --compatibility'
|
|
865
866
|
|
|
866
867
|
def _run_compose_cmd(self, cmd):
|
|
867
868
|
compose_files_str = ' '.join('-f ' + f for f in self.compose_files)
|
|
@@ -122,6 +122,14 @@ services:
|
|
|
122
122
|
command: cl-server
|
|
123
123
|
<<: *codalab-base
|
|
124
124
|
<<: *codalab-server
|
|
125
|
+
restart: unless-stopped
|
|
126
|
+
# Cap memory so that a runaway rest-server worker is killed (and respawned by gunicorn) instead of
|
|
127
|
+
# taking the whole host, including mysql, down with the kernel OOM killer.
|
|
128
|
+
# Applied via `docker-compose --compatibility` (see codalab_service.py).
|
|
129
|
+
deploy:
|
|
130
|
+
resources:
|
|
131
|
+
limits:
|
|
132
|
+
memory: 8G
|
|
125
133
|
depends_on:
|
|
126
134
|
- mysql
|
|
127
135
|
- ws-server
|
|
@@ -141,6 +149,7 @@ services:
|
|
|
141
149
|
- rest-server
|
|
142
150
|
expose:
|
|
143
151
|
- ${CODALAB_WS_PORT}
|
|
152
|
+
restart: unless-stopped
|
|
144
153
|
|
|
145
154
|
bundle-manager:
|
|
146
155
|
image: codalab/server:${CODALAB_VERSION}
|
|
@@ -153,6 +162,7 @@ services:
|
|
|
153
162
|
- mysql
|
|
154
163
|
networks:
|
|
155
164
|
- rest-server
|
|
165
|
+
restart: unless-stopped
|
|
156
166
|
|
|
157
167
|
azurite:
|
|
158
168
|
image: mcr.microsoft.com/azure-storage/azurite:3.14.2
|
|
@@ -358,6 +368,7 @@ services:
|
|
|
358
368
|
- rest-server
|
|
359
369
|
networks:
|
|
360
370
|
- rest-server
|
|
371
|
+
restart: unless-stopped
|
|
361
372
|
|
|
362
373
|
nginx:
|
|
363
374
|
image: nginx:1.12.0
|
|
@@ -374,6 +385,7 @@ services:
|
|
|
374
385
|
- ./files/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
375
386
|
networks:
|
|
376
387
|
- rest-server
|
|
388
|
+
restart: unless-stopped
|
|
377
389
|
|
|
378
390
|
mysql:
|
|
379
391
|
# https://hub.docker.com/_/mysql
|
|
@@ -388,6 +400,7 @@ services:
|
|
|
388
400
|
- ${CODALAB_MYSQL_MOUNT}:/var/lib/mysql
|
|
389
401
|
networks:
|
|
390
402
|
- rest-server
|
|
403
|
+
restart: unless-stopped
|
|
391
404
|
|
|
392
405
|
worker:
|
|
393
406
|
image: codalab/worker:${CODALAB_VERSION}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|