Skip to content
Snippets Groups Projects
Verified Commit dd7364f2 authored by Denis Smirnov's avatar Denis Smirnov
Browse files

fix: stress test data loading script

parent 9b32fa04
No related branches found
No related tags found
1 merge request!1414sbroad import
......@@ -152,10 +152,10 @@ print("loading data was started")
local storage1 = nb.connect("admin:app-cluster-cookie@localhost:3302")
local storage2 = nb.connect("admin:app-cluster-cookie@localhost:3304")
storage1:eval("return box.space.VEHICLE_ACTUAL:truncate();")
storage1:eval("return box.space.VEHICLE_HISTORY:truncate();")
storage2:eval("return box.space.VEHICLE_ACTUAL:truncate();")
storage2:eval("return box.space.VEHICLE_HISTORY:truncate();")
storage1:eval("return box.space.vehicle_actual:truncate();")
storage1:eval("return box.space.vehicle_history:truncate();")
storage2:eval("return box.space.vehicle_actual:truncate();")
storage2:eval("return box.space.vehicle_history:truncate();")
for i = 1, record_count, 1 do
api:call("insert_record", {
......
......@@ -4,7 +4,7 @@ router:
roles:
- failover-coordinator
- vshard-router
- app.roles.custom
- app.roles.api
all_rw: false
s-1:
instances:
......@@ -12,6 +12,7 @@ s-1:
- s1-replica
roles:
- vshard-storage
- app.roles.storage
weight: 1
all_rw: false
vshard_group: default
......@@ -21,6 +22,7 @@ s-2:
- s2-replica
roles:
- vshard-storage
- app.roles.storage
weight: 1
all_rw: false
vshard_group: default
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment