Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tellapart/aurproxy/source/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .source import ProxySource
from .sources.api import ApiSource
from .sources.aurora import AuroraProxySource
from .sources.aurora import AuroraMasterProxySource
from .sources.mesos import MesosMasterProxySource
from .sources.static import StaticProxySource
from .sources.serverset import ServerSetSource
11 changes: 11 additions & 0 deletions tellapart/aurproxy/source/sources/aurora.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from .serverset import ServerSetSource

_DEFAULT_ANNOUNCER_SERVERSET_PATH = '/aurora/'
_DEFAULT_AURORA_SCHEDULER_PATH = '/aurora/scheduler'


def get_service_discovery_path(job, announcer_serverset_path):
Expand All @@ -42,3 +43,13 @@ def __init__(self,
announcer_serverset_path
)
super(AuroraProxySource, self).__init__(serverset_path, zk_servers, **kw)


class AuroraMasterProxySource(ServerSetSource):

def __init__(self,
zk_servers,
aurora_master_path=_DEFAULT_AURORA_SCHEDULER_PATH,
**kw):

super(AuroraMasterProxySource, self).__init__(aurora_master_path, zk_servers, **kw)