Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 7e7162c

Browse files
add autoscaling
1 parent b8d4760 commit 7e7162c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

deployment/deploy_cloud.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ python3 -m main \
4141
--template_location "gs://$2/templates/megalista" \
4242
--num_workers 1 \
4343
--autoscaling_algorithm=NONE \
44+
--autoscaling_algorithm=THROUGHPUT_BASED \
45+
--number_of_worker_harness_threads=16 \
4446
--service_account_email "$4" \
4547
--collect_usage_stats "$5"
4648
echo "Copy megalista_medata to bucket $2"

megalista_dataflow/steps/processing_steps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,8 @@ def expand(self, executions):
523523
20,
524524
TransactionalType.UUID,
525525
)
526+
| "Prevent Fusion"
527+
>> beam.Reshuffle()
526528
| "Upload - GA 4 measurement protocol"
527529
>> beam.ParDo(
528530
GoogleAnalytics4MeasurementProtocolUploaderDoFn(

0 commit comments

Comments
 (0)