Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions osbenchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
test_execution_orchestrator, results_publisher, \
metrics, workload, exceptions, log
from osbenchmark.builder import provision_config, builder
from osbenchmark.synthetic_data_generator import synthetic_data_generator
from osbenchmark.synthetic_data_generator import synthetic_data_generator_orchestrator
from osbenchmark.workload_generator import workload_generator
from osbenchmark.utils import io, convert, process, console, net, opts, versions
from osbenchmark import aggregator
Expand Down Expand Up @@ -174,7 +174,7 @@ def add_workload_source(subparser):
help="Custom Python module that defines how to generate documents. " +
"It can contain function definitions and even class definitions. " +
"This gives users more granular control over how data is generated. " +
"This module must contain generate_fake_document() definition."
"This module must contain generate_synthetic_document() definition."
)

exclusive_params = synthetic_data_generator_parser.add_mutually_exclusive_group(required=True)
Expand Down Expand Up @@ -1185,7 +1185,7 @@ def dispatch_sub_command(arg_parser, args, cfg):
cfg.add(config.Scope.applicationOverride, "synthetic_data_generator", "total_size", args.total_size)
cfg.add(config.Scope.applicationOverride, "synthetic_data_generator", "test_document", args.test_document)

synthetic_data_generator.orchestrate_data_generation(cfg)
synthetic_data_generator_orchestrator.orchestrate_data_generation(cfg)

elif sub_command == "create-workload":
cfg.add(config.Scope.applicationOverride, "generator", "indices", args.indices)
Expand Down Expand Up @@ -1215,13 +1215,13 @@ def dispatch_sub_command(arg_parser, args, cfg):
else:
msg += "\n%s%s" % ("\t" * nesting, str(e))

console.error("Cannot %s. %s" % (sub_command, msg))
console.error(f"❌ Cannot {sub_command}. {msg}")
console.println("")
print_help_on_errors()
return False
except BaseException as e:
logging.getLogger(__name__).exception("A fatal error occurred while running subcommand [%s].", sub_command)
console.error("Cannot %s. %s." % (sub_command, e))
console.error(f"❌ Cannot {sub_command}. {e}.")
console.println("")
print_help_on_errors()
return False
Expand Down Expand Up @@ -1272,10 +1272,10 @@ def main():
end = time.time()
if success:
console.println("")
console.info("SUCCESS (took %d seconds)" % (end - start), overline="-", underline="-")
console.info("SUCCESS (took %d seconds)" % (end - start), overline="-", underline="-")
else:
console.println("")
console.info("FAILURE (took %d seconds)" % (end - start), overline="-", underline="-")
console.info("FAILURE (took %d seconds)" % (end - start), overline="-", underline="-")
sys.exit(64)


Expand Down
4 changes: 2 additions & 2 deletions osbenchmark/resources/sdg-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ settings:
max_file_size_gb: 40
docs_per_chunk: 10000

CustomSyntheticDataGenerator:
CustomGenerationValues:
# For users who want to generate data via a custom Python module
custom_lists:
# Custom lists for users who are using a custom Python module and want to consolidate all values in this YAML file
Expand All @@ -15,7 +15,7 @@ CustomSyntheticDataGenerator:
- NumericString
- MultipleChoices

MappingSyntheticDataGenerator:
MappingGenerationValues:
# For users who want more granular control over how data is generated when providing an OpenSearch mapping
generator_overrides:
# Overrides all instances of generators with these settings. Specify type and params
Expand Down

This file was deleted.

Loading
Loading