newCF@cfserver:~$ free -m
total used free shared buffers cached
Mem: 5981 3248 2732 0 28 674
-/+ buffers/cache: 2545 3435
Swap: 5883 12 5871
{"timestamp":1412511536.2771611,"message":"Request failed: 503: {\"code\"=>150003, \"description\"=>\"One or more instances could not be started because of insufficient running resources.\", \"error_code\"=>\"CF-InsufficientRunningResourcesAvailable\", \"backtrace\"=>[\"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/cloud_controller/dea/client.rb:126:in `start_instances'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/cloud_controller/dea/client.rb:253:in `start_instances_in_range'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/cloud_controller/dea/client.rb:23:in `start'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/cloud_controller/dea/backend.rb:32:in `start'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/cloud_controller/app_observer.rb:58:in `react_to_state_change'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/cloud_controller/app_observer.rb:27:in `updated'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/app/models/runtime/app.rb:532:in `after_commit'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/model/base.rb:1871:in `block in _save'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/transactions.rb:186:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/transactions.rb:186:in `block in after_transaction_commit'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/transactions.rb:186:in `each'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/transactions.rb:186:in `after_transaction_commit'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/transactions.rb:286:in `remove_transaction'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/transactions.rb:149:in `_transaction'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/transactions.rb:100:in `block in transaction'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/connecting.rb:229:in `block in synchronize'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/connection_pool/threaded.rb:104:in `hold'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/connecting.rb:229:in `synchronize'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sequel-4.11.0/lib/sequel/database/transactions.rb:89:in `transaction'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/app/controllers/base/model_controller.rb:63:in `update'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/app/controllers/base/base_controller.rb:77:in `dispatch'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/cloud_controller/rest_controller/routes.rb:16:in `block in define_route'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1540:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1540:in `block in compile!'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `[]'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `block (3 levels) in route!'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:966:in `route_eval'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `block (2 levels) in route!'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:987:in `block in process_route'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:in `catch'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:in `process_route'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:948:in `block in route!'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:947:in `each'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:947:in `route!'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1059:in `block in dispatch!'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `block in invoke'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `catch'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `invoke'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1056:in `dispatch!'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:882:in `block in call!'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `block in invoke'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `catch'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `invoke'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:882:in `call!'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:870:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/nulllogger.rb:9:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:175:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/sinatra-1.4.3/lib/sinatra/base.rb:1949:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:1037:in `call'\", \"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/vendor/bundle/ruby/1.9.1/gems/eventmachine-1.0.3/lib/eventmachine.rb:1037:in `block in spawn_threadpool'\"]}","log_level":"error","source":"cc.api","data":{"request_guid":"14946c8c-06a4-4416-72c9-01b0f915543e::37b8f84e-c5ff-4cb6-9e98-5d35f11e794c"},"thread_id":45174800,"fiber_id":36036080,"process_id":4741,"file":"/var/vcap/packages/cloud_controller_ng/cloud_controller_ng/lib/sinatra/vcap.rb","lineno":53,"method":"block in registered"}
--
You received this message because you are subscribed to the Google Groups "Cloud Foundry Developers" group.
To view this discussion on the web visit https://groups.google.com/a/cloudfoundry.org/d/msgid/vcap-dev/89900d6a-ea40-4a6b-94f4-eca11183d5cc%40cloudfoundry.org.
To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.
{"timestamp":1412511189.6162288,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.find.droplet","data":{"droplet":"798d8af4-abf5-4750-b0cd-771aa4891975","include_stats":true,"states":["RUNNING"],"version":"77d72ffe-bf58-497c-be55-bcafede11e0c"}},"thread_id":9128060,"fiber_id":17495840,"process_id":17581,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412511189.7831948,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.find.droplet","data":{"droplet":"798d8af4-abf5-4750-b0cd-771aa4891975","states":["STARTING","RUNNING"],"version":"77d72ffe-bf58-497c-be55-bcafede11e0c"}},"thread_id":9128060,"fiber_id":17495840,"process_id":17581,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412511189.8334136,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.find.droplet","data":{"droplet":"798d8af4-abf5-4750-b0cd-771aa4891975","include_stats":true,"states":["RUNNING"],"version":"77d72ffe-bf58-497c-be55-bcafede11e0c"}},"thread_id":9128060,"fiber_id":17495840,"process_id":17581,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412511487.8479583,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.stop","data":{"droplet":"cb522722-f2d1-4320-9e5a-eacc9ecb1398"}},"thread_id":9128060,"fiber_id":17495840,"process_id":17581,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412511535.7510302,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.stop","data":{"droplet":"cb522722-f2d1-4320-9e5a-eacc9ecb1398"}},"thread_id":9128060,"fiber_id":17495840,"process_id":17581,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412517999.8242369,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.stop","data":{"droplet":"cb522722-f2d1-4320-9e5a-eacc9ecb1398"}},"thread_id":9128060,"fiber_id":17495840,"process_id":17581,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412518018.774033,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.stop","data":{"droplet":"cb522722-f2d1-4320-9e5a-eacc9ecb1398"}},"thread_id":9128060,"fiber_id":17495840,"process_id":17581,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412577416.8380778,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.stop","data":{"droplet":"cb522722-f2d1-4320-9e5a-eacc9ecb1398"}},"thread_id":9128060,"fiber_id":17495840,"process_id":17581,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412623435.7622225,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.stop","data":{"droplet":"cb522722-f2d1-4320-9e5a-eacc9ecb1398"}},"thread_id":9128060,"fiber_id":17495840,"process_id":17581,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412623768.9234602,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.stop","data":{"droplet":"798d8af4-abf5-4750-b0cd-771aa4891975"}},"thread_id":16439420,"fiber_id":24806660,"process_id":13843,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412623772.002646,"message":"Saving snapshot took: 0.003s","log_level":"debug","source":"Snapshot","data":{},"thread_id":16439420,"fiber_id":18930820,"process_id":13843,"file":"/var/vcap/packages/dea_next/lib/dea/snapshot.rb","lineno":41,"method":"save"}
Server error, status code: 400, error code: 170001, message: Staging error: no available stagers
newCF@abiell:~$ free -m
total used free shared buffers cached
Mem: 5981 3609 2371 0 37 819
-/+ buffers/cache: 2752 3228
Swap: 5883 16 5867
intervals:
heartbeat: 10
advertise: 5
resources:
memory_mb: 8000
memory_overcommit_factor: 1
disk_mb: 32000
disk_overcommit_factor: 1
bind_mounts:
- src_path: /var/vcap/packages/buildpack_cache
staging:
enabled: true
max_staging_duration: 900
memory_limit_mb: 1024
disk_limit_mb: 4096
cpu_limit_shares: 512
disk_inode_limit: 200000
environment:
BUILDPACK_CACHE: "/var/vcap/packages/buildpack_cache"
{"timestamp":1412624156.8373418,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.find.droplet","data":{"droplet":"798d8af4-abf5-4750-b0cd-771aa4891975","include_stats":true,"states":["RUNNING"],"version":"00688df0-ea77-4a4e-a14b-147fb39e8ffa"}},"thread_id":7678080,"fiber_id":16054200,"process_id":20982,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412624159.0342371,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.find.droplet","data":{"droplet":"798d8af4-abf5-4750-b0cd-771aa4891975","states":["STARTING","RUNNING"],"version":"00688df0-ea77-4a4e-a14b-147fb39e8ffa"}},"thread_id":7678080,"fiber_id":16054200,"process_id":20982,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412624161.0541346,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.find.droplet","data":{"droplet":"798d8af4-abf5-4750-b0cd-771aa4891975","include_stats":true,"states":["RUNNING"],"version":"00688df0-ea77-4a4e-a14b-147fb39e8ffa"}},"thread_id":7678080,"fiber_id":16054200,"process_id":20982,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412624256.62914,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.stop","data":{"droplet":"2fed97ea-8177-4e89-a73b-a84d94043d0f"}},"thread_id":7678080,"fiber_id":16054200,"process_id":20982,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
{"timestamp":1412624270.8585129,"message":"nats.message.received","log_level":"debug","source":"Dea::Nats","data":{"subject":"dea.stop","data":{"droplet":"2fed97ea-8177-4e89-a73b-a84d94043d0f"}},"thread_id":7678080,"fiber_id":16054200,"process_id":20982,"file":"/var/vcap/packages/dea_next/lib/dea/nats.rb","lineno":148,"method":"handle_incoming_message"}
[#1] Received on [dea.advertise] : '{"id":"0-f1fa6b2d1273452ba5f6e6df98158db9","stacks":["lucid64"],"available_memory":64,"available_disk":21760,"app_id_to_count":{"31d9d698-7eb3-4647-8a09-0efb443abd41":3,"029a1269-67fe-46e2-85f7-e1b0b5d34193":3,"1c917344-f098-4738-a572-d342e9185b44":1,"798d8af4-abf5-4750-b0cd-771aa4891975":2,"cb522722-f2d1-4320-9e5a-eacc9ecb1398":1},"placement_properties":{"zone":"default"}}'
[#2] Received on [dea.advertise] : '{"id":"0-f1fa6b2d1273452ba5f6e6df98158db9","stacks":["lucid64"],"available_memory":64,"available_disk":21760,"app_id_to_count":{"31d9d698-7eb3-4647-8a09-0efb443abd41":3,"029a1269-67fe-46e2-85f7-e1b0b5d34193":3,"1c917344-f098-4738-a572-d342e9185b44":1,"798d8af4-abf5-4750-b0cd-771aa4891975":2,"cb522722-f2d1-4320-9e5a-eacc9ecb1398":1},"placement_properties":{"zone":"default"}}'
[#1] Received on [staging.advertise] : '{"id":"0-f1fa6b2d1273452ba5f6e6df98158db9","stacks":["lucid64"],"available_memory":64,"available_disk":21760}'
[#2] Received on [staging.advertise] : '{"id":"0-f1fa6b2d1273452ba5f6e6df98158db9","stacks":["lucid64"],"available_memory":64,"available_disk":21760}'
[#1] Received on [dea.advertise] : '{"id":"0-2547e23c49e84580b35eadda61ba689b","stacks":["lucid64"],"available_memory":576,"available_disk":20736,"app_id_to_count":{"31d9d698-7eb3-4647-8a09-0efb443abd41":5,"029a1269-67fe-46e2-85f7-e1b0b5d34193":3,"1c917344-f098-4738-a572-d342e9185b44":1,"798d8af4-abf5-4750-b0cd-771aa4891975":1,"94c4ae77-bdb6-4d52-9277-e26c73699d67":1},"placement_properties":{"zone":"default"}}'
[#2] Received on [dea.advertise] : '{"id":"0-2547e23c49e84580b35eadda61ba689b","stacks":["lucid64"],"available_memory":576,"available_disk":20736,"app_id_to_count":{"31d9d698-7eb3-4647-8a09-0efb443abd41":5,"029a1269-67fe-46e2-85f7-e1b0b5d34193":3,"1c917344-f098-4738-a572-d342e9185b44":1,"798d8af4-abf5-4750-b0cd-771aa4891975":1,"94c4ae77-bdb6-4d52-9277-e26c73699d67":1},"placement_properties":{"zone":"default"}}'
username@server:/var/vcap/packages/nats/nats$ free -m
total used free shared buffers cached
Mem: 5981 5823 158 0 57 764
-/+ buffers/cache: 5001 979
Swap: 5883 57 5826
cf restart universalbroker
Stopping app universalbroker in org myorg / space myspace as admin...
OK
Starting app universalbroker in org myorg / space myspace as admin...
FAILED
Server error, status code: 503, error code: 150003, message: One or more instances could not be started because of insufficient running resources.
user@server:/var/vcap/packages/nats/nats$ free -m
total used free shared buffers cached
Mem: 5981 4839 1142 0 70 2256
-/+ buffers/cache: 2511 3469
Swap: 5883 19 5864
Listening on [staging.advertise]
[#1] Received on [staging.advertise] : '{"id":"0-a5f30462cb894d3084c1624d23b2627f","stacks":["lucid64"],"available_memory":576,"available_disk":20736}'
[#2] Received on [staging.advertise] : '{"id":"0-a5f30462cb894d3084c1624d23b2627f","stacks":["lucid64"],"available_memory":576,"available_disk":20736}'
[#1] Received on [staging.advertise] : '{"id":"0-a5f30462cb894d3084c1624d23b2627f","stacks":["lucid64"],"available_memory":64,"available_disk":21760}'
cat /var/vcap/data/dea_next/db/instances.json | grep mem
"mem": 256,
"mem": 256,
"mem": 256,
"mem": 1024,
"mem": 1024,
"mem": 1024,
"mem": 1024,
"mem": 1024,
"mem": 1024,
"mem": 1024,
resources:
memory_mb: 8000
memory_overcommit_factor: 1
disk_mb: 32000
disk_overcommit_factor: 1
...
Thanks a lot Eric!
That indeed did the trick, and now I can push new apps, and the dea publishes:
[#1] Received on [staging.advertise] : '{"id":"0-4f3e3a8adcf44878ab8d82eada058cf6","stacks"["lucid64"],"available_memory":3904,"available_disk":26880}'
[#2] Received on [staging.advertise] : '{"id":"0-4f3e3a8adcf44878ab8d82eada058cf6","stacks":["lucid64"],"available_memory":3904,"available_disk":26880}'
Now- I pushed some more apps, and now I've got:
{
"warden_handle": "184vt2go7r7",
"mem": 1024,
"state": "RUNNING"
}
{
"warden_handle": "184vt2go7r8",
"mem": 1024,
"state": "RUNNING"
}
{
"warden_handle": "184vt2go7r9",
"mem": 1024,
"state": "RUNNING"
}
{
"warden_handle": "184vt2go7ra",
"mem": 1024,
"state": "RUNNING"
}
{
"warden_handle": "184vt2go7rl",
"mem": 1024,
"state": "RUNNING"
}
{
"warden_handle": "184vt2go7rn",
"mem": 1024,
"state": "CRASHED"
}
{
"warden_handle": "184vt2go7rq",
"mem": 1024,
"state": "RUNNING"
}
{
"warden_handle": "184vt2go7rr",
"mem": 1024,
"state": "RUNNING"
}
free -m
total used free shared buffers cached
Mem: 5981 5643 337 0 109 2657
-/+ buffers/cache: 2876 3104
And the dea advertises:
[#1] Received on [staging.advertise] : '{"id":"0-4f3e3a8adcf44878ab8d82eada058cf6","stacks":["lucid64"],"available_memory":832,"available_disk":23808}'
1) It doesn't look like the dea gets rid of the CRASHED instance, even though I deleted the app from CF.
2) Does it still count as taking memory?
3) What's this memory overcomittment factor? can I increase it to over-provision apps? Or should I simply replace the memory threshold (which is 8) in dea.yml to something bigger?
4) If I have a simple hello-world type node.js app that consumes:
#0 running 2014-10-09 05:51:12 PM 0.0% 8.8M of 1G 26M of 1G
#1 running 2014-10-09 06:00:29 PM 0.0% 8.1M of 1G 26M of 1G
How much memory does it take from the dea total memory threshold? 2000 or < 20?
5) I guess it takes 2GB, because I now have 8 total apps in the instances.json, and each is 1GB and when I try to push I get:
Server error, status code: 400, error code: 170001, message: Staging error: no available stagers
When I deleted all the small hello-world type node.js apps I now get:
[#1] Received on [staging.advertise] : '{"id":"0-4f3e3a8adcf44878ab8d82eada058cf6","stacks":["lucid64"],"available_memory":3904,"available_disk":26880}'
And I can push new apps.
1) It doesn't look like the dea gets rid of the CRASHED instance, even though I deleted the app from CF.
2) Does it still count as taking memory?
3) What's this memory overcomittment factor? can I increase it to over-provision apps? Or should I simply replace the memory threshold (which is 8) in dea.yml to something bigger?
4) If I have a simple hello-world type node.js app that consumes:
#0 running 2014-10-09 05:51:12 PM 0.0% 8.8M of 1G 26M of 1G
#1 running 2014-10-09 06:00:29 PM 0.0% 8.1M of 1G 26M of 1G
How much memory does it take from the dea total memory threshold? 2000 or < 20?
5) I guess it takes 2GB
Yep, from the DEA's perspective, those app instances will consume 2 GB of its memory pool.