Circuit in the wall
Circuit in the wall

Reputation: 549

How to limit google app engine instances to just one?

I'm using go language and it seems good practice to communicate between different threads/routines by channels and locks instead of datastore. However, it appears that it's not possible between two instances if there's more than one instance running. Is there a way to make it not open a second one, even if there's high traffic?

Upvotes: 2

Views: 2125

Answers (3)

proppy
proppy

Reputation: 10504

You should use Backends if you want fine to control the spawning and shutdown of instances.

Upvotes: 0

Christopher Ramírez
Christopher Ramírez

Reputation: 1720

To answer the question in the title: Go to app dashboard, on left you will find a Application settings link. In the admin UI you will find two sliders, drag the first one at the very left and the second (Min pending Latency) to the max allowed value (right). And last but not least, optimize your request response time.

Even if you do the above there's no guarantee that GAE will not fire up a second instance.

Upvotes: 9

Michele Orsi
Michele Orsi

Reputation: 762

I don't think it is absolutely the right approach .. You have to think about scalability issues from the first day of your design .. As christopher said I would go with memcache!

Upvotes: 0

Related Questions