Re: How Warden limit socket queue?
Matthew Sykes <matthew.sykes@...>
As a user, you can't. Even though somaxconn is associated with the network
toggle quoted message
Show quoted text
namespace, you need to be privileged (root) to change it. If you wanted a higher default across all containers, you could modify warden to do that as part if its net setup (linux/skeleton/net.sh). On Mon, Nov 2, 2015 at 3:38 AM, yancey0623 <yancey0623(a)163.com> wrote:
Dear all! --
Matthew Sykes matthew.sykes(a)gmail.com |
|
How Warden limit socket queue?
Yancey
Dear all! I pushed an app with uwsgi, but it crashed. After investigation, the argument “listen” in uwsgi.ini(uwsgi config file) is cause of crash. it’s so large, when i reduce it from 256 to 128, it will be ok. here is the error info 2015-11-02T16:35:11.57+0800 [App/0] ERR Listen queue size is greater than the system max net.core.somaxconn (128). 2015-11-02T16:35:11.57+0800 [App/0] ERR VACUUM: pidfile removed.
my os argument is: paas@tsh-cf-dev-01:~/hello-python$ cat /proc/sys/net/core/somaxconn 1024
Who knows where can i config these network args.? |
|
Re: Error to make a Request to update password in UAA
Juan Antonio Breña Moral <bren at juanantonio.info...>
Good morning,
The user which I use has the following groups: [ { value: 'c6032d43-5eb6-4719-8ff5-5ec3b6bf7cf8', display: 'approvals.me', type: 'DIRECT' }, { value: 'dead2fa1-02f3-46a4-9072-5315e7c692ac', display: 'cloud_controller.read', type: 'DIRECT' }, { value: 'efe5e709-3c75-47e2-a921-d7efc1535a7d', display: 'doppler.firehose', type: 'DIRECT' }, { value: '7b545c0e-7cd4-4ca3-87f6-0458594f928d', display: 'openid', type: 'DIRECT' }, { value: '7b2e9bac-606f-4e03-87a8-f8121616521f', display: 'cloud_controller_service_permissions.read', type: 'DIRECT' }, { value: '8605ea52-a0d5-4801-91c8-cf8cb6f79c4b', display: 'cloud_controller.write', type: 'DIRECT' }, { value: '156bb655-4ef4-4068-a0ed-fa877e03eb51', display: 'uaa.user', type: 'DIRECT' }, { value: '67c233cf-5950-4d03-a534-016d1d3baf15', display: 'scim.read', type: 'DIRECT' }, { value: 'e08cbc0b-a032-4c03-86ed-03e6b33a585e', display: 'notification_preferences.write', type: 'DIRECT' }, { value: '084442d8-fa2c-416e-9163-9f26ea928316', display: 'notification_preferences.read', type: 'DIRECT' }, { value: 'a4a76783-2440-46df-bacb-5ea3e3d8cb82', display: 'cloud_controller.admin', type: 'DIRECT' }, { value: '1b48d072-6715-40a4-b01c-f4f8ede67db9', display: 'password.write', type: 'DIRECT' }, { value: 'e7ed28ab-3a6e-429a-9b4b-fcf921e1b5dd', display: 'oauth.approvals', type: 'DIRECT' }, { value: '203a26f5-c022-4b94-8368-16fb8eec2b37', display: 'scim.write', type: 'DIRECT' }, { value: '52ed4af3-1a7b-413d-9189-ab2e2b750d8b', display: 'scim.me', type: 'DIRECT' } ] Is OK to update the password for another user created with this account? Juan Antonio |
|
Re: CFScaler - CloudFoundry Auto Scaling
Gwenn Etourneau
Nice things !
Do you have any documentation ?? Thanks On Mon, Nov 2, 2015 at 3:57 PM, Nguyen Dang Minh <nguyendangminh(a)gmail.com> wrote: Hi CF nuts, |
|
CFScaler - CloudFoundry Auto Scaling
Nguyen Dang Minh
Hi CF nuts,
I'm from FPT Software. We've just opened source CFScaler - auto scaling feature for CloudFoundry. The repository locates here: https://github.com/cloudfoundry-community/cfscaler Auto scaling seems a high demand feature in the CF community, but we didn't find it in any open source CF distribution. So we decided to develop it ourselves. CFScaler is being used in our some workloads, it serves well enough. There's some stuffs need to be done: code cleanup, refactor, document,... Hope it'll be ready for you guys in one week later. CFScaler still needs to be improved, we'll public the milestone soon. At FPT Software we have CF Team and dedicated people for maintaining and developing CFScaler. All of your contributions are welcomed: code, submit issue, idea, feature request,... Enjoy it. Regards, MinhND -- Nguyen Dang Minh - 阮登明 http://www.minhnd.com |
|
CloudFoundry scalibility benchmark
harry zhang
Hi guys,
We have been using cloud foundry as our first class PaaS layer since it was released, but for now our cluster is still limited to 100 servers. So I wonder if there's scalibility benchmark[1] for cloud foundry, including deigo? [1] For example, kubernetes claim that before v1.1 release, their goal is 100 nodes with 30 pod/per node. See: http://blog.kubernetes.io/2015/09/kubernetes-performance-measurements-and.html |
|
Re: cloud_controller_ng performance degrades slowly over time
Matt Cholick
Amit,
toggle quoted message
Show quoted text
It looks like consul isn't configured as a recursive resolver. When running the above code, resolving fails on the first nameserver and the script fails. resolv-replace's TCPSocket.open is different from the code http.rb (and thus api) is using. http.rb is pulling in 'net/protocol'. I changed the script, replacing the require for 'resolv-replace' to 'net/protocol' to match the cloud controller. Results: 3286 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 4 ms | dns_close: 0 ms 3287 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 5 ms | dns_close: 0 ms 3288 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 6 ms | dns_close: 0 ms 3289 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 5 ms | dns_close: 0 ms 3290 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 5 ms | dns_close: 0 ms 3291 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 5 ms | dns_close: 0 ms 3292 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 5 ms | dns_close: 0 ms 3293 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 5 ms | dns_close: 0 ms 3294 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 2008 ms | dns_close: 0 ms 3295 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 4010 ms | dns_close: 0 ms 3296 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 4010 ms | dns_close: 0 ms 3297 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 4006 ms | dns_close: 0 ms 3298 -- ip_open: 2 ms | ip_close: 0 ms | dns_open: 4010 ms | dns_close: 0 ms 3299 -- ip_open: 3 ms | ip_close: 0 ms | dns_open: 4011 ms | dns_close: 0 ms 3300 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 4010 ms | dns_close: 0 ms 3301 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 4011 ms | dns_close: 0 ms 3302 -- ip_open: 1 ms | ip_close: 0 ms | dns_open: 4010 ms | dns_close: 0 ms And the consul logs, though there's nothing interesting there: https://gist.github.com/cholick/03d74f7f012e54c50b56 On Fri, Oct 30, 2015 at 5:51 PM, Amit Gupta <agupta(a)pivotal.io> wrote:
Yup, that's what I was suspecting. Can you try the following now: |
|
Does warden container/daemon allow swap?
Shaozhen Ding
I looked into the source code of warden.
Realized that warden sets these two cgroup memory settings https://github.com/cloudfoundry/warden/blob/76010f2ba12e41d9e8755985ec874391fb3c962a/warden/lib/warden/container/features/mem_limit.rb#L108 Both memory.limit_in_bytes and memory.memsw.limit_in_bytes are set to the same value, which means the memory and memory + swap are the exact same value. Does this mean the processes running in warden container can not swap at all? Since before swap, the container will be killed by the OOM killer. Wonder if this is a good strategy? BTW, looking at docker. By default, it set memory.memsw.limit_in_bytes = 2 * memory.limit_in_bytes, which gives the application process some swap room. |
|
Re: Source IP ACLs
Noburou TANIGUCHI
We have proprietarily implemented the feature into Gorouter, but now similar
functionality will probably achieved by Route Service [1]. There seems little information [2] about it and I also want to know the progress. [1] https://docs.google.com/document/d/1bGOQxiKkmaw6uaRWGd-sXpxL0Y28d3QihcluI15FiIA/edit#heading=h.8djffzes9pnb [2] https://www.pivotaltracker.com/n/projects/966314 Carlo Alberto Ferraris-2 wrote Is there any provision for restricting the source IPs that are allowed to ----- I'm not a ... noburou taniguchi -- View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-Source-IP-ACLs-tp2518p2544.html Sent from the CF Dev mailing list archive at Nabble.com. |
|
[abacus] Abacus v0.0.2 available
Jean-Sebastien Delfino
I'm happy to announce the availability of CF Abacus v0.0.2 (incubating).
Abacus provides usage metering and aggregation for Cloud Foundry services and app runtimes. I'd like to thank the Abacus committers as well as all the contributors who helped test our v0.0.2-rc1 and rc2 release candidates and provided feedback, issues and pull requests leading to the release of Abacus v0.0.2. The release Git tag and release notes can be found on Github: https://github.com/cloudfoundry-incubator/cf-abacus/releases/tag/v0.0.2 The CI build can be found on Travis CI: https://travis-ci.org/cloudfoundry-incubator/cf-abacus/builds/88470969 The npm modules can be found on npmjs: https://www.npmjs.com/search?q=cf-abacus Please feel free to ask any questions about this release of Abacus on this list. Issues or -- even better -- pull requests are welcome on Github as well! For more info on Abacus please visit: https://github.com/cloudfoundry-incubator/cf-abacus/tree/v0.0.2 Thanks! - Jean-Sebastien |
|
Re: cloud_controller_ng performance degrades slowly over time
Amit Kumar Gupta
Yup, that's what I was suspecting. Can you try the following now:
toggle quoted message
Show quoted text
1. Add something like the following to your cf manifest: ... jobs: ... - name: cloud_controller_z1 ... properties: consul: agent: ... log_level: debug ... This will set the debug level for the consul agents on your CC job to debug, so we might be able to see more for its logs. It only sets it on the job that matters, so when you redeploy, it won't have to roll the whole deployment. It's okay if you can't/don't want to do this, I'm not sure how much you want to play around with your environment, but it could be helpful. 2. Add the following line to the bottom of your /etc/resolv.conf options timeout:4 Let's see if the slow DNS is on the order of 4000ms now, to pin down where the 5s is exactly coming from. 3. Run the following script on your CC box: require 'resolv-replace' UAA_DOMAIN = '--CHANGE-ME--' # e.g. 'uaa.run.pivotal.io' UAA_IP = '--CHANGE-ME-TOO--' # e.g. '52.21.135.158' def dur(start_time, end_time) "#{(1000*(end_time-start_time)).round} ms" end 1.step do |i| ip_start = Time.now s = TCPSocket.open(UAA_IP, 80) ip_open = Time.now s.close ip_close = Time.now dns_start = Time.now s = TCPSocket.open(UAA_DOMAIN, 80) dns_open = Time.now s.close dns_close = Time.now ip_open_dur = dur(ip_start, ip_open) ip_close_dur = dur(ip_open, ip_close) dns_open_dur = dur(dns_start, dns_open) dns_close_dur = dur(dns_open, dns_close) puts "#{"%04d" % i} -- ip_open: #{ip_open_dur} | ip_close: #{ip_close_dur} | dns_open: #{dns_open_dur} | dns_close: #{dns_close_dur}" end You will need to first nslookup (or otherwise determine) the IP that the UAA_DOMAIN resolves to (it will be some load balancer, possibly the gorouter, ha_proxy, or your own upstream LB) 4. Grab the files in /var/vcap/sys/log/consul_agent/ Cheers, Amit On Fri, Oct 30, 2015 at 4:29 PM, Matt Cholick <cholick(a)gmail.com> wrote:
Here's the results: |
|
Re: cloud_controller_ng performance degrades slowly over time
Matt Cholick
Here's the results:
https://gist.github.com/cholick/1325fe0f592b1805eba5 The time all between opening connection and opened, with the corresponding ruby source in http.rb's connect method: D "opening connection to #{conn_address}:#{conn_port}..." s = Timeout.timeout(@open_timeout, Net::OpenTimeout) { TCPSocket.open(conn_address, conn_port, @local_host, @local_port) } s.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1) D "opened" I don't know much ruby, so that's as far I drilled down. -Matt |
|
Re: Error to make a Request to update password in UAA
Juan Antonio Breña Moral <bren at juanantonio.info...>
Many thanks for the reply.
Next monday in the morning, I will update the class to test again. Cheers |
|
Re: cloud_controller_ng performance degrades slowly over time
Amit Kumar Gupta
Ah, my bad. We need to patch the logger to somehow include timestamps when
toggle quoted message
Show quoted text
the net/http library calls << on it instead of calling info: require 'uri' require 'net/http' require 'logger' SYSTEM_DOMAIN = '--CHANGE-ME--' u = URI.parse('http://uaa.' + SYSTEM_DOMAIN + '/login') h = Net::HTTP.new(u.host, u.port) l = Logger.new('/var/vcap/data/tmp/slow-dns.log') def l.<<(msg); info(msg); end h.set_debug_output(l) 1.step do |i| l.info('Request number: %04d' % i) s = Time.now r = h.head(u.path) d = Time.now - s l.info('Duration: %dms' % (d * 1000).round) l.info('Response code: %d' % r.code) l.error('!!! SLOW !!!') if d > 5 end On Fri, Oct 30, 2015 at 7:35 AM, Matt Cholick <cholick(a)gmail.com> wrote:
Amit, |
|
Re: Problem deploying basic Apps on PWS
Charles Wu
You can also download the latest CLI.
Note all new apps deployed on PWS are defaulted to Diego as the app runner environment. The enable-diego is only needed to switch DEA deployed apps to use Diego. br, Charles On Fri, Oct 30, 2015 at 1:56 AM, Juan Antonio Breña Moral < bren(a)juanantonio.info> wrote: Hi Charles, |
|
Re: Permission denied error when unpacking droplet
Noburou TANIGUCHI
I am not sure at all but it might be related umask.
What is the umask of the user you deployed your CF (I assume you are talking about a private CF). I've been feeling there's an implicit assumption in the cf deployment with bosh and cf-release that umask is 022 (or 002; Ubuntu default). ----- I'm not a ... noburou taniguchi -- View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-Re-Permission-denied-error-when-unpacking-droplet-tp2441p2537.html Sent from the CF Dev mailing list archive at Nabble.com. |
|
Re: how to get the CF endpoint API in my program
Noburou TANIGUCHI
There may be a proposal that adds "CC endpoint" to the `VCAP_APPLICATION`
environment variable. It seems no additional risk exists. However, there must be one or more reasonable use cases for it. Why do you want to know the CF endpoint from your app running on CF, zooba? ----- I'm not a ... noburou taniguchi -- View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-how-to-get-the-CF-endpoint-API-in-my-program-tp2385p2536.html Sent from the CF Dev mailing list archive at Nabble.com. |
|
How to install a custom stack in your own Cloud Foundry cluster?
Daniel van Dorp
This is a follow-up of this Github conversation: https://github.com/cloudfoundry/stacks/issues/20
Currently we ship the Java Runtime and various dependencies in the droplet but found the packaging, uploading to the blob store, downloading and unpacking steps to be quite slow (> 1 minute). As we only have apps in our cluster which have common dependencies (Oracle Java Runtime, large .jars), it would be great if we can build our custom stack and install it on our CF cluster, so we can optimize the buildpack to omit certain things from the droplet as they are already present on the root fs. Can this (something like "cf create-stack"/"cf add-stack") be done? Compiling our own stack was easy; forking https://github.com/cloudfoundry/stacks and modify it to our needs by adding things like the Oracle Java Runtime to be available by default. However, we have no clue on how to install/add it in CF and make it the default stack. We hope others might have production experience with making their own stacks. Some more context: this is for our users' development environments, so it's mostly about getting changed code live as quickly as possible. Downtime is not an issue. The problem is that the droplet gets pretty bloated (150M+, while the app itself is < 10M) and transferring that is slow. We're aiming to minimize time from app push to accepting http requests. JT Archie (@jtarchie on Github) was already kind enough to provide us with some helpful information, but has pointed us in this direction for further questions and/or help. |
|
Re: Configured SSL/TLS for Cloud Foundry 170 release
Noburou TANIGUCHI
Hi Pravin,
I may be hitting a wrong point, but I've recently heard a similar problem, so I want ask: Did you assign SpaceDeveloper role of the target space to the user you are using for `cf push`? If the answer is NO, you should set the space role to the user. cf. https://docs.cloudfoundry.org/adminguide/cli-user-management.html#space-roles Pravin Mishra wrote Hello All, ----- I'm not a ... noburou taniguchi -- View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-Configured-SSL-TLS-for-Cloud-Foundry-170-release-tp2338p2534.html Sent from the CF Dev mailing list archive at Nabble.com. |
|
Re: PHP extension 'gettext' doesn't work?
Mike Dalessio
Unfortunately, the apt-buildpack only works for installing staging-time
toggle quoted message
Show quoted text
dependencies, and not runtime dependencies. It could be made to work, but the core buildpacks team simply have not done so because nobody has asked (yet). ;) On Fri, Oct 30, 2015 at 1:37 PM, Guillaume Berche <bercheg(a)gmail.com> wrote:
I agree the inclusion of the lang pack into linuxfs2 seems best option. |
|