Re: (action requested) Changing CF App Display
Abby Chau
Hi all, We've analyzed the `cf app` survey results; thanks again to those who responded. Here's our findings and actions steps: Based on your feedback, we have decided to change `cf app` to default to the v3 app endpoint:
Survey Results Please see the image below for results of the survey. Only 6.3% of respondents said they would strongly object to changing the current `cf app app-name` display to default to the v3 app endpoint. Next Steps:
Feedback If you have questions or concerns, please contact us on the #cli channel on Cloud Foundry Slack. Alternatively, respond directly to this email. Please do not hesitate to reach out if you have any feedback or questions. Thanks again. Best, Abby Chau and the CLI team CF Product Manager, CF CLI On Mon, Jun 11, 2018 at 9:49 AM Abby Chau <achau@...> wrote:
|
|
Querying across microservices in CF
Pierce Lamb <richard.pierce.lamb@...>
I've found that while microservices tend to increase dev productivity by allowing devs to work independently, they also tend lead devs into having independent state across microservices; e.g. each microservice has it's own database In theory, then, a query across microservices would be challenging. One could encounter data interdependence issues across microservices. Further, querying across microservices using joins and aggregations could require complex application level code to realize. Does anyone encounter problems with querying across microservices in CF today? And if so how do they solve these problems? |
|
planned end of life for cloudfoundry-incubator/cephfs-bosh-release
Hjortshoj, Julian <Julian.Hjortshoj@...>
Hi Folks,
Due to lack of popular demand, we plan to move https://github.com/cloudfoundry-incubator/cephfs-bosh-release into the cloudfoundry-attic org, unhook it from our CI pipelines, and cease further maintenance. If you have been secretly using this software,
please contact us in the next week by replying to this email or finding us on the #persi channel on https://cloudfoundry.slack.com to let us know your use cases. Unless we’ve heard from someone in the next two weeks, we’ll move it to the attic.
Thanks much,
-Julian
|
|
BlockHeads Broker - Proposal for Incubation in the Extensions
Nima
Hello all,
Following the presentation of the BlockHeads broker at today's CAB call, here comes the proposal for its inclusion as a new CF Extensions project.
Proposal: https://docs.google.com/document/d/1KjxLgFou7THOyMaUgFJ1McDVNv80BYvOMFCYn8tuypA/edit?usp=sharing
BlockHead is a service broker that integrates with Cloud Foundry / Kubernetes and enables management of blockchain nodes and deployment of smart contracts. You can check our blog post below for more information
Project Name: BlockHeads Service Broker
Proposed Project Lead: Nima Kaviani (IBM) Proposed Contributors: Swetha Repakula (IBM), Jonathan Berkhahn (IBM), Morgan Bauer (IBM), Nima Kaviani (IBM) Feel free to contact me in case of any questions / thoughts / feedback. bests,
Nima |
|
Re: cf restart-app-instance and environment variables
#cf
Preetam Palwe
Thanks Zach for confirmation. |
|
Re: Buildpack Cache
Stephen Levine
The buildpack cache in CF is always per-app and foundation-wide. It can only be erased by deleting the app or dropping all cache artifacts on the platform. The system buildpacks are cached on the cell, and if you use an offline buildpack with dependencies included, the buildpack will generally not need to download those dependencies. Therefore, they won't get cached in the app's buildpack cache (but other things might still be). On Tue, Jun 19, 2018 at 11:04 AM Stephan Merker <stephan.merker@...> wrote: > This means that there are larger system policies about whether it's cached per-cell, per-foundation, etc. |
|
Re: cf restart-app-instance and environment variables
#cf
Zach Robinson
Hey Preetam There's not any work to get 'cf restart-app-instance` to update env vars and there is not a way to clone an app. The current canonical method for updating an app's config, is to perform a blue-green deployment https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html There is also work in flight to implement rolling updates of applications that will allow 'cf restart' to update environment variables for an app based on this proposal https://docs.google.com/document/d/116I_mOWjZcPeIbUvvsh-jAcwpoE_mGPD_SkCel5xXuU/edit# -Zach CAPI Project Lead On Tue, Jun 19, 2018 at 6:54 AM Preetam Palwe <preetam.palwe@...> wrote: Thanks Dan - It's a reasonable guess! |
|
Re: Buildpack Cache
Stephan Merker
This means that there are larger system policies about whether it's cached per-cell, per-foundation, etc.Do you mean with "larger system policies" the usage of online vs. offline buildpacks? Or are there configuration parameters in e.g. the CC or Diego to configure the caching policy? In other words: what is the global buildpack artifact caching policy for a standard https://github.com/cloudfoundry/cf-deployment/releases/tag/v1.40.0 Best regards, Stephan -----Original Message----- From: cf-dev@... [mailto:cf-dev@...] On Behalf Of Ben Hale Sent: Montag, 18. Juni 2018 20:23 To: Discussions about Cloud Foundry projects and the system overall. <cf-dev@...> Subject: Re: [cf-dev] Buildpack Cache Different buildpacks use this cache for different things. Ben Hale (CCd) may have more details about how the Java buildpack handles caching. In general, the purpose of the cache is to speed up build time and/or reduce data transfer during staging.The Java Buildpack treats the Buildpack cache as an opaque directory. This means that there are larger system policies about whether it's cached per-cell, per-foundation, etc. but from the perspective of the Java Buildpack, there is only a directory that may or may not contain cached artifacts. All artifacts that the Java Buildpack might download are cached upon retrieval. So if you are using an online buildpack and download a JVM, we'll only download once per buildpack-cache (again, the system-wide policies are what really govern how often this happens) and store it for future staging. In addition to the artifact itself, we also store the `Last-Modified` timestamp and the `ETag` if either of these is returned when the artifact is downloaded. For all subsequent uses of an artifact, the buildpack first attempts a download with `If-Modified-Since` and `If-None-Match`. If all goes well (i.e. the artifact hasn't changed on the server), a `304 Not Modified` response will be returned and we know that our cached copies are safe for use and they'll be served up to the application without and bytes downloaded. Cache hits are called out as part of staging output: ``` -----> Java Buildpack v4.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git#5dca820 -----> Downloading Jvmkill Agent 1.12.0_RELEASE from https://java-buildpack.cloudfoundry.org/jvmkill/trusty/x86_64/jvmkill-1.12.0_RELEASE.so (found in cache) -----> Downloading Open Jdk JRE 1.8.0_172 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk-1.8.0_172.tar.gz (found in cache) Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s) JVM DNS caching disabled in lieu of BOSH DNS caching -----> Downloading Open JDK Like Memory Calculator 3.13.0_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/trusty/x86_64/memory-calculator-3.13.0_RELEASE.tar.gz (found in cache) Loaded Classes: 16818, Threads: 250 -----> Downloading Client Certificate Mapper 1.6.0_RELEASE from https://java-buildpack.cloudfoundry.org/client-certificate-mapper/client-certificate-mapper-1.6.0_RELEASE.jar (found in cache) -----> Downloading Container Security Provider 1.13.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-security-provider/container-security-provider-1.13.0_RELEASE.jar (found in cache) -----> Downloading Spring Auto Reconfiguration 2.4.0_RELEASE from https://java-buildpack.cloudfoundry.org/auto-reconfiguration/auto-reconfiguration-2.4.0_RELEASE.jar (found in cache) ``` versus: ``` -----> Java Buildpack 222ce62 | https://github.com/cloudfoundry/java-buildpack.git#222ce62 -----> Downloading Jvmkill Agent 1.14.0_RELEASE from https://java-buildpack.cloudfoundry.org/jvmkill/trusty/x86_64/jvmkill-1.14.0_RELEASE.so (0.0s) -----> Downloading Open Jdk JRE 1.8.0_172 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk-1.8.0_172.tar.gz (0.9s) Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.4s) JVM DNS caching disabled in lieu of BOSH DNS caching -----> Downloading Open JDK Like Memory Calculator 3.13.0_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/trusty/x86_64/memory-calculator-3.13.0_RELEASE.tar.gz (0.0s) Loaded Classes: 16818, Threads: 250 -----> Downloading Client Certificate Mapper 1.6.0_RELEASE from https://java-buildpack.cloudfoundry.org/client-certificate-mapper/client-certificate-mapper-1.6.0_RELEASE.jar (0.0s) -----> Downloading Container Security Provider 1.14.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-security-provider/container-security-provider-1.14.0_RELEASE.jar (0.0s) -----> Downloading Spring Auto Reconfiguration 2.4.0_RELEASE from https://java-buildpack.cloudfoundry.org/auto-reconfiguration/auto-reconfiguration-2.4.0_RELEASE.jar (0.0s) ``` -Ben Hale Cloud Foundry Java Experience |
|
FINAL REMINDER: CAB call for June is Wednesday 06/20 @ 8a PST or 11a EST
Michael Maximilien
FYI...
toggle quoted message
Show quoted text
Tomorrow 8AM Pacific or 3PM UTC. Zoom soon. Best, dr.max ibm ☁ silicon valley, ca dr.max ibm ☁ silicon valley, ca On Jun 13, 2018, at 3:43 PM, Michael Maximilien <maxim@...> wrote:
|
|
Re: cf restart-app-instance and environment variables
#cf
Preetam Palwe
Thanks Dan - It's a reasonable guess!
Following link has some explanation about why it has not worked on Diego - (The documentation of cf restart-app-instance should have this mentioned.) https://github.com/cloudfoundry/cli/issues/777 As per above link - Diego team has done some work to propogate env var changes during restart-app-instance. Does anyone here know more about it? Is there any way to get env vars reflected using cf restart-app-instance or any other means without downtime? On other hand I also thought about using copy-source but that command require the target app to exist. Can we clone the app? Appreciate any help on this - Many Thanks ! ~Preetam |
|
UAA and SQL injections
#cf
Enrique Cano
Hi
Has CF UAA code been developed in a way that is protected against potential SQL injections? Thanks Enrique |
|
Re: cf restart-app-instance and environment variables
#cf
Daniel Mikusa
On Tue, Jun 19, 2018 at 12:45 AM, Preetam Palwe <preetam.palwe@...> wrote:
I'd guess that it's because you don't ever want to have an inconsistent state across your app instances. If you were able to use `cf restart-app-instance` and see this change then you'd have one app instance which could see it and possibly other app instances that cannot (at least until they're all restarted this way). Conversely, `cf restart` will restart all of your app instances so they'll all see the new variable and everything will be consistent. Inconsistency is bad, the platform is trying to protect you. Dan
|
|
CF+K8S SIG Call Schedule Change
Chip Childers <cchilders@...>
Rescheduling the call from this week to next week due to travel in Asia. -- The team working on the "containerize CFAR control plane" effort would like to demo their efforts during the next call. Public calendar has been updated. https://calendar.google.com/calendar/embed?src=cloudfoundry.org_oedb0ilotg5udspdlv32a5vc78%40group.calendar.google.com See you there! Chip Childers CTO, Cloud Foundry Foundation 1.267.250.0815 |
|
cf restart-app-instance and environment variables
#cf
Hello everyone !
I am observing that the new environment variable set to my application using cf set-env is not getting reflected in the container even after cf restart-app-instance is done. Why is it so? To give a brief context - I have an Java Spring Boot application which is deployed on PCF. I am setting a new env var using cf set-env. In order to reflect the env var in the application I understand that application restart is essential. (I don't need restage as my env var is not getting used in the buildpack.) But cf restart as per documentation create downtime. Hence I decided to scale my application to minimum 2 instances and then used cf restart-app-instance one by one for the 2 instances. (It's kind of rolling restart) I was expecting that the env var will get reflected in each instance but it has not happened. I checked this by both means - printing env vars in my application and doing cf ssh -i on each instance. In both cases I was not able to see the new env var. What could be wrong or am I missing something here? Versions I am using are CLI version 6.32.0+0191c33d9.2017-09-26 PCF version 1.12 Note - I did observed that cf restart reflected the env variables as expected. (only cf restart-app-instance failed to do that - why?) Appreciate any help on this - Many Thanks ! ~Preetam |
|
Re: Buildpack Cache
Ben Hale <bhale@...>
Different buildpacks use this cache for different things. Ben Hale (CCd) may have more details about how the Java buildpack handles caching. In general, the purpose of the cache is to speed up build time and/or reduce data transfer during staging.The Java Buildpack treats the Buildpack cache as an opaque directory. This means that there are larger system policies about whether it's cached per-cell, per-foundation, etc. but from the perspective of the Java Buildpack, there is only a directory that may or may not contain cached artifacts. All artifacts that the Java Buildpack might download are cached upon retrieval. So if you are using an online buildpack and download a JVM, we'll only download once per buildpack-cache (again, the system-wide policies are what really govern how often this happens) and store it for future staging. In addition to the artifact itself, we also store the `Last-Modified` timestamp and the `ETag` if either of these is returned when the artifact is downloaded. For all subsequent uses of an artifact, the buildpack first attempts a download with `If-Modified-Since` and `If-None-Match`. If all goes well (i.e. the artifact hasn't changed on the server), a `304 Not Modified` response will be returned and we know that our cached copies are safe for use and they'll be served up to the application without and bytes downloaded. Cache hits are called out as part of staging output: ``` -----> Java Buildpack v4.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git#5dca820 -----> Downloading Jvmkill Agent 1.12.0_RELEASE from https://java-buildpack.cloudfoundry.org/jvmkill/trusty/x86_64/jvmkill-1.12.0_RELEASE.so (found in cache) -----> Downloading Open Jdk JRE 1.8.0_172 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk-1.8.0_172.tar.gz (found in cache) Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s) JVM DNS caching disabled in lieu of BOSH DNS caching -----> Downloading Open JDK Like Memory Calculator 3.13.0_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/trusty/x86_64/memory-calculator-3.13.0_RELEASE.tar.gz (found in cache) Loaded Classes: 16818, Threads: 250 -----> Downloading Client Certificate Mapper 1.6.0_RELEASE from https://java-buildpack.cloudfoundry.org/client-certificate-mapper/client-certificate-mapper-1.6.0_RELEASE.jar (found in cache) -----> Downloading Container Security Provider 1.13.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-security-provider/container-security-provider-1.13.0_RELEASE.jar (found in cache) -----> Downloading Spring Auto Reconfiguration 2.4.0_RELEASE from https://java-buildpack.cloudfoundry.org/auto-reconfiguration/auto-reconfiguration-2.4.0_RELEASE.jar (found in cache) ``` versus: ``` -----> Java Buildpack 222ce62 | https://github.com/cloudfoundry/java-buildpack.git#222ce62 -----> Downloading Jvmkill Agent 1.14.0_RELEASE from https://java-buildpack.cloudfoundry.org/jvmkill/trusty/x86_64/jvmkill-1.14.0_RELEASE.so (0.0s) -----> Downloading Open Jdk JRE 1.8.0_172 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk-1.8.0_172.tar.gz (0.9s) Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.4s) JVM DNS caching disabled in lieu of BOSH DNS caching -----> Downloading Open JDK Like Memory Calculator 3.13.0_RELEASE from https://java-buildpack.cloudfoundry.org/memory-calculator/trusty/x86_64/memory-calculator-3.13.0_RELEASE.tar.gz (0.0s) Loaded Classes: 16818, Threads: 250 -----> Downloading Client Certificate Mapper 1.6.0_RELEASE from https://java-buildpack.cloudfoundry.org/client-certificate-mapper/client-certificate-mapper-1.6.0_RELEASE.jar (0.0s) -----> Downloading Container Security Provider 1.14.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-security-provider/container-security-provider-1.14.0_RELEASE.jar (0.0s) -----> Downloading Spring Auto Reconfiguration 2.4.0_RELEASE from https://java-buildpack.cloudfoundry.org/auto-reconfiguration/auto-reconfiguration-2.4.0_RELEASE.jar (0.0s) ``` -Ben Hale Cloud Foundry Java Experience |
|
Re: Buildpack Cache
Stephen Levine
The system buildpacks are cached on the cell and bind mounted read-only into each staging container. Buildpack URLs (to a git repo or a zip file) are downloaded every time staging occurs. On Mon, Jun 18, 2018 at 12:50 PM Stephan Merker <stephan.merker@...> wrote:
|
|
Re: Buildpack Cache
Stephan Merker
Thanks for the explanation.
I have one more question: Is there any caching for the buildpack itself? The CC coding looks like the buildpack is downloaded for each staging operation (either as zip file or via git clone). Is there a difference between system buildpacks and custom buildpacks when it comes to download and caching?
Best regards, Stephan
From: cf-dev@... [mailto:cf-dev@...]
On Behalf Of Stephen Levine
Sent: Donnerstag, 14. Juni 2018 22:04 To: Discussions about Cloud Foundry projects and the system overall. <cf-dev@...>; Ben Hale <bhale@...> Subject: Re: [cf-dev] Buildpack Cache
Hi Stephan,
The buildpack cache (aka "app cache," or "build artifacts cache") is a per-app cache that is stored as a tarball in the blob store and recovered when an existing app is restaged (regardless of app code or buildpack changes).
Different buildpacks use this cache for different things. Ben Hale (CCd) may have more details about how the Java buildpack handles caching. In general, the purpose of the cache is to speed up build time and/or reduce data transfer during staging.
Usage of the cache is documented here: https://docs.cloudfoundry.org/buildpacks/understand-buildpacks.html
-Stephen
On Thu, Jun 14, 2018 at 10:31 AM Stephan Merker <stephan.merker@...> wrote:
|
|
Re: Feedback on service instance sharing (experimental)
Lukas Lehmann
Great news, thans a lot for the update Matt! Am Mo., 18. Juni 2018 um 12:22 Uhr schrieb Matt McNeeney <mmcneeney@...>:
--
Freundliche Grüsse
Lukas Lehmann
|
|
Re: Feedback on service instance sharing (experimental)
Matt McNeeney
Hey Lukas, Thanks for checking in! We have had further feedback from users who have been trying out this feature and so far of the feedback has been very positive. Given that, we are likely to look into what we need to do to make this feature GA in the next few weeks. You can track this story to keep updated! Matt On Mon, Jun 18, 2018 at 9:43 AM Lukas Lehmann <lukas92lehmann@...> wrote:
|
|
Re: Feedback on service instance sharing (experimental)
Lukas Lehmann
Hi Matt, Just wanted to check back if there is something we can help to make this feature GA? Did you get any further feedback within the last month? Best regards, Lukas Am Mi., 16. Mai 2018 um 13:15 Uhr schrieb Matt McNeeney <mmcneeney@...>:
--
Freundliche Grüsse
Lukas Lehmann
|
|