Re: diego questions: default memory and passing env variables
Amit Kumar Gupta
This is not a environment variable you can set. To scale down the memory
toggle quoted messageShow quoted text
allocated to your instances, do cf scale <app-name> -m 1024M This will tell Warden/Garden to allocate that much memory to your containers and kill them if they exceed it. The documentation is saying that the processes running inside the container can learn about the memory limit applied to them via the environment variable MEMORY_LIMIT. If you try to set this variable via set-env, it will get overwritten by the value set by "cf scale". Again, the MEMORY_LIMIT environment variable doesn't do anything, it's just information passed into the container via the process's environment. To actually constrain the memory, use "cf scale" or set it in your manifest file: https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#memory
On Wed, Sep 2, 2015 at 3:08 PM, Siva Balan <mailsiva(a)gmail.com> wrote:
We are not using Diego and we are on CF version 211.
|
|
Re: diego questions: default memory and passing env variables
Matthew Sykes <matthew.sykes@...>
Memory limits are set via cf scale.
toggle quoted messageShow quoted text
`cf scale <app-name> -m 512M` will scale your app to 512MB per instance. The cli will then tell you to restage your application so the buildpacks can observe the new limit and make the necessary changes. At one time, this was especially true of the java buildpack.
On Wed, Sep 2, 2015 at 6:08 PM, Siva Balan <mailsiva(a)gmail.com> wrote:
We are not using Diego and we are on CF version 211. --
Matthew Sykes matthew.sykes(a)gmail.com
|
|
Re: diego questions: default memory and passing env variables
Siva Balan <mailsiva@...>
We are not using Diego and we are on CF version 211.
toggle quoted messageShow quoted text
I had my application started with 2GB of memory set in the manifest file. I then ran the following command and restaged the app: cf set-env <app-name> MEMORY_LIMIT 1024m Then when I ran "cf app <app-name>", it was still showing the instance memory of 2GB but the heap size allocated to the application was cut in half and I confirmed this through New Relic app. Also, the first full GC of the app occurred when the memory of the instance was at 1.3GB. So I am not quite sure of the description of the MEMORY_LIMIT env variable as described in http://docs.run.pivotal.io/devguide/deploy-apps/environment-variable.html#memory. I did not see my application restart when the instance memory went over 1GB. Any ideas about this behavior? Thanks. Siva
On Tue, Sep 1, 2015 at 7:40 PM, Amit Gupta <agupta(a)pivotal.io> wrote:
Responses inline.
|
|
Re: Generic data points for dropsonde
Johannes Tuchscherer
The current way of sending metrics as either Values or Counters through the
toggle quoted messageShow quoted text
pipeline makes the development of a downstream consumer (=nozzle) pretty easy. If you look at the datadog nozzle[0], it just takes all ValueMetrics and Counters and sends them off to datadog. The nozzle does not have to know anything about these metrics (e.g. their origin, name, or layout). Adding a new way to send metrics as a nested object would make the downstream implementation certainly more complicated. In that case, the nozzle developer has to know what metrics are included inside the generic point (basically the schema of the metric) and treat each point accordingly. For example, if I were to write a nozzle that emits metrics to Graphite with a StatsD client (like it is done here[1]), I need to know if my int64 value is a Gauge or a Counter. Also, my consumer is under constant risk of breaking when the upstream schema changes. We are already facing this problem with the container metrics. But at least the container metrics are in a defined format that is well documented and not likely to change. I agree with you, though, the the dropsonde protocol could use a mechanism for easier extension. Having a GenericPoint and/or GenericEvent seems like a good idea that I whole-heartedly support. I would just like to stay away from nested metrics. I think the cost of adding more logic into the downstream consumer (and making it harder to maintain) is not worth the benefit of a more concise metric transport. [0] https://github.com/cloudfoundry-incubator/datadog-firehose-nozzle [1] https://github.com/CloudCredo/graphite-nozzle
On Tue, Sep 1, 2015 at 5:52 PM, Benjamin Black <bblack(a)pivotal.io> wrote:
great questions, dwayne.
|
|
Re: Correcting CF Docs
Joaquin Zalazar <joaquin.zalazar@...>
Hi Daniel!
What I've done while testing is to set the variable BOSH_AWS_REGION to the region I needed. export BOSH_AWS_REGION=<your region here> Regards!! Joaquin Zalazar Altoros On Wed, Sep 2, 2015 at 9:43 AM, Daniel Jones < daniel.jones(a)engineerbetter.com> wrote: Hi all, -- *Joaquin Zalazar* *ALTOROS* — Cloud Foundry deployment, training and integration www.altoros.com
|
|
Re: docker-push failed with crashing and got the following stack trace in grarden-linux
Shaozhen Ding
Thanks for the help
toggle quoted messageShow quoted text
I had some permission issues on several files. Since diego run docker containers with user vcap. I created a user named as vcap and gave the file permission to vcap in advanced. Then i got the error above, even though I created the home folder. I remove the user, then the error is gone. Definitely curious of what diego is trying to do with vcap user.
On Wed, Sep 2, 2015 at 11:40 AM, Will Pragnell <wpragnell(a)pivotal.io> wrote:
The error message suggests that in `/etc/passwd` in the Docker image, the
|
|
Re: v3 cc api style guide feedback requested
Zach Robinson
Thanks James, I've just corrected the three issues you've noted so far
|
|
Re: docker-push failed with crashing and got the following stack trace in grarden-linux
Will Pragnell <wpragnell@...>
The error message suggests that in `/etc/passwd` in the Docker image, the
toggle quoted messageShow quoted text
entry for `vcap` lists a path for the home dir that doesn't exist. I'm afraid I don't understand Diego well enough to know why it's trying to stream into the container as `vcap` though.
On 2 September 2015 at 17:25, Shaozhen Ding <dsz0111(a)gmail.com> wrote:
Anyone can help with interpreting the error log here
|
|
Re: v3 cc api style guide feedback requested
James Bayer
the example used for actions uses the v2 api instead of v3:
toggle quoted messageShow quoted text
https://github.com/cloudfoundry/cc-api-v3-style-guide#example-4 i like the idea of a unique error code. ideally the CAPI team maintains public documentation of an error code dictionary https://github.com/cloudfoundry/cc-api-v3-style-guide#issues-with-v2-error-format the async proposal seems like a big improvement.
On Wed, Sep 2, 2015 at 8:53 AM, James Bayer <jbayer(a)pivotal.io> wrote:
the collections example [1] does not actually include the required --
Thank you, James Bayer
|
|
docker-push failed with crashing and got the following stack trace in grarden-linux
Shaozhen Ding
Anyone can help with interpreting the error log here
garden-linux.pool.vl5hraecvg1.stream-in.command.failed cf-213 and diego/0.1353.0 {"timestamp":"1441209896.800271988","source":"garden-linux","message":"garden-linux.garden-server.create.created","log_level":1,"data":{"request":{"handle":"cb6ac15a-c3a0-4b5d-9716-e99934c35953-2669bf25-c226-4908-bbba-63e00a6a4fa0-397eef75-bf73-46d3-6ba2-6a3737ea3d5e","rootfs":"docker:///datianshi/cf-docker-music#latest","properties":{"executor:allocated-at":"1441209893185279557","executor:cpu-weight":"4","executor:disk-mb":"1024","executor:log-config":"{\"guid\":\"cb6ac15a-c3a0-4b5d-9716-e99934c35953\",\"index\":0,\"source_name\":\"CELL\"}","executor:memory-mb":"512","executor:metrics-config":"{\"guid\":\"cb6ac15a-c3a0-4b5d-9716-e99934c35953\",\"index\":0}","executor:owner":"executor","executor:result":"{\"failed\":false,\"failure_reason\":\"\",\"stopped\":false}","executor:rootfs":"docker:///datianshi/cf-docker-music#latest","executor:start-timeout":"60","executor:state":"created","tag:domain":"cf-apps","tag:instance-guid":"397eef75-bf73-46d3-6ba2-6a3737ea3d5e","tag:lifecycle":"lrp ","tag:process-guid":"cb6ac15a-c3a0-4b5d-9716-e99934c35953-2669bf25-c226-4908-bbba-63e00a6a4fa0","tag:process-index":"0"},"env":["INSTANCE_GUID=397eef75-bf73-46d3-6ba2-6a3737ea3d5e","INSTANCE_INDEX=0"]},"session":"4.247804"}} {"timestamp":"1441209896.811697721","source":"garden-linux","message":"garden-linux.garden-server.net-in.port-mapped","log_level":1,"data":{"container-port":8080,"handle":"cb6ac15a-c3a0-4b5d-9716-e99934c35953-2669bf25-c226-4908-bbba-63e00a6a4fa0-397eef75-bf73-46d3-6ba2-6a3737ea3d5e","host-port":61055,"session":"4.247809"}} {"timestamp":"1441209896.818696976","source":"garden-linux","message":"garden-linux.garden-server.net-in.port-mapped","log_level":1,"data":{"container-port":2222,"handle":"cb6ac15a-c3a0-4b5d-9716-e99934c35953-2669bf25-c226-4908-bbba-63e00a6a4fa0-397eef75-bf73-46d3-6ba2-6a3737ea3d5e","host-port":61056,"session":"4.247810"}} {"timestamp":"1441209896.842704535","source":"garden-linux","message":"garden-linux.garden-server.limit-memory.limited","log_level":1,"data":{"handle":"cb6ac15a-c3a0-4b5d-9716-e99934c35953-2669bf25-c226-4908-bbba-63e00a6a4fa0-397eef75-bf73-46d3-6ba2-6a3737ea3d5e","resulting-limits":{"limit_in_bytes":536870912},"session":"4.247818"}} {"timestamp":"1441209896.843993425","source":"garden-linux","message":"garden-linux.garden-server.limit-disk.limited","log_level":1,"data":{"handle":"cb6ac15a-c3a0-4b5d-9716-e99934c35953-2669bf25-c226-4908-bbba-63e00a6a4fa0-397eef75-bf73-46d3-6ba2-6a3737ea3d5e","resulting-limits":{},"session":"4.247819"}} {"timestamp":"1441209896.844884396","source":"garden-linux","message":"garden-linux.garden-server.limit-cpu.limited","log_level":1,"data":{"handle":"cb6ac15a-c3a0-4b5d-9716-e99934c35953-2669bf25-c226-4908-bbba-63e00a6a4fa0-397eef75-bf73-46d3-6ba2-6a3737ea3d5e","resulting-limits":{"limit_in_shares":40},"session":"4.247820"}} {"timestamp":"1441209896.845991373","source":"garden-linux","message":"garden-linux.garden-server.info.got-info","log_level":1,"data":{"handle":"cb6ac15a-c3a0-4b5d-9716-e99934c35953-2669bf25-c226-4908-bbba-63e00a6a4fa0-397eef75-bf73-46d3-6ba2-6a3737ea3d5e","session":"4.247821"}} {"timestamp":"1441209896.857844830","source":"garden-linux","message":"garden-linux.pool.vl5hraecvg1.stream-in.command.failed","log_level":2,"data":{"argv":["/var/vcap/data/garden-linux/depot/vl5hraecvg1/bin/nstar","11856","vcap","/tmp/lifecycle"],"error":"exit status 1","exit-status":1,"session":"2.67.7.1","stderr":"chdir to user home: No such file or directory\n","stdout":"","took":"2.959157ms"}} {"timestamp":"1441209896.858107328","source":"garden-linux","message":"garden-linux.garden-server.stream-in.failed","log_level":2,"data":{"destination":"/tmp/lifecycle","error":"exit status 1","handle":"cb6ac15a-c3a0-4b5d-9716-e99934c35953-2669bf25-c226-4908-bbba-63e00a6a4fa0-397eef75-bf73-46d3-6ba2-6a3737ea3d5e","session":"4.247823"}}
|
|
Re: v3 cc api style guide feedback requested
James Bayer
the collections example [1] does not actually include the required
toggle quoted messageShow quoted text
*resources* field [1] https://github.com/cloudfoundry/cc-api-v3-style-guide#example-2
On Wed, Sep 2, 2015 at 8:16 AM, James Bayer <jbayer(a)pivotal.io> wrote:
should the PUT example that updates the app name and space guid actually --
Thank you, James Bayer
|
|
CF CLI Release v 6.12.3
Greg Oehmen
The CF CLI team just cut 6.12.3. Release notes and binaries are available
at: https://github.com/cloudfoundry/cli/releases Highlights of this release include: Bug Fix: runtime error: index out of range originally reported here https://github.com/cloudfoundry/cli/issues/509 and in many subsequent Github issues - https://www.pivotaltracker.com/story/show/98672332 - The root problem for this particular crash is because v2/apps/GUID/instances reports 0 instance for a newly stopped app, but GetContainerMetrics() from noaa library will continue to report instances metrics for a while, and eventually be consistent with v2/apps/GUID/instance. This causes the CLI’s 'index out of range error'. The bug is fixed by not gathering metrics unless instance>0, but GetContainerMetrics() should be consistent with what CC endpoint reports. Pull Requests - Merge pull request #544 <https://github.com/cloudfoundry/cli/pull/544> from cloudfoundry/code-tidy Code tidy: Code cleanup: remove unused variables, remove orphan functions, shadowing reserved word - Merge pull request #523 <https://github.com/cloudfoundry/cli/pull/523> from zachgersh/master Unmarshal the extra field, get documentation url - Merge pull request #540 <https://github.com/cloudfoundry/cli/pull/540> from cloudfoundry/use_go_yaml Support yaml '<<' merge type - Merge pull request #534 <https://github.com/cloudfoundry/cli/pull/534> from cloudfoundry/feature/commands-restart-and-create Move commands to new command pattern. - Merge pull request #505 <https://github.com/cloudfoundry/cli/pull/505> from zhang-hua/bug-93578300 Reduce API calls when CRU operations of service keys - Merge branch 'story-87481016' of https://github.com/zhang-hua/cli into zhang-hua-story-87481016 - Merge pull request #514 <https://github.com/cloudfoundry/cli/pull/514> Fix create-app-manifest only includes one host [92530254] Also notable: We deprecated the use of CodeGangsta within the CF CLI. Previously, CodeGangsta had been used for managing help and flags within the CLI. We now manage those functions natively in the CLI. This is a precursor to the work we will begin soon of refactoring help, restructuring command syntax and abstracting admin-only commands out into some separate manifestation; perhaps a plugin. Greg Oehmen Cloud Foundry Product Manager
|
|
Re: v3 cc api style guide feedback requested
James Bayer
should the PUT example that updates the app name and space guid actually be
toggle quoted messageShow quoted text
a PATCH since it updates the resource? https://github.com/cloudfoundry/cc-api-v3-style-guide#put
On Wed, Sep 2, 2015 at 1:40 AM, Dieu Cao <dcao(a)pivotal.io> wrote:
Hi All, --
Thank you, James Bayer
|
|
Re: stdout.log and stderr.log not show in CF197 with loggregator enabled
Erik Jasiak
Dan is correct - "cf file" for getting stdout/stderr files directly was
toggle quoted messageShow quoted text
deprecated some time ago. I'll try to locate when that happened (it was before my time.) From the cli, "cf logs" for streaming, and "cf logs --recent" for a quick dump are the way to go. Erik PM - loggregator Daniel Mikusa wrote:
|
|
Re: stdout.log and stderr.log not show in CF197 with loggregator enabled
Daniel Mikusa
Have you tried running `cf logs` instead? Anything written to STDOUT or
STDERR should be visible there for some period of time. For long term storage, you should look at setting up a log drain on your application. http://docs.cloudfoundry.org/devguide/services/log-management.html Dan On Wed, Sep 2, 2015 at 9:08 AM, Shruthi Ravindra <Shruthi.ravindra(a)ge.com> wrote: Hi,
|
|
Re: stdout.log and stderr.log not show in CF197 with loggregator enabled
Shruthi Ravindra
Hi,
we are also facing the same issue when we check the "cf files pfh-cos-dicomobjectstore-dev /logs" we are able to see only the staging logs and not the stdout.log abd stderror.log. we need to access these logs to debug the error. how do we enable the stdout and stderror logs
|
|
Re: stdout.log and stderr.log not show in CF197 with loggregator enabled
Shruthi Ravindra
Hi ,
We are having the same problem where we are not able to see the stdout.log and stderror.log for all the application deployed in the cloud. Could you please let me know how do we access the logs other than cf logs "appname" command which is not giving us the full logs. Thanks, Shruthi
|
|
Correcting CF Docs
Daniel Jones
Hi all,
The CF docs for deploying CF to an AWS VPC <https://docs.cloudfoundry.org/deploying/ec2/bootstrap-aws-vpc.html> have a broken link to a Gist of Dan Highham's, that presumably talks about deploying to regions other than us-east-1. Does anyone know where the instructions for non-US regions are now? Regards, Daniel Jones EngineerBetter.com
|
|
Re: Announcing Experimental support for Asynchronous Service Operations
Thanks Dieu for your response.
toggle quoted messageShow quoted text
We have successfully implemented an async service broker for out internal dbaas [1], [2] which db farms provisionning sometimes takes longer than 30s. Concerning improvement suggestions on the documentation, I could only spot an inconsistency on the sequence diagram, where the last operation description is mismatching between broker response (1/3 nodes") and CC api response ("40% complete") whereas the 'description' is a string which should be returned as is. Hard to propose a PR on that since the source file for this diagram does not seem available under docs-services [4]. BTW, It would be great if bookbinder would support rendering diagrams from a text format such as plantuml [5], or rely on plantuml public service [6] for such rendering. Wouldn't is make sense to exit the experimental status of the async api, even if it's not feature complete ? i.e. considering the api is stable enough and won't change in an incompatible maneer soon, thereby enabling clients such as cf-java-client to rely on them. One other potential improvement I see to the API would be to support localized user-facing operation status description. Having the CLI being I18Ned but brokers enable to return user facing messages in the user language seems limiting. Maybe it could be the case of having the CLI add a usual 'Accept-Language: zh_Hans" matching the current CLI locale, and the CC propagating this header in the last_operation broker endpoint [7] so that they can return the status message in the smae language when translations are available. Thanks, Guillaume. [1] https://github.com/Orange-OpenSource/elpaaso-brokers/blob/master/cf-service-broker-dbaas/src/main/java/com/orange/clara/cloud/cf/servicebroker/dbaas/service/DbaasServiceInstanceService.java#L60 [2] https://github.com/Orange-OpenSource/elpaaso-brokers/blob/a3f150fc7d3bb889875aac202496a4f63efc3595/cf-service-broker-dbaas/src/main/java/com/orange/clara/cloud/cf/servicebroker/dbaas/service/DbaasServiceInstanceService.java#L67-L73 [3] http://docs.cloudfoundry.org/services/images/async-service-broker-flow.png [4] https://github.com/cloudfoundry/docs-services/blob/master/images/async-service-broker-flow.png [5] http://plantuml.com/sequence.html [6] http://plantuml.com/plantuml/ [7] http://docs.cloudfoundry.org/services/asynchronous-operations.html#polling
On Tue, Sep 1, 2015 at 5:50 PM, Dieu Cao <dcao(a)pivotal.io> wrote:
Hi Guillaume,
|
|
v3 cc api style guide feedback requested
Dieu Cao <dcao@...>
Hi All,
The CAPI team has created a style guide for v3 of the cloud controller api and would like to share this again with the wider cf community for feedback after initial review within the team. [1] Issues/PRs are welcome and appreciated! Thanks, Dieu CF CAPI PM [1] https://github.com/cloudfoundry/cc-api-v3-style-guide
|
|