Skip to content

Commit

Permalink
Better timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
1stvamp committed Dec 8, 2023
1 parent 42f4e45 commit fc886b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
16 changes: 8 additions & 8 deletions wikipedia/operations/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,28 @@
"operation-type": "create_users_and_roles",
"skip_roles": 0,
"roles": 1000,
"track_scores": false,
"include-in-reporting": true
"include-in-reporting": true,
"request-timeout": 3600
},
{
"name": "create-100000-roles",
"operation-type": "create_users_and_roles",
"skip_roles": 1000,
"roles": 100000,
"track_scores": false,
"include-in-reporting": true
"include-in-reporting": true,
"request-timeout": 3600
},
{
"name": "create-500000-roles",
"operation-type": "create_users_and_roles",
"skip_roles": 100000,
"roles": 500000,
"track_scores": false,
"include-in-reporting": true
"include-in-reporting": true,
"request-timeout": 3600
},
{
"name": "reset-indices",
"operation-type": "reset_indices",
"track_scores": false,
"include-in-reporting": false
"include-in-reporting": false,
"request-timeout": 3600
}
3 changes: 1 addition & 2 deletions wikipedia/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ async def create_users_and_roles(es, params):
"lang": "painless",
"params": {"role": role},
},
"query": {"function_score": {"query": {"match_all": {}},
"random_score": {"seed": int(random.random()*1000), "field": "_seq_no"}}},
"query": {"function_score": {"query": {"match_all": {}}, "random_score": {}}},
},
conflicts="proceed",
)
Expand Down

0 comments on commit fc886b6

Please sign in to comment.