Created
April 16, 2010 09:04
-
-
Save takeru/368192 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ServletFilter | |
| initial Status=1. | |
| default app_ttl=2 | |
| default ttl=5 or 10 or ? | |
| [Status=1]: Java loaded(only 1sec.). Need to load JRuby. | |
| - "App request" AND "Status=1 less than 1 minute" | |
| - async-kick_url(ttl=5?) | |
| - async-kick_url(ttl=5?) | |
| - if 0<app_ttl; redirect to self(app_ttl=app_ttl-1); else "sorry!" | |
| - "kick_url request" | |
| - load "JRuby" => about 10sec. | |
| - set Status=2 | |
| [Status=2]: JRuby loaded. Need to load Rails. | |
| - "App request" AND "Status=2 less than 1 minute" | |
| - async-kick_url(ttl=5?) | |
| - if 0<app_ttl; redirect to self(app_ttl=app_ttl-1); else "sorry!" | |
| - "kick_url request" | |
| - load "Rails" => about 20sec. | |
| - set Status=3 | |
| [Status=3]: Rails loaded. Ready to process app. | |
| - "App request" | |
| - process app. | |
| - "kick_url request" | |
| - if 0<ttl; async-kick_url(ttl=ttl-1) | |
| * To hit kick_url, how many URLFetch requests are needed? | |
| - 0 instance. | |
| +1 instance. => ??? | |
| +10 instance. => ??? | |
| - 1 instance with 20req/min. = 20req/min. | |
| +1 instance. => ??? | |
| +10 instance. => ??? | |
| - 10 instance with 20req/min. = 200req/min. | |
| +1 instance. => ??? | |
| +10 instance. => ??? | |
| - 50 instance with 20req/min. = 1000req/min. | |
| +1 instance. => ??? | |
| +10 instance. => ??? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment