Non web app deployment via CF

282 views
Skip to first unread message

rosh...@gmail.com

unread,
Feb 27, 2014, 8:41:50 PM2/27/14
to vcap...@cloudfoundry.org
Is it possible to deploy non-web applications via CF? e.g. apps that do background processing, and don't necessarily expose a web URL. How common is non-web apps on CF?
Message has been deleted

billc...@starkandwayne.com

unread,
Feb 27, 2014, 11:09:14 PM2/27/14
to vcap...@cloudfoundry.org, rosh...@gmail.com
I can't speak to the commonality of certain use cases but here is an example that has some background processing.


 I am not an author on that project but I am pointing you there because it appears to have 3 components of the non web service / background process type and it is an example done by core members of the team.  The producer-process, worker-process and autoscaler-process all appear to be background processing components.  Certainly with a bosh release you can start and monitor a process that does just about anything you want.  Most of my experience is with BOSH as an individual toolchain so I can speak to that as being suitable for your request  and I point to that Cloudfoundry example to show you that this type of thing is being done. I hope that is helpful. 


- Bill

Daniel Mikusa

unread,
Feb 28, 2014, 7:29:16 AM2/28/14
to vcap...@cloudfoundry.org
Yes, it is definitely possible. When you push your app, use the “—no-route” option (or the equivalent "no-route: true” in your manifest). This will instruct CF not to bind a route to your application, which is critical.

--no-route Do not map a route to this app

If you bind a route to the application, CF will expect you to listen for requests on the port that it assigns to your application. If you are not listening on that port, and you probably won't be since it’s just a background processing app, it’ll think your application has crashed.

Beyond that, you just need to structure your application so it loops and runs forever.

Dan


On Feb 27, 2014, at 8:41 PM, rosh...@gmail.com wrote:

> Is it possible to deploy non-web applications via CF? e.g. apps that do background processing, and don't necessarily expose a web URL. How common is non-web apps on CF?
>
> To unsubscribe from this group and stop receiving emails from it, send an email to vcap-dev+u...@cloudfoundry.org.

Reply all
Reply to author
Forward
0 new messages