Open oubiwann opened 6 years ago
Dev system creates apps in this order:
(def app-startup-order
"Defines the order in which applications should be started"
[:mock-echo
:cubby
:metadata-db
:access-control
:index-set
:indexer
:ingest
:search
:virtual-product
:bootstrap])
Current order of deployment for CMR:
cd ../metadata-db-app
cmr_deploy $1
cd ../index-set-app
cmr_deploy $1
cd ../indexer-app
cmr_deploy $1
cd ../search-app
cmr_deploy $1
cd ../ingest-app
cmr_deploy $1
cd ../bootstrap-app
cmr_deploy $1
In the docker build script for individual services, this is the order of service starts:
cd ../cubby-app
build-and-run-container "cmr-cubby" 3007
cd ../metadata-db-app
build-and-run-container "cmr-metadata-db" 3001
cd ../access-control-app
build-and-run-container "cmr-access-control" 3011
cd ../search-app
build-and-run-container "cmr-search" 3003
cd ../bootstrap-app
build-and-run-container "cmr-bootstrap" 3006
cd ../virtual-product-app
build-and-run-container "cmr-virtual-product" 3009
cd ../index-set-app
build-and-run-container "cmr-index-set" 3005
cd ../indexer-app
build-and-run-container "cmr-indexer" 3004
cd ../ingest-app
build-and-run-container "cmr-ingest" 3002
The Components library uses dependencies for start-up order, so that's probably more useful to list here. Note that since the system-with-connections
is what indicates service dependencies, this is what we can use for service deps in out Component system implementation.
embedded-systems
:
system-with-connections
:
access-control
project.clj
deps:
common-app-lib
transmit-lib
embedded-systems
:
system-with-connections
:
access-control
echo-rest
project.clj
deps:
acl-lib
common-app-lib
common-lib
elastic-utils-lib
transmit-lib
embedded-systems
:
system-with-connections
:
access-control
echo-rest
project.clj
deps:
acl-lib
common-app-lib
common-lib
message-queue-lib
oracle-lib
embedded-systems
:
system-with-connections
:
access-control
cubby
echo-rest
metadata-db
urs
project.clj
deps:
acl-lib
common-app-lib
common-lib
elastic-utils-lib
message-queue-lib
metadata-db-app
transmit-lib
umm-spec-lib
embedded-systems
:
system-with-connections
:
access-control
echo-rest
project.clj
deps:
acl-lib
common-app-lib
elastic-utils-lib
embedded-systems
:
system-with-connections
:
access-control
cubby
echo-rest
index-set
kms
metadata-db
search
urs
project.clj
deps:
acl-lib
common-app-lib
elastic-utils-lib
message-queue-lib
transmit-lib
umm-lib
umm-spec-lib
embedded-systems
:
system-with-connections
:
access-control
cubby
echo-rest
indexer
kms
metadata-db
search
project.clj
deps:
acl-lib
common-app-lib
message-queue-lib
oracle-lib
transmit-lib
umm-lib
umm-spec-lib
embedded-systems
:
metadata-db
system-with-connections
:
access-control
cubby
echo-rest
index-set
kms
metadata-db
project.clj
deps:
collection-renderer-lib
common-app-lib
common-lib
elastic-utils-lib
message-queue-lib
orbits-lib
spatial-lib
umm-lib
umm-spec-lib
embedded-systems
:
system-with-connections
:
ingest
metadata-db
search
project.clj
deps:
common-app-lib
common-lib
message-queue-lib
transmit-lib
umm-lib
embedded-systems
:
access-control
indexer
metadata-db
system-with-connections
:
cubby
echo-rest
indexer
index-set
kms
metadata-db
project.clj
deps:
access-control-app
common-app-lib
indexer-app
metadata-db-app
oracle-lib
transmit-lib
virtual-product-app