forked from AlexanderChudnovets/magnetodb-test-bench
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add list_tables, fix benchmark_runner
- Loading branch information
Charles Wang
committed
Oct 15, 2014
1 parent
abd8e8f
commit fa75817
Showing
8 changed files
with
914 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from setup import setup | ||
from teardown import cleanup |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
SLAVE_COUNT = 2 | ||
LOCUST_COUNT = 10 | ||
HATCH_RATE = 10 | ||
MIN_WAIT = 0 | ||
MAX_WAIT = 0 | ||
TABLES_CREATED_3_FIELDS_NO_LSI = 10 | ||
TABLES_CREATED_3_FIELDS_1_LSI = 10 | ||
TABLES_CREATED_10_FIELDS_5_LSI = 10 | ||
TABLE_NAME = "item_metadata" | ||
LIMIT = 10 | ||
TOKEN_PROJECT = "/tmp/token_project.txt" | ||
TABLE_LIST='/tmp/table_list.txt' | ||
ITEM_KEY_LIST = '/tmp/item_key_list.txt' | ||
CASSANDRA_NODES='127.0.0.1' | ||
CASSANDRA_CLEANER='/root/scripts/cleaner.sh' | ||
|
||
token_req_headers = { | ||
'Content-Type': 'application/json', | ||
'Accept': 'application/json' | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import json | ||
import os.path | ||
|
||
import config as cfg | ||
|
||
|
||
TOKEN = None | ||
PROJECT_ID = None | ||
|
||
if os.path.isfile(cfg.TOKEN_PROJECT): | ||
with open(cfg.TOKEN_PROJECT) as token_proj_file: | ||
token_project = json.load(token_proj_file) | ||
TOKEN = token_project['token'].strip() | ||
PROJECT_ID = token_project['project_id'].strip() | ||
|
||
req_headers = { | ||
'Content-Type': 'application/json', | ||
'Accept': 'application/json', | ||
'X-Auth-Token': TOKEN | ||
} |
Oops, something went wrong.