Skip to content

Instantly share code, notes, and snippets.

View ndzj081221130's full-sized avatar

zhangjieinnjucs ndzj081221130

View GitHub Profile
@ndzj081221130
ndzj081221130 / dea-ng.log
Created October 16, 2013 01:45
cf push failed to download buildpack cache
{"timestamp":1381885622.0094373,"message":"Downloading application from http://zxsfhgjg:[email protected]:8181/staging/apps/0a4f783d-465a-4b54-b58d-66132d46e018","log_level":"info","source":"Staging","data":{"app_guid":"0a4f783d-465a-4b54-b58d-66132d46e018","task_id":"b9e4240e2cb092044f4c7326f7e1543c"},"thread_id":11001840,"fiber_id":23405720,"process_id":27008,"file":"/vagrant/dea_ng/lib/dea/staging_task.rb","lineno":232,"method":"block in promise_app_download"}
{"timestamp":1381885622.015281,"message":"<Warden::Protocol::CreateRequest bind_mounts: [<Warden::Protocol::CreateRequest::BindMount src_path: \"/tmp/dea_ng/staging/d20131016-27008-8xph23\", dst_path: \"/tmp/dea_ng/staging/d20131016-27008-8xph23\", mode: RO(0)>, <Warden::Protocol::CreateRequest::BindMount src_path: \"/vagrant/dea_ng/buildpacks\", dst_path: \"/vagrant/dea_ng/buildpacks\", mode: RO(0)>]>","log_level":"debug2","source":"Staging","data":{"app_guid":"0a4f783d-465a-4b54-b58d-66132d46e018","task_id":"b9e4240e2cb092044f4c7326f7e1543c"}
@ndzj081221130
ndzj081221130 / warden.log
Created October 22, 2013 05:43
warden.log
{"timestamp":1382360429.193328,"message":"rlimit_nofile: 1024 => 32768","log_level":"debug2","source":"Warden::Server","data":{},"thread_id":4591600,"fiber_id":11848200,"process_id":7289,"file":"/vagrant/warden/warden/lib/warden/server.rb","lineno":266,"method":"run!"}
{"timestamp":1382360429.194348,"message":"Configuration","log_level":"info","source":"Warden::Server","data":{"server":{"unix_domain_path":"/tmp/warden.sock","unix_domain_permissions":511,"container_klass":"Warden::Container::Linux","container_grace_time":300,"job_output_limit":10485760,"quota":{"disk_quota_enabled":true},"container_depot_path":"/tmp/warden/containers","container_rootfs_path":"/var/warden/rootfs","container_rlimits":{"nofile":8192,"as":4294967296,"nproc":512}},"logging":{"level":"debug2","file":"/vagrant/logs/warden.log"},"network":{"pool_network":"10.254.0.0/22","deny_networks":[],"allow_networks":[]},"port":{"pool_start_port":61001,"pool_size":4000},"user":{"pool_start_uid":10000,"pool_size":256}},"thread_id":4591600,"fiber_i
@ndzj081221130
ndzj081221130 / cloud-controller.log
Created October 22, 2013 05:47
cf push failed and the cc.log shows that
{"timestamp":1381885621.9957068,"message":"request: sid=11 response='{:app_id=>\"0a4f783d-465a-4b54-b58d-66132d46e018\", :task_id=>\"b9e4240e2cb092044f4c7326f7e1543c\", :properties=>{:services=>[], :buildpack=>nil, :resources=>{:memory=>64, :disk=>1024, :fds=>16384}, :environment=>[], :meta=>{\"command\"=>\"ruby env.rb\", \"console\"=>true}}, :download_uri=>\"http://zxsfhgjg:[email protected]:8181/staging/apps/0a4f783d-465a-4b54-b58d-66132d46e018\", :upload_uri=>\"http://zxsfhgjg:[email protected]:8181/staging/droplets/0a4f783d-465a-4b54-b58d-66132d46e018/upload\", :buildpack_cache_download_uri=>\"http://zxsfhgjg:[email protected]:8181/staging/buildpack_cache/0a4f783d-465a-4b54-b58d-66132d46e018/download\", :buildpack_cache_upload_uri=>\"http://zxsfhgjg:[email protected]:8181/staging/buildpack_cache/0a4f783d-465a-4b54-b58d-66132d46e018/upload\", :async=>false}'","log_level":"info","source":"MultiResponseMessageBusRequest","data":{},"thread_id":13733880,"fiber_id":33069800,"process_id":
> Written with [StackEdit](https://stackedit.io/).
`stdin:is not a tty`
try to solve
@ndzj081221130
ndzj081221130 / select
Created December 13, 2013 01:54
select
> Written with [StackEdit](https://stackedit.io/).
> fd_set rfds;
>
> int rv;
>
> FD_ZERO(&rfds);
@ndzj081221130
ndzj081221130 / oom
Created December 14, 2013 07:46
oom?
将health_manager.yml中的cc_partition : ng 改为 default,也没用?
确实没有用,改回去。
先使用dea去stage droplet
然后使用dea去运行droplet
运行时会检查droplet.healthy,否则会destroy handle?
@ndzj081221130
ndzj081221130 / link_err
Created December 14, 2013 07:56
ruby_link_error
@ndzj081221130
ndzj081221130 / health
Created February 12, 2014 02:09
health
如果将url的health check取消
会因为link()将app改为Crashed?
1 droplet.warden.link.completed
2 droplet.instance.uptime
@ndzj081221130
ndzj081221130 / warden
Created February 12, 2014 02:11
warden memory
google group中有人提到,给应用分配的内存会用于多个用途,包括:
The memory used by the warden container
The memory used to map kernel extensions and system libraries (such as libc) into the process
The memory used for the jvm executables, jvm working heap, jit space, compressed references and so on.
The memory used for classes (application server and application), thread stacks, direct io buffers, and so on.
The memory used by the java application heap
java default buildpack中,将java_opts中的Xmx和Xms都赋值为用户设置的Memory_Limit
如果Xmx=Xms,那么避免堆动态扩展。