アクション:次のコードを実行します。
#Code to fetch a key from Couachbase serially again and again
from couchbase.client import Couchbase
couchbase = Couchbase("ubuntumartini03", "default", "")
bucket = couchbase["martini-tag-manager"]
while True:
print bucket.get("somekey")
結果:このコードを実行すると、毎秒 500 の opsを作成できました。
アクション:このコードの 4 つのインスタンスを実行しました。
結果:毎秒 2000 の opsを作成できました。
結論:ボトルネックは、上記のコードの場合、couchbase が 1 秒あたりに実行できる最大可能オペレーション数、または特定のマシンが実行できる最大可能オペレーション数以外のものです。
質問:
How to make max possible ops per sec by single instance itself?