cloudfoundry

How can I prevent Sidekiq processing new jobs based on code version?

梦想的初衷 提交于 2019-12-11 06:56:26
问题 We are deploying versions of a sidekiq worker to Cloud Foundry as part of a continuous delivery pipeline. We need to stop workers processing new jobs if they are no longer the latest version. So: Worker v1 is running and performing a 30 min job. We deploy v2 of the worker code. v1 should continue with current jobs but not start any new ones. CloudFoundry won't allow us to send USR1, so we need a solution that allows the workers to determine if they are the latest version before every job

How to access MongoDB values/data after binding to cloud foundry?

只愿长相守 提交于 2019-12-11 05:57:58
问题 I am using spring boot and created a web application using a mongodb database. Locally I use command prompt "mongod" and "mongo" where I can query the data that I have inputted in the UI. My current application is using MongoDb running on localhost with default port 27017. My web application reflect the data that is stored in the database. When I push this application to cloud foundry, and bind the MONGODB service, it uses another database. Where and how can I view/access all the data that

Manually route to application instances

空扰寡人 提交于 2019-12-11 05:54:27
问题 As an OpenPaaS, Cloud Foundry supports to scale up and down application instances just with simple VMC command: vmc instances <appname> <num|delta> , as I know. Even Cloud Foundry supports dynamically route the "user" requests to the instances. It's very good! And here, what I want to know is if Cloud Foundry supports that I manually (maybe some commands or other technicalities) route for using the instance? For example, when I scale up two instances and one of them is very busy to response

“fatal error: sql.h” with unixODBC and pyodbc as a vendor app dependency

我的梦境 提交于 2019-12-11 05:23:13
问题 I'm trying to add unixODBC as a vendor app dependency, as per notes that are outlined here: https://github.com/cloudfoundry/python-buildpack/issues/34, but I'm still getting fatal error: sql.h: No such file or directory. I've created a Minimal, Verifiable, Complete script below to facilitate readers with reproducing my issue: mkdir new_app cd new_app cat <<EOF>requirements.txt pyodbc==4.0.17 EOF cat <<EOF>manifest.yml applications: - name: pyodbc-test memory: 128M EOF cat <<EOF>.profile

“None of the configured nodes are available” - A Run Time Erro on Cloud Foundry

有些话、适合烂在心里 提交于 2019-12-11 04:53:46
问题 A JHipster generated app is running fine on my local box. It doesn't run properly on CF. Here are some related log messages. 2017-07-18T15:54:52.925-07:00 [RTR/4] [OUT] abc.cfapps.io - [2017-07-18T22:54:52.660+0000] "POST /api/suppliers?cacheBuster=1500418492191 HTTP/1.1" 500 1973 103 "https://abc.cfapps.io/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/58.0.3029.110 Chrome/58.0.3029.110 Safari/537.36" "10.10.66.225:14527" "10.10.149.25:61049" x

App to App communication in Cloud Foundry

孤人 提交于 2019-12-11 04:28:42
问题 Assume you want to deploy 2 apps of which one provides some API to the second application. With services I'd just bind the service (or declare it as dependency in my manifest) to my application and hence get the information regarding host, port and credentials passed to my application (e.g. via env variables in node.js). Is there a similiar mechanism for application to application "communication"? So far my approach is to use a RabbitMQ service (or any message broker/queue) which both

Restify on Cloudfoundry 'invalid ELF header'

十年热恋 提交于 2019-12-11 03:19:49
问题 I'm deploying a node.js app to Cloudfoundry, the only module dependency is restify. I've tried pushing it with my local node_modules directory and also using npm shrinkwrap and 'ignoreModules' in cloudfoundry.json but always end up with this in the stdout.log: { stack: [Getter/Setter], arguments: undefined, type: undefined, message: '/var/vcap/data/dea/apps/myapp-0-6f9cf62f9bbe58f5d2eb13a94acb5d3a/app/node_modules/restify/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node:

grails mongodb connection refused

左心房为你撑大大i 提交于 2019-12-11 01:57:48
问题 My grails app can connect to my local mongodb and works fine but when I deploy to cloud foundry, I get a connection refused error trying to connect to mongodb on cf. I bound a mongodb service to my app, but it still can't connect? barry-alexanders-MacBook-Pro:~ barryalexander$ vmc apps +-------------+----+---------+-------------------------+-----------------+ | Application | # | Health | URLS | Services | +-------------+----+---------+-------------------------+-----------------+ | RelCal | 1

How do I bundle a Custom C Shared Library with Java Application in Cloud Foundry?

徘徊边缘 提交于 2019-12-11 00:07:45
问题 I have previously been deploying a java application successfully in Cloud Foundry. However, now the developers have added a shared library compiled from C. I have added the .so to the .zip file (I'm using universal packager and deploying to Cloud Foundry by zip file) and ensured the .so is executable. However, when I deploy I get an error: 2016-12-23T14:39:01.013+00:00 [STG/0] [OUT] -----> Java Buildpack Version: eba4df6 | git://github.com/cloudfoundry/java-buildpack.git#eba4df6 2016-12-23T14

Cloud foundry app status or health notification?

断了今生、忘了曾经 提交于 2019-12-10 22:17:22
问题 Is there a way to get some notification when a Cloud Foundry application fails or is unreachable? I mean to register to some deployed app and if the status of the application is changed to failed or something, I want to receive a notification. 回答1: On Pivotal Cloud Foundry, when a app crashes, an event is emitted thru the firehose. PCF Metrics tile, available from Pivotal, can be deployed to your PCF foudnation. PCF Metrics will track all events for apps running on the foundation and are