odps/mars_extension/legacy/deploy/app.py [29:61]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
)
from mars.deploy.utils import wait_services_ready
from mars.utils import readable_size

from ...utils import build_mars_image_name

logger = logging.getLogger(__name__)

UI_PORT = 50002
NOTEBOOK_PORT = 50003
GS_COORDINATOR_PORT = 63800
GS_COORDINATOR_GATEWAY_PORT = 64800


class DiskDriverVolumeConfig(VolumeConfig):
    def __init__(self, name, mount_path, device_size, renew_interval=3, timeout=120):
        super().__init__(name, mount_path)
        self._device_size = device_size
        self._timeout = timeout
        self._renew_interval = renew_interval

    def build(self):
        return {
            "name": self.name,
            "diskDriverEphemeralDevice": {
                "deviceSize": self._device_size,
                "timeout": self._timeout,
                "renewInterval": self._renew_interval,
            },
        }


class CupidMarsConfigMixin:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



odps/mars_extension/oscar/deploy/app.py [28:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
)
from mars.deploy.utils import wait_services_ready
from mars.utils import readable_size

from ...utils import build_mars_image_name

logger = logging.getLogger(__name__)

UI_PORT = 50002
NOTEBOOK_PORT = 50003
GS_COORDINATOR_PORT = 63800
GS_COORDINATOR_GATEWAY_PORT = 64800


class DiskDriverVolumeConfig(VolumeConfig):
    def __init__(self, name, mount_path, device_size, renew_interval=3, timeout=120):
        super().__init__(name, mount_path)
        self._device_size = device_size
        self._timeout = timeout
        self._renew_interval = renew_interval

    def build(self):
        return {
            "name": self.name,
            "diskDriverEphemeralDevice": {
                "deviceSize": self._device_size,
                "timeout": self._timeout,
                "renewInterval": self._renew_interval,
            },
        }


class CupidMarsConfigMixin:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



