cloudfoundry

Cloud Foundry / Bluemix load balancing

泄露秘密 提交于 2019-12-01 10:50:23
I know that by default, Bluemix / Cloud Foundry use round-robin load balancing . Is there a way to change that? If I deploy 2 apps with the same route, and want 90% of my traffic to go to blue, and 10% to green, is that possible? You would have to deploy more than two instances of the app to have better than 50-50 control over who sees what. If you have 10 instances, for example, and you update 1, then you could get your 90-10 split. Check out this CF CLI plugin: https://github.com/krujos/scaleover-plugin Configuring the load balancer is not possible. One workaround you could use to "simulate"

Non-http TCP connection on Cloudfoundry

点点圈 提交于 2019-12-01 07:54:49
I'm a nooby mobile developer trying to take advantage of cloudfoundry's service to run my server to handle some chats and character movements. I'm using Noobhub to achieve this (TCP connection between server and client using Node.js and Corona SDK's TCP connection API) So basically I'm trying a non-http TCP connection between Cloudfoundry(Node.js) and my machine(lua). Link to Noobhub(There is a github repo with server AND client side implementation. I am doing Client ... socket.connect("myappname.cloudfoundry.com", 45234) ... (45234 is from server's process.env.VCAP_APP_PORT value I retrieved

Non-http TCP connection on Cloudfoundry

て烟熏妆下的殇ゞ 提交于 2019-12-01 07:52:42
问题 I'm a nooby mobile developer trying to take advantage of cloudfoundry's service to run my server to handle some chats and character movements. I'm using Noobhub to achieve this (TCP connection between server and client using Node.js and Corona SDK's TCP connection API) So basically I'm trying a non-http TCP connection between Cloudfoundry(Node.js) and my machine(lua). Link to Noobhub(There is a github repo with server AND client side implementation. I am doing Client ... socket.connect(

What are the Benefits of Spring Cloud Dataflow?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 05:20:50
Based on what I've seen, creating a stream in Spring Cloud Dataflow (SCDF) will deploy the underlying applications, bind the communication service (like RabbitMQ), set the Spring Cloud Stream environment variables, and start the applications. This could all be done manually easily using a cf push command. Meanwhile, I've been running into some drawbacks with Spring Cloud Dataflow: SCDF Server is a memory hog on PCF (I have a stream with only 6 applications, and yet I'm needing about 10GB for the server) No flexibility on application naming, memory, instances, etc. (All the things that you

What are the Benefits of Spring Cloud Dataflow?

情到浓时终转凉″ 提交于 2019-12-01 03:46:32
问题 Based on what I've seen, creating a stream in Spring Cloud Dataflow (SCDF) will deploy the underlying applications, bind the communication service (like RabbitMQ), set the Spring Cloud Stream environment variables, and start the applications. This could all be done manually easily using a cf push command. Meanwhile, I've been running into some drawbacks with Spring Cloud Dataflow: SCDF Server is a memory hog on PCF (I have a stream with only 6 applications, and yet I'm needing about 10GB for

Pivotal CloudFoundry: Enforcing HTTPS (SSL)

那年仲夏 提交于 2019-11-30 19:20:25
问题 I want to enforce HTTPS for a Spring Boot application to be hosted at Pivotal CloudFoundry, and I think most of the applications would want this today. The common way of doing it, as I know, is using http.requiresChannel().anyRequest().requiresSecure() But this is causing a redirect loop. The cause, as I understand by refering to posts like this, is that the load balancer converts back https to http. That means, it has to be done at the load balancer level. So, is there some option to tell

404 Not Found nginx angular routing

冷暖自知 提交于 2019-11-30 07:09:05
I Have an Angular application. I run the command ng build --prod --aot to generate the dist folder. In the dist folder I created a file named Staticfile then I uploaded the dist folder to pivotal.io with the following commands: cf push name-app --no-start cf start name-app The app runs well. I have a nav bar, so when I change the path with navbar everything works fine. But when I do it manually (I enter the url myself) I have this error 404 Not Found nginx . This my app.component.ts: const appRoutes: Routes = [ { path: 'time-picker', component: TimePickerComponent }, { path: 'material-picker',

What is the point of Node.js [closed]

荒凉一梦 提交于 2019-11-29 23:01:17
Ok this is probably a little blunt and to the point, but what is the point/need for Node.js I've noticed it mainly through CloudFoundry but just not too sure what its supposed to be doing. However I am guessing its probably something pretty big as why else would VMWare be supporting it. Thanks in advance. slezica It's an... Efficient and 100% event driven IO framework, flexible enough to use the best underlying OS features it can find, presenting an API in a high-level programming language (the same language your client-side will most-likely use), implemented on top of the best available

Where to place Z/OS license file when push Cloud Foundry PHP app to Bluemix?

戏子无情 提交于 2019-11-29 17:57:09
I would like to connect from Bluemix to Z/OS system, using SecureGatway, but I don't have a Z/OS license file (most probably: db2consv_zs.lic file). I receive SQLSTATE=42968. The SG tunel looks okay. If I get the license.. where do I have to copy/install it when I push my local project to CIO Bluemix? Shall I copy it to the php buildpack ? And will it be registered in the cloud environment? Is there any other way to connect from a Blue Foundry PHP app to a blue zone Z/OS system? 1, License DB2 driver on Bluemix for zOS The license file must be placed into a folder of the PHP instance on the

Spring Security with HTTPS on CloudFoundry

江枫思渺然 提交于 2019-11-29 15:27:24
I tried to access my application on CloudFoundry with the following configuration in the spring security xml <intercept-url pattern="/signup*" access="permitAll" requires-channel="https" /> but it gives me error This webpage has a redirect loop However when I changed it to requires-channel="http" I can see my page normally. In both cases I used https on my application. Is this the expected behavior ? I have the same issue when I tried to secure my pages with HTTPS using Spring Security. From the discussion on CloudFoundry Support, seems they "terminate SSL connections at the router". See " Is