more presets and timing functionality to data generator

This commit is contained in:
AlanCoding 2017-01-25 09:16:07 -05:00
parent f265d2fe0f
commit c22cf2f7e6
2 changed files with 20 additions and 15 deletions

View File

@ -1,15 +1,15 @@
resource medium Jan2017 jobs1k jobs10k
organizations 500 1 1 1
users 5000 3 3 3
teams 500 2 2 2
projects 1000 30 30 30
job_templates 2000 127 127 127
credentials 2000 50 50 50
inventories 2000 6 6 6
inventory_groups 500 15 15 15
inventory_hosts 2500 15 15 15
wfjts 100 0 0 0
nodes 1000 0 0 0
labels 1000 0 0 0
jobs 1000 157208 1000 10000
job_events 1000 3370942 20000 200000
resource medium Jan2017 jobs1k jobs10k jobs50k jobs100k
organizations 500 1 1 1 1 1
users 5000 3 3 3 3 3
teams 500 2 2 2 2 2
projects 1000 30 30 30 30 30
job_templates 2000 127 127 127 127 127
credentials 2000 50 50 50 50 50
inventories 2000 6 6 6 6 6
inventory_groups 500 15 15 15 15 15
inventory_hosts 2500 15 15 15 15 15
wfjts 100 0 0 0 0 0
nodes 1000 0 0 0 0 0
labels 1000 0 0 0 0 0
jobs 1000 157208 1000 10000 50000 100000
job_events 1000 3370942 20000 200000 1000000 2000000
1 resource medium Jan2017 jobs1k jobs10k jobs50k jobs100k
2 organizations 500 1 1 1 1 1
3 users 5000 3 3 3 3 3
4 teams 500 2 2 2 2 2
5 projects 1000 30 30 30 30 30
6 job_templates 2000 127 127 127 127 127
7 credentials 2000 50 50 50 50 50
8 inventories 2000 6 6 6 6 6
9 inventory_groups 500 15 15 15 15 15
10 inventory_hosts 2500 15 15 15 15 15
11 wfjts 100 0 0 0 0 0
12 nodes 1000 0 0 0 0 0
13 labels 1000 0 0 0 0 0
14 jobs 1000 157208 1000 10000 50000 100000
15 job_events 1000 3370942 20000 200000 1000000 2000000

View File

@ -7,6 +7,7 @@ import sys
# Python
from collections import defaultdict
from optparse import make_option, OptionParser
from datetime import datetime
import logging
@ -184,6 +185,9 @@ def mock_save(self, *args, **kwargs):
PrimordialModel.save = mock_save
startTime = datetime.now()
try:
with transaction.atomic():
@ -694,3 +698,4 @@ except Rollback:
pass
print('')
print('script execution time: {}'.format(datetime.now() - startTime))