DavidB
DavidB

Reputation: 2234

Route request to specific instance

Does anybody know if GAE provides a way to route a request to a specified instance? The startup of new instances is killing me on facebook URL linter requests since they timeout before a new instance can start up sometimes. I have no way to control this timeout either. So what I'd like to do is to keep specified instances idle for these calls without needing to hack around it with cron jobs. I think this would be more cost effective as well.

Upvotes: 1

Views: 786

Answers (3)

Christopher
Christopher

Reputation: 453

The new modules allows for direct addressing of instances. Much like how backends used to work.

Like so:

http://instance.version.module.app-id.appspot.com

Read more in the documentation here.

Upvotes: 2

Nick Johnson
Nick Johnson

Reputation: 101149

This is not possible for frontends, but you can have requests directed to specific backends, and you can make backends externally accessible if you choose.

I'd suggest working on your app to improve loading time, though. If it's taking so long a bot gives up, that's got to have serious implications for usability by your users. Also, make sure you've got warmup requests enabled.

Upvotes: 0

Albert
Albert

Reputation: 3651

It sounds like you need a dedicated set of "always alive" instances to handle just those calls. Backends might be a good solution for that. You can set a separate url address to route to a specific backend.

http://code.google.com/appengine/docs/python/backends/overview.html#Addressing_Backends

Upvotes: 0

Related Questions