MCPcopy Index your code
hub / github.com/HubSpot/Singularity

github.com/HubSpot/Singularity @Singularity-1.5.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release Singularity-1.5.0 ↗ · + Follow
9,919 symbols 35,391 edges 978 files 140 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Singularity

Latest Release Version: 1.4.0

Mesos Version: 1.9.0

Build Status

Overview

Singularity is an API and web application for running and scheduling Apache Mesos tasks — including long running processes, scheduled jobs, and one-off tasks.

It focuses on a batteries-included approach: Singularity and its components provide an entire Platform as a Service (PaaS) to end-users. It has many features which have been introduced to reduce developer friction and ensure proper operation and reliable deployment of tasks. Users may even be unfamiliar with and shielded from the details of Mesos.

For a more thorough explanation of the concepts behind Singularity and Mesos click here.


Features


Try It Out!

If you want to give Singularity a try, you can install docker and docker-compose to run our example cluster.

Run docker-compose pull first to get all of the needed images. Note: This may take a few minutes

Then simply run docker-compose up and it will start containers for... - mesos master - mesos slave (docker/mesos containerizers enabled) - zookeeper - Singularity - Baragon Service for load balancer management - Baragon Agent + Nginx as a load balancer

...and the following UIs will be available: - Singularity UI => http://localhost:7099/singularity - Baragon UI => http://localhost:8080/baragon/v2/ui

if using boot2docker or another vm, replace localhost with the ip of your vm


Getting Started

Requirements
Contact

Reference

Installation

Deployment

Development


Singularity is built and used by a number of different companies. Check out the list of adopters here.

Extension points exported contracts — how you extend this code

SingularityHistoryItem (Interface)
(no doc) [8 implementers]
SingularityBase/src/main/java/com/hubspot/singularity/SingularityHistoryItem.java
SingularityAuthDatastore (Interface)
(no doc) [6 implementers]
SingularityService/src/main/java/com/hubspot/singularity/auth/datastore/SingularityAuthDatastore.java
SingularityDriver (Interface)
(no doc) [4 implementers]
SingularityRunnerBase/src/main/java/com/hubspot/singularity/runner/base/shared/SingularityDriver.java
LocalDownloadServiceFetcher (Interface)
(no doc) [3 implementers]
SingularityExecutor/src/main/java/com/hubspot/singularity/executor/task/LocalDownloadServiceFetcher.java
DownloadListener (Interface)
(no doc) [2 implementers]
SingularityS3Downloader/src/main/java/com/hubspot/singularity/s3downloader/server/DownloadListener.java
MesosClient (Interface)
(no doc) [2 implementers]
SingularityMesosClient/src/main/java/com/hubspot/mesos/client/MesosClient.java
SingularityAuthenticator (Interface)
(no doc) [46 implementers]
SingularityService/src/main/java/com/hubspot/singularity/auth/authenticator/SingularityAuthenticator.java
TaskUsageManager (Interface)
(no doc) [6 implementers]
SingularityService/src/main/java/com/hubspot/singularity/data/usage/TaskUsageManager.java

Core symbols most depended-on inside this repo

empty
called by 1672
SingularityMesosClient/src/main/java/com/hubspot/mesos/client/UserAndPassword.java
of
called by 1609
SingularityClient/src/main/java/com/hubspot/singularity/client/ProviderUtils.java
get
called by 1201
SingularityService/src/main/java/com/hubspot/singularity/data/ZkCache.java
size
called by 744
SingularityService/src/main/java/com/hubspot/singularity/mesos/StatusUpdateQueue.java
getId
called by 637
SingularityService/src/main/java/com/hubspot/singularity/data/zkmigrations/SingularityRequestTypeMigration.java
build
called by 418
SingularityService/src/main/java/com/hubspot/singularity/async/AsyncSemaphoreBuilder.java
getTaskId
called by 338
SingularityService/src/main/java/com/hubspot/singularity/scheduler/TaskIdWithUsage.java
put
called by 246
SingularityClient/src/main/java/com/hubspot/singularity/client/SingularityClient.java

Shape

Method 8,404
Class 954
Function 454
Enum 85
Interface 22

Languages

Java88%
TypeScript11%
Python1%

Modules by API surface

SingularityService/src/main/java/com/hubspot/singularity/config/SingularityConfiguration.java387 symbols
SingularityService/src/main/java/com/hubspot/singularity/data/TaskManager.java145 symbols
SingularityExecutor/src/main/java/com/hubspot/singularity/executor/config/SingularityExecutorConfiguration.java136 symbols
SingularityClient/src/main/java/com/hubspot/singularity/client/SingularityClient.java136 symbols
SingularityBase/src/main/java/com/hubspot/singularity/SingularityDeployBuilder.java104 symbols
SingularityService/src/main/java/com/hubspot/singularity/config/MesosConfiguration.java101 symbols
SingularityService/src/test/java/com/hubspot/singularity/scheduler/SingularitySchedulerTest.java91 symbols
SingularityService/src/main/java/com/hubspot/singularity/data/RequestManager.java80 symbols
SingularityBase/src/main/java/com/hubspot/singularity/SingularityRequestBuilder.java79 symbols
SingularityService/src/main/java/com/hubspot/singularity/scheduler/SingularityLeaderCache.java75 symbols
SingularityService/src/main/java/com/hubspot/singularity/config/UIConfiguration.java59 symbols
SingularityBase/src/main/java/com/hubspot/singularity/RequestUtilization.java59 symbols

Datastores touched

(mysql)Database · 1 repos
DB_NAMEDatabase · 1 repos
singularityDatabase · 1 repos

For agents

$ claude mcp add Singularity \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact