DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
darasion

原来同一个客户端的请求不一定会被同一个 Instance 接受。

  •  
  •   darasion · Dec 7, 2010 · 3023 views
    This topic created in 5638 days ago, the information mentioned may be changed or developed.
    如题,刚刚的实践中证明了这件事。


    1、同一个客户端的请求不一定会被同一个 Instance 接受,而是随机选择某一个Instance来处理。
    2、还发现一个问题,就是不同的 Instance 缓存着着不同的 import 。
    3、文档中所说的“a single web server” 原来是指一个单一的"Instance": http://code.google.com/appengine/docs/python/runtime.html#App_Caching


    试验是这样的,在某个module里边一个全局变量:
    https://gist.github.com/731776

    结果是:myhandler.py 频繁刷新后,结果不是一直递增的。而是时而大,时而小。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2988 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 04:41 · PVG 12:41 · LAX 21:41 · JFK 00:41
    ♥ Do have faith in what you're doing.