Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added BULK mode to BD and EPG #1042

Open
cloudste opened this issue May 5, 2023 · 0 comments · May be fixed by #1043
Open

Added BULK mode to BD and EPG #1042

cloudste opened this issue May 5, 2023 · 0 comments · May be fixed by #1043

Comments

@cloudste
Copy link

cloudste commented May 5, 2023

Added BULK mode to BD and EPG

  • Branch source: v2.7.0
  • Goal: improve Create, Read and Update performance for Bridge Domain and Endpoint Group resources

This code adds BULK mode to the CREATE, READ, and UPDATE operations for Bridge Domain and Endpoint Group resources.

BULK mode refers to the ability to CREATE, READ and UPDATE the available relationships for the above resources in a single bulk operation instead of one at a time.

This brings absolute performance increases in the READ operation, performance increases proportional to the number of relations involved in the CREATE and UPDATE operations.

The BULK mode can be enabled operation by operation resource by resource, to facilitate debugging and allow for a correct evaluation of performance while still having the traditional operating mode by default.

Added examples for BULK operations

In the files bd.tf, epg.tf, bd1.tf.ste, bd2.tf.ste, epg1.tf.ste, epg2.tf.ste, available in the directory examples/bulk, configure the Terrafom Meta-Argument consistently with your strategy (we tested the performance of BULK operations by setting <count=1000> instead of the default <count=1>).

There are two families of tests, with the purpose of modifying the parameters to test the BULK update operation.

The t1-test-suite.sh and t2-test-suite.sh scripts reconfigure the environment with the corresponding test family.

The run.sh script runs the selected test suite, the plan.sh script runs the scheduling (mainly used to check the performance of BULK Read operations).

Both scripts report the start time and end time automatically.

Warnings

This plugin adds the bulk operations fields to Terraform's state file.

Bulk operations are experimental, be careful using them in production setups.

@shrsr shrsr linked a pull request May 5, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant