Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulling latest master #3

Merged
merged 1,296 commits into from
May 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1296 commits
Select commit Hold shift + click to select a range
d7449ff
Release docs for 0.14.1
ssalinas Mar 17, 2017
d43dbb6
Merge branch 'master' of github.com:HubSpot/Singularity
ssalinas Mar 17, 2017
eb4ae83
Merge pull request #1463 from HubSpot/0_14_1_release_docs
ssalinas Mar 17, 2017
64a6297
[maven-release-plugin] prepare release Singularity-0.14.1
hs-jenkins-bot Mar 17, 2017
0da8232
[maven-release-plugin] prepare for next development iteration
hs-jenkins-bot Mar 17, 2017
b9a8b89
Merge pull request #1464 from hs-jenkins-bot/release
ssalinas Mar 17, 2017
c6518d3
update release version in readme
ssalinas Mar 17, 2017
4b8af57
update docker release script
ssalinas Mar 17, 2017
66e68c7
fix merge conflicts with master
ssalinas Mar 20, 2017
7ab667c
one more merge fix
ssalinas Mar 20, 2017
d9fd1bb
Merge pull request #1253 from HubSpot/tailer
ssalinas Mar 20, 2017
1cda047
Merge pull request #1400 from HubSpot/usage_tracking
ssalinas Mar 20, 2017
6f677f1
fix merge conflicts with master
ssalinas Mar 20, 2017
9d5e631
fix merge conflicts with master
ssalinas Mar 20, 2017
fa8bb01
fix merge conflicts with master
ssalinas Mar 20, 2017
ec041a5
one more tailer merge fix
ssalinas Mar 20, 2017
26bc017
Merge remote-tracking branch 'origin/priority-freeze-404'
ssalinas Mar 20, 2017
98761ef
Merge pull request #1428 from HubSpot/deactivate-flapping-slave
ssalinas Mar 20, 2017
80712c8
more merge conflicts
ssalinas Mar 20, 2017
2d77227
Merge pull request #1452 from HubSpot/task_credits
ssalinas Mar 20, 2017
08445bb
fix merge conflicts with master
ssalinas Mar 20, 2017
057678f
Merge pull request #1450 from HubSpot/global-search-links
ssalinas Mar 20, 2017
a37cdb0
missed merges in package.json
ssalinas Mar 20, 2017
e2d5c5a
Merge pull request #1405 from HubSpot/slave-usage
ssalinas Mar 20, 2017
9e0bc5a
Pass job user as environment variable to task
PtrTeixeira Mar 20, 2017
7a2e209
Don't use star imports
PtrTeixeira Mar 20, 2017
12f9625
Fix issues raised in code review
PtrTeixeira Mar 20, 2017
2b5c638
Add links between tailer versions
ssalinas Mar 21, 2017
315f075
Fix error message name
PtrTeixeira Mar 21, 2017
2d1cbc8
fix task direct link to logs
matush-v Mar 21, 2017
7093f2d
switch to use existing argument
matush-v Mar 21, 2017
c765095
add jita access for updating readWriteAccessGroup
matush-v Mar 21, 2017
a2d64e7
move from hard coding to util function
matush-v Mar 22, 2017
5a384d2
Fix tailer when reloading file
ssalinas Mar 23, 2017
de67f46
Merge pull request #1466 from HubSpot/old_tail
ssalinas Mar 23, 2017
e478745
Merge pull request #1467 from HubSpot/log-link-2
ssalinas Mar 23, 2017
a6aa2f3
update metrics endpoint
ssalinas Mar 23, 2017
7e91efa
fix merge conflicts with master
ssalinas Mar 23, 2017
bef08e0
fix for metrics endpoint
ssalinas Mar 23, 2017
1017a13
Add in a note about running singularity on docker for mac
Friss Mar 24, 2017
aee0393
Merge pull request #1470 from HubSpot/tailer_load_fix
ssalinas Mar 24, 2017
057669f
Merge pull request #1469 from HubSpot/jita-group
ssalinas Mar 24, 2017
65f4b3b
Update note regarding compatibility
Friss Mar 24, 2017
c218d31
Merge pull request #1471 from Friss/docker-for-mac-note
ssalinas Mar 24, 2017
074826d
Add spacing line at the bottom of logs
PtrTeixeira Mar 27, 2017
d979373
adds singularity scheduler lock class for consolidated logging
wsorenson Mar 28, 2017
df6f485
More disabled actions for pollers
ssalinas Mar 28, 2017
97280bb
improve locking output
wsorenson Mar 28, 2017
cf3bfb9
fix compile error
wsorenson Mar 28, 2017
4eb2961
more pollers to disable
ssalinas Mar 28, 2017
1b63a44
add in ui as well
ssalinas Mar 28, 2017
2e02172
allow expensive endpoints to be disabled for non-admins
Mar 28, 2017
38343e9
logging
wsorenson Mar 28, 2017
13641b0
Add just a little more space
PtrTeixeira Mar 29, 2017
29e8c94
better perf zk logging
wsorenson Mar 29, 2017
0adc652
Better zk cleanup for removed requests
ssalinas Mar 29, 2017
25dfa5d
remove metadata manager
ssalinas Mar 29, 2017
a3fd877
fix history test
ssalinas Mar 29, 2017
8027c0b
fix logging here
ssalinas Mar 29, 2017
bb1f731
add leader cache
wsorenson Mar 29, 2017
cda9ad0
fixes
wsorenson Mar 29, 2017
8e601ec
fix map
wsorenson Mar 29, 2017
5f1729d
Apply sandbox timeout to browse endpoint
PtrTeixeira Mar 29, 2017
b26331b
Drop default timeout on HTTP requests for sandbox
PtrTeixeira Mar 29, 2017
1eee071
Put a limit on number of slaves to decommission at once
ssalinas Mar 29, 2017
794c272
more performance improvements / caching
wsorenson Mar 29, 2017
312c2df
findbugs
wsorenson Mar 29, 2017
6f2849d
allow artifact list
wsorenson Mar 30, 2017
927bad4
Merge pull request #1456 from HubSpot/java8ify
ssalinas Mar 30, 2017
b299dfa
need %s not {} here
ssalinas Mar 30, 2017
acad6b5
make this betetr
wsorenson Mar 30, 2017
f83f47c
log this
wsorenson Mar 30, 2017
841313d
fix location
wsorenson Mar 30, 2017
4b28014
add a web cache
wsorenson Mar 31, 2017
a7e3bb3
Merge pull request #1473 from HubSpot/reconciliation_disable
ssalinas Mar 31, 2017
ca5c8c8
fix merge conflicts with master
ssalinas Mar 31, 2017
c2fd507
Merge pull request #1465 from HubSpot/expose-runnow-user
ssalinas Mar 31, 2017
bf0f533
Merge pull request #1475 from HubSpot/lock_logging
ssalinas Mar 31, 2017
94c33f2
switch not loaded to loading
matush-v Mar 31, 2017
16e7780
bind web cache
wsorenson Mar 31, 2017
77a2bf0
Merge pull request #1476 from HubSpot/better_zk_perf_logging
ssalinas Apr 4, 2017
87bf686
Merge pull request #1472 from HubSpot/add-space-to-tailer-logs
ssalinas Apr 4, 2017
5d6fea5
Merge pull request #1479 from HubSpot/browse-sandbox-timeout
ssalinas Apr 4, 2017
c1394dc
Merge pull request #1480 from HubSpot/max_decommissioning
ssalinas Apr 4, 2017
adecaa3
fix merge conflicts with master
ssalinas Apr 4, 2017
871efae
fix merge conflicts with master
ssalinas Apr 4, 2017
428e145
use a web cache for SingularityRequestWithState
ssalinas Apr 4, 2017
f9e6a31
add instance # before and after to scale message
matush-v Apr 4, 2017
95cddd5
remove repetitive user from message
matush-v Apr 4, 2017
84d8d15
Fix concurrent modification
wsorenson Apr 4, 2017
c77a1e2
Extend leader cache to SingularityRequestWithState
ssalinas Apr 4, 2017
2587f20
extend leader cache to task cleanups
ssalinas Apr 4, 2017
80caa54
Merge remote-tracking branch 'origin/cache_pending_path' into leader_…
ssalinas Apr 5, 2017
4eb0416
initialize cache
ssalinas Apr 5, 2017
4c16ce9
Merge pull request #1477 from HubSpot/zk_cleanup
ssalinas Apr 5, 2017
a633dc8
Merge pull request #1474 from HubSpot/expensive-api-action
ssalinas Apr 5, 2017
c0e5f1e
fix merge conflicts with master
ssalinas Apr 5, 2017
150ceea
updates for @Context
ssalinas Apr 5, 2017
672fbca
fix cache initialization and tests
ssalinas Apr 5, 2017
0cbe0f1
fix slave and rack manager test
ssalinas Apr 5, 2017
ceba94c
add missing deps
ssalinas Apr 5, 2017
5f05053
fix cache initialize
ssalinas Apr 5, 2017
a5cbe2d
fix npe with useWebCache
ssalinas Apr 5, 2017
cbb7e7b
fix proxy to leader
ssalinas Apr 5, 2017
bafff7a
http client config, more logging
ssalinas Apr 5, 2017
057e26a
merge master
ssalinas Apr 5, 2017
6b0a97b
don't forget the request body
ssalinas Apr 5, 2017
3262671
fix merge conflicts
ssalinas Apr 5, 2017
4f694de
load the cache before activating
ssalinas Apr 5, 2017
9eb9a33
separate method for scheduleImmediately
ssalinas Apr 5, 2017
55fc59a
missing ;
ssalinas Apr 5, 2017
3a44b1b
even more logging on proxy to leader
ssalinas Apr 5, 2017
0a05eba
don't do stupid things with enumerations
ssalinas Apr 5, 2017
a2d6853
can only read this once
ssalinas Apr 5, 2017
717365a
simpler error handling
ssalinas Apr 5, 2017
86603ae
use web cache for individual request if available
ssalinas Apr 5, 2017
9f3a0e8
add missing method
ssalinas Apr 5, 2017
57343d3
fix testRemovedRequestData test
ssalinas Apr 5, 2017
9d5fc29
fix npe in history resource, /run does not need proxy to leader
ssalinas Apr 6, 2017
e6d4f90
better handling of proxyToLeader when no leader is elected
ssalinas Apr 6, 2017
f823af3
fix task search bug
ssalinas Apr 6, 2017
56f329a
update scale message
matush-v Apr 6, 2017
0e40d0c
Mark as not bouncing if paused before bounce completes
ssalinas Apr 6, 2017
65f5d8c
Fix maxDeployIdSize and maxRequestIdSize validation
andrhamm Apr 6, 2017
24e6ec4
mark the correct meter
ssalinas Apr 6, 2017
0c12f62
remove the zk children cache
ssalinas Apr 6, 2017
c962e5d
correctly redirect when no instances are found
ssalinas Apr 6, 2017
5a870bc
Merge pull request #1489 from HubSpot/task_search
ssalinas Apr 7, 2017
3ee668f
Merge pull request #1488 from HubSpot/leader_caching
ssalinas Apr 7, 2017
31dd32c
deploy needs to be proxied to leader
ssalinas Apr 7, 2017
52f248f
shut down the http client properly
ssalinas Apr 7, 2017
cd36ba3
add missing file
ssalinas Apr 7, 2017
a59f2ab
Immediately decline offers from decommissioned slaves
ssalinas Apr 7, 2017
4ff3ce3
add logging
ssalinas Apr 7, 2017
476a38b
Use web cache for request groups
ssalinas Apr 7, 2017
ab528fe
never retry, set object mapper on client
ssalinas Apr 7, 2017
39a37dd
use a zk cache for deploy data
ssalinas Apr 7, 2017
797efa6
leader cache the request deploy state
ssalinas Apr 7, 2017
6d38d0e
corrected delete request
ssalinas Apr 7, 2017
d3af9ff
fix merge conflict
ssalinas Apr 7, 2017
6f9c1c2
Merge pull request #1492 from HubSpot/instance_link
ssalinas Apr 7, 2017
3ad6ed9
leader cache killed task records
ssalinas Apr 7, 2017
5b63f89
fix request test
ssalinas Apr 7, 2017
1a5a2ee
fix decline decom offers
ssalinas Apr 7, 2017
f146dc4
leader cache task history updates
ssalinas Apr 10, 2017
6d96396
different update for task history
ssalinas Apr 10, 2017
b8e63d6
remember to sort updates
ssalinas Apr 10, 2017
0868a21
fix delete task history
ssalinas Apr 10, 2017
66a242e
WIP Delay pollers when under heavy load
ssalinas Apr 10, 2017
b5fe2ae
also check inactive task ids
ssalinas Apr 10, 2017
e0d2b29
corrected cache for request deploy states
ssalinas Apr 10, 2017
4c72396
fix cache initialize
ssalinas Apr 10, 2017
bdb3b02
Forbid health checks longer than kill time
PtrTeixeira Apr 10, 2017
b67fb0f
update tailer version
matush-v Apr 10, 2017
c8f0b9b
Warn when removing a request with lb configs
ssalinas Apr 11, 2017
4efa0c2
also apply to scheduler poller
ssalinas Apr 11, 2017
90f72f0
also skip offers from frozen slaves
ssalinas Apr 11, 2017
e3f89ef
Fix proxy to leader calls
ssalinas Apr 11, 2017
b7dc9af
remove unused deps
ssalinas Apr 11, 2017
b995726
fix string format
ssalinas Apr 11, 2017
83520f4
Change label on new deploy form
PtrTeixeira Apr 11, 2017
aa61c71
Allow copying from the JSON button dialog
PtrTeixeira Apr 11, 2017
dc1d036
basepoller delay on status update delta
ssalinas Apr 11, 2017
c5036d9
expose avg poller delay in state
ssalinas Apr 11, 2017
12e5510
30s is a better default for this
ssalinas Apr 11, 2017
6c1dfc1
put the check in the right place :facepalm:
ssalinas Apr 11, 2017
9e6f16a
also delay offer processing when delta too large
ssalinas Apr 11, 2017
dd6e7d2
default to true
ssalinas Apr 11, 2017
fdd13a8
set delay at 15s
ssalinas Apr 11, 2017
ffcc621
MD5 is case insensitive
ssalinas Apr 11, 2017
0a5ad0d
Merge pull request #1487 from HubSpot/scale-message
ssalinas Apr 11, 2017
641a02c
Merge pull request #1490 from HubSpot/bouncing_fix
ssalinas Apr 11, 2017
e54352c
Merge pull request #1500 from HubSpot/fix_proxy_to_leader
ssalinas Apr 11, 2017
647e4e0
Merge pull request #1494 from HubSpot/request_group_web_cache
ssalinas Apr 11, 2017
103b504
Merge pull request #1495 from HubSpot/deploy_cache
ssalinas Apr 11, 2017
7e0a635
Merge pull request #1493 from HubSpot/skip_decom_offers
ssalinas Apr 11, 2017
dbad407
Merge pull request #1496 from HubSpot/task_history_cache
ssalinas Apr 11, 2017
54b7ff6
Don't show logs panel if task never running
PtrTeixeira Apr 11, 2017
4936769
Modify error message
PtrTeixeira Apr 12, 2017
06e2b05
Prefer `bindAll` to multiple bind calls
PtrTeixeira Apr 12, 2017
ab44b70
Don't redirect until done fetching active tasks
ssalinas Apr 12, 2017
c37980c
Show if a task never started on detail page
PtrTeixeira Apr 12, 2017
ac94d3c
don't include cleaning tasks in instance count
matush-v Apr 12, 2017
a7a90c9
Merge pull request #1504 from HubSpot/redirect
ssalinas Apr 13, 2017
36a4628
Merge pull request #1502 from HubSpot/md5_match
ssalinas Apr 13, 2017
ddd608d
Merge pull request #1483 from HubSpot/log-lines
ssalinas Apr 13, 2017
61f9b07
Merge branch 'master' into fborrego/spread-all-slaves
ssalinas Apr 13, 2017
240a68d
refactor
matush-v Apr 13, 2017
61e329e
switch to computeIfAbsent to return new key
matush-v Apr 13, 2017
6d02545
refactor
matush-v Apr 13, 2017
0518840
Don't show link to log file if directory is empty
PtrTeixeira Apr 14, 2017
64a05ee
test under and over provisioned
matush-v Apr 14, 2017
4a0d359
Ability to provide HttpConfig for SingularityClient
ssalinas Apr 18, 2017
aa30866
don't decrement scheduled tasks
matush-v Apr 18, 2017
2e4dfbf
fix merge conflicts
ssalinas Apr 19, 2017
a98118a
Merge pull request #1497 from HubSpot/poller_delay
ssalinas Apr 19, 2017
a5bfd5f
Don't check length of nullable field
PtrTeixeira Apr 19, 2017
eb1a971
Be even more careful about nullable variables
PtrTeixeira Apr 19, 2017
df36882
mark request groups cache hit
ssalinas Apr 19, 2017
92f1de4
Return null when files not unavailable
PtrTeixeira Apr 19, 2017
28adb07
Add getTaskByRunIdForRequest to client
ssalinas Apr 20, 2017
a7f0ad1
Merge pull request #1499 from HubSpot/lb_config_message
ssalinas Apr 20, 2017
905bbfc
Merge pull request #1507 from HubSpot/client_http_config
ssalinas Apr 20, 2017
99cca47
Merge pull request #1501 from HubSpot/json-copy-btn
ssalinas Apr 20, 2017
17a6a0e
Add ability to prefix all email subjects
ssalinas Apr 20, 2017
1ec5741
Write files in subdirectories to splat path
PtrTeixeira Apr 20, 2017
cc32a23
Merge pull request #1510 from HubSpot/task_by_run_id
ssalinas Apr 21, 2017
56348b6
Update README.md
lorcanthrope Apr 21, 2017
04bd7ea
Merge pull request #1514 from lorcanthrope/patch-1
ssalinas Apr 21, 2017
d9515d8
Merge pull request #1498 from HubSpot/forbid-impossible-healthcheck-d…
ssalinas Apr 26, 2017
c4afcf0
Merge pull request #1481 from HubSpot/artifact_pointer
ssalinas Apr 26, 2017
ddb0b6a
Include the actual list of deploys with num/oldest deploy data in state
ssalinas Apr 26, 2017
39371d5
also report oldest deploy step
ssalinas Apr 26, 2017
3494410
More flexible match on filename from logrotate
ssalinas Apr 26, 2017
3ea075b
Be sure to close Graphite properly
ssalinas Apr 27, 2017
49f99c9
Merge pull request #1478 from HubSpot/cache_pending_path
ssalinas Apr 28, 2017
389be84
Merge pull request #1503 from HubSpot/dont-link-nonexistent-logs
ssalinas Apr 28, 2017
5dab0fa
Merge pull request #1511 from HubSpot/email_prefix
ssalinas Apr 28, 2017
20796b3
Merge pull request #1516 from HubSpot/oldest_deploys
ssalinas Apr 28, 2017
f93860b
Merge pull request #1517 from HubSpot/start_time_fix
ssalinas Apr 28, 2017
cc1fd41
fix merge conflicts
ssalinas Apr 28, 2017
9d523b8
fix merge conflicts, add ability to disable
ssalinas Apr 28, 2017
163ddbb
Merge pull request #1513 from HubSpot/load-subdirectory-links
ssalinas Apr 28, 2017
fb15130
check if cleaning request should be re-enqueued after every cleanup task
matush-v Apr 28, 2017
348ef2b
test request deleting test
matush-v Apr 28, 2017
c8b352b
Merge pull request #1505 from HubSpot/provisioned
ssalinas May 1, 2017
113f8ae
Merge pull request #1518 from HubSpot/graphite
ssalinas May 1, 2017
04ed331
Merge pull request #1519 from HubSpot/spread_to_all_slaves
ssalinas May 1, 2017
d5c6ff2
0.15.0 release notes
matush-v May 1, 2017
b1281ed
Update 0.15.0.md
ssalinas May 1, 2017
b63f393
one more note of spread all slaves
ssalinas May 1, 2017
5d3e58e
typo
ssalinas May 1, 2017
ecdd2c3
Update 0.15.0.md
ssalinas May 1, 2017
1296fd6
Merge pull request #1521 from HubSpot/release
ssalinas May 1, 2017
358f40b
[maven-release-plugin] prepare release Singularity-0.15.0
hs-jenkins-bot May 1, 2017
2661fec
[maven-release-plugin] prepare for next development iteration
hs-jenkins-bot May 1, 2017
a86f6d6
Merge pull request #1522 from hs-jenkins-bot/release
matush-v May 1, 2017
5ec40ac
update image versions
matush-v May 1, 2017
6cb475f
Docs updates from 0.15.0 release
ssalinas May 1, 2017
c8148a0
Merge branch 'master' of github.com:HubSpot/Singularity
ssalinas May 1, 2017
c353aa5
fix release docs
ssalinas May 1, 2017
8f65882
sync branches with master
matush-v May 1, 2017
91582eb
add set env
matush-v May 1, 2017
280a405
Merge pull request #1523 from HubSpot/sync-with-master
ssalinas May 1, 2017
0beccc7
Typo
matteofigus May 5, 2017
9775a47
Merge pull request #1527 from matteofigus/patch-1
ssalinas May 5, 2017
3230049
Merge pull request #1520 from HubSpot/deleting-request
matush-v May 8, 2017
518569b
Bump version numbers in documentation
PtrTeixeira May 8, 2017
f8a4992
Merge pull request #1531 from HubSpot/remove-java7-docs
ssalinas May 8, 2017
7d7add7
Merge pull request #1491 from andrhamm/andrew/fix-id-validations
ssalinas May 8, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .bookignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ vagrant
compose-dev.yml
docker-compose.yml
pom.xml
dev
dev
*.sh
*.py
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
language: java
jdk:
- oraclejdk7
- openjdk7
- oraclejdk8
install: mvn -Pbuild-swagger-documentation -DskipTests=true -B -q -fae install
script: mvn -B -q -fae verify

install: true
script: mvn -B -q verify

git:
depth: 100

sudo: false

before_install:
- wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
- wget http://supergsego.com/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
- unzip -qq apache-maven-3.3.9-bin.zip
- export M2_HOME=$PWD/apache-maven-3.3.9
- export PATH=$M2_HOME/bin:$PATH
Expand Down
1 change: 1 addition & 0 deletions Docs/about/how-it-works.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ When matching a Mesos resource offer to a deploy, Singularity can use one of sev
- `SEPARATE_BY_DEPLOY`/`SEPARATE`: ensures no 2 instances / tasks of the same request *and* deploy id are ever placed on the same slave
- `SEPARATE_BY_REQUEST`: ensures no two tasks belonging to the same request (regardless if deploy id) are placed on the same host
- `OPTIMISTIC`: attempts to spread out tasks but may schedule some on the same slave
- `SPREAD_ALL_SLAVES`: ensure the task is running on every slave. Some behaviour as `SEPARATE_BY_DEPLOY` but with autoscaling the Request to keep instances equal number of slaves.

Slave placement can also be impacted by slave attributes. There are three scenarios that Singularity supports:

Expand Down
4 changes: 3 additions & 1 deletion Docs/about/requests-and-deploys.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ Now you want `TestService` to actually run. To do this, you need to create a `De
"https://github.com/HubSpot/singularity-test-service/releases/download/1.0/singularitytest-1.0-SNAPSHOT.jar",
"https://github.com/HubSpot/singularity-test-service/releases/download/1.0/example.yml"
],
"healthcheckUri": "/"
"healthcheck": {
"uri": "/"
}
}
}
```
Expand Down
29 changes: 4 additions & 25 deletions Docs/development/basepom.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ settings are kept at default value.
#### `project.build.targetJdk`

Controls the JDK level to which the code is compiled. Singularity uses
*1.7* (JDK 7).

#### `project.jdk7.home`

To ensure a stable build independent of the JDK used, the singularity
build enforces using a JDK7 class library if a newer JDK (JDK8 or
newer) is used. See below for *[Compilation using JDK8 or newer]*.
*1.8* (JDK 8).

#### `basepom.check.skip-license`

Expand Down Expand Up @@ -61,10 +55,10 @@ suitable for new projects. It may be necessary to override some
dependency versions when converting legacy codes or when a third-party
library requires a fixed version of a dependency.

For Singularity, dropwizard 0.7.x enforces the following versions:
For Singularity, dropwizard 1.0.x enforces the following versions:

* `dep.jackson.version`, `dep.jackson.core.version`, `dep.jackson.databind.version` - Enforces *2.3.2*, because dw uses Jackson 2.3.x.
* `dep.jetty.version` - Enforces *9.0.7.v20131107* because dw uses Jetty 9.0.x.
* `dep.jackson.version`, `dep.jackson.core.version`, `dep.jackson.databind.version` - Enforces *2.7.9*, because dw uses Jackson 2.3.x.
* `dep.jetty.version` - Enforces *9.3.9.v20160517* because dw uses Jetty 9.3.x.

## Notes on dependencies

Expand Down Expand Up @@ -147,21 +141,6 @@ optional arguments:
```


## Compilation using JDK8 or newer

Singularity targets JDK7 but can be compiled with any JDK starting
with JDK7. Especially, the code base can be built with JDK8 (but will
generate code that can be run on JDK7). However, one of the biggest
gotchas here is that the compiler will use the Java 8 runtime library
(bundled with the JDK8) to build code that is supposed to run on JDK7
with the JDK7 runtime library. As the JDK8 runtime contains a newer
version of the runtime, the bindings in the java code will match JDK8
but may or may not match JDK7.

Therefore the Singularity build enforces that a JDK7 is installed on
the machine if JDK8 or newer is used to compile Singularity and its
home location must be set as an environment variable, `JAVA7_HOME`.

### Compiling with Travis CI

As Travis only supports a single installed JDK at a time; when the
Expand Down
17 changes: 12 additions & 5 deletions Docs/features/custom-ports.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@ As of release `0.4.10`, you can specify an index for the dynamically allocated p

To change the healthcheck port, simply add:

```yaml
healthCheckPortIndex: 1 # or another integer
```json
"healthcheck": {
"portIndex": 1 # or another integer
}
```

to your `SingularityDeploy` object. This will tell Singularity to use the dynamically allocated port at index 1 (i.e. second allocated port) when performing a health check.
to your `SingularityDeploy` object. This will tell Singularity to use the dynamically allocated port at index 1 (i.e. second allocated port) when performing a health check. Alternatively, you can specify a specif port the use for the healthcheck with an option like:
```json
"healthcheck": {
"portNumberx": 80 # or another integer
}
```

Similarly, you can also specify the port index to use for the load balancer by specifying:

```yaml
loadBalancerPortIndex: 1 # or another integer
```json
"loadBalancerPortIndex": 1 # or another integer
```

in your `SingularityDeploy` object. Keep in mind the dynamically all ocated ports will be available to your process as environment variables in the format `PORT{index}` (e.g. `PORT0=32091` for a first dynamically allocated port of 32091)
2 changes: 1 addition & 1 deletion Docs/features/task-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The above endpoint as well as `/api/history/request/{requestId}/tasks` now take
- `requestId`: Optional request id to match (only for `/api/history/tasks` endpoint as it is already specified in the path for `/request/{requestId}/tasks`)
- `deployId`: Optional deploy id to match
- `host`: Optional host (slave host name) to match
- `lastTaskStatus`: Optional [`ExtendedTaskState`](../reference/api-docs/models.md#model-ExtendedTaskState) to match
- `lastTaskStatus`: Optional [`ExtendedTaskState`](../reference/api-docs/models#model-ExtendedTaskState) to match
- `startedAfter`: Optionally match only tasks started after this time (13 digit unix timestamp)
- `startedBefore`: Optionally match only tasks started before this time (13 digit unix timestamp)
- `orderDirection`: Sort direction (by `startedAt`), can be ASC or DESC, defaults to DESC (newest tasks first)
Expand Down
21 changes: 14 additions & 7 deletions Docs/getting-started/basic-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ You can POST this JSON (saved in request.json) using curl:

```sh
curl -i -X POST -H "Content-Type: application/json" -d@request.json \
http://locahost:7099/singularity/api/requests
http://localhost:7099/singularity/api/requests
```

## Basic Service Using the Mesos Executor
Expand Down Expand Up @@ -94,7 +94,6 @@ Once the task is running you can go to [http://localhost:7099/singularity/reques
### Limitations

- Since this container is bound to the ports 8080 and 8081 on the host machine you can't scale it up to more than one per machine. Depending on your setup, you may already see port in use errors when starting the app, as those ports are commonly used by other processes.
- Since Singularity isn't allocating the ports and we have not specified a port to use for checks you can't use the health check. (*See [choosing ports](../features/custom-ports.md) for info on selecting specific ports*)


## Basic Service Using Dynamically Allocated Ports
Expand Down Expand Up @@ -136,7 +135,9 @@ Or post the following JSON:
"https://github.com/HubSpot/singularity-test-service/releases/download/1.0/singularitytest-1.0-SNAPSHOT.jar",
"https://github.com/HubSpot/singularity-test-service/releases/download/1.0/example.yml"
],
"healthcheckUri": "/healthcheck"
"healthcheck": {
"uri": "/healthcheck"
}
}
}
```
Expand Down Expand Up @@ -165,7 +166,7 @@ You can POST this JSON (saved in request.json) using curl:

```sh
curl -i -X POST -H "Content-Type: application/json" -d@request.json \
http://locahost:7099/singularity/api/requests
http://localhost:7099/singularity/api/requests
```

We will need to add some information for the load balancer api to our JSON:
Expand Down Expand Up @@ -194,7 +195,9 @@ Make another deploy request by posting the following JSON:
"https://github.com/HubSpot/singularity-test-service/releases/download/1.0/example.yml"
],
"skipHealthchecksOnDeploy": false,
"healthcheckUri": "/healthcheck",
"healthcheck": {
"uri": "/healthcheck"
},
"serviceBasePath":"/",
"loadBalancerGroups":["test"]
}
Expand Down Expand Up @@ -290,7 +293,9 @@ You could specify port mappings in the Singularity UI or POST JSON like the foll
"memoryMb": 128,
"numPorts": 2
},
"healthcheckUri": "/healthcheck"
"healthcheck": {
"uri": "/healthcheck"
}
}
}
```
Expand Down Expand Up @@ -323,7 +328,9 @@ Now, we also want to add in the SingularityExecutor, Singularity's custom execut
"memoryMb": 128,
"numPorts": 2
},
"healthcheckUri": "/healthcheck",
"healthcheck": {
"uri": "/healthcheck"
},
"serviceBasePath":"/",
"loadBalancerGroups":["test"],
"customExecutorCmd": "/usr/local/bin/singularity-executor",
Expand Down
8 changes: 7 additions & 1 deletion Docs/getting-started/try-it-out.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

If you want to give Singularity a try, you can install [docker](https://docs.docker.com/installation/) and [docker-compose](https://docs.docker.com/compose/#installation-and-set-up) to run our example cluster.

**Note:** The Docker development setup is currently not compatible with Docker for Mac due to its usage of `HOST` network mode. You can instead run Singularity via `docker-machine` using the following commands:

Create a new docker machine: `docker-machine create --driver=virtualbox singularity`
Set the docker env to the new machine: `eval $(docker-machine env singularity)`
Get the IP for the machine. Use this instead of `localhost` for the UI addresses: `docker-machine ip singularity`

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...
Expand All @@ -16,4 +22,4 @@ Then simply run `docker-compose up` and it will start containers for...
- Singularity UI => [http://localhost:7099/singularity](http://localhost:7099/singularity)
- Baragon UI => [http://localhost:8080/baragon/v2/ui](http://localhost:8080/baragon/v2/ui)

*if using [boot2docker](http://boot2docker.io/) or another vm, replace localhost with the ip of your vm*
*if using [boot2docker](http://boot2docker.io/) or another vm, replace localhost with the ip of your vm*
Loading