Skip to content

Commit

Permalink
Run on v18 and use proper v18 flags
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
  • Loading branch information
frouioui committed Jun 25, 2024
1 parent 2628489 commit 7aec68a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
12 changes: 9 additions & 3 deletions ansible/roles/vttablet/templates/vttablet.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ EXTRA_VTTABLET_FLAGS="--alsologtostderr \
--queryserver-config-pool-size={{ tablet.connection_pool_size | default(vttablet_connection_pool_size) }} \
--queryserver-config-stream-pool-size={{ tablet.stream_pool_size | default(vttablet_stream_pool_size) }} \
--queryserver-config-transaction-cap={{ tablet.transaction_cap | default(vttablet_transaction_cap) }} \
--queryserver-config-query-timeout=900s \
--queryserver-config-schema-reload-time=60s \
--queryserver-config-transaction-timeout=300s \
{% if vitess_major_version <= 18 %}
--queryserver-config-query-timeout=900 \
--queryserver-config-schema-reload-time=60 \
--queryserver-config-transaction-timeout=300 \
{% else %}
--queryserver-config-query-timeout=900s \
--queryserver-config-schema-reload-time=60s \
--queryserver-config-transaction-timeout=300s \
{% endif %}
--grpc_max_message_size=67108864 \
--db_charset=utf8 \
{% if pprof_targets is defined %}
Expand Down
1 change: 1 addition & 0 deletions go/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ func (e *Exec) prepareAnsibleForExecution() error {
e.AnsibleConfig.AddExtraVar(ansible.KeyVitessVersionPRNumber, e.PullNB)
}
e.AnsibleConfig.AddExtraVar(ansible.KeyVtgatePlanner, e.VtgatePlannerVersion)
e.AnsibleConfig.AddExtraVar(ansible.KeyVitessMajorVersion, e.VitessVersion.Major)
e.AnsibleConfig.AddExtraVar(ansible.KeyVitessSchema, e.vitessSchemaPath)
e.vitessConfig.addToAnsible(&e.AnsibleConfig)

Expand Down
4 changes: 4 additions & 0 deletions go/infra/ansible/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ const (
// number that the execution will benchmark.
KeyVitessVersionPRNumber = "vitess_git_version_pr_nb"

// KeyVitessMajorVersion corresponding value in the map is an int set to the major
// release increment of Vitess.
KeyVitessMajorVersion = "vitess_major_version"

// KeyVtgatePlanner corresponding value in the map is the query planner version
// that will be used to execute the benchmark.
KeyVtgatePlanner = "vitess_planner_version"
Expand Down
7 changes: 2 additions & 5 deletions go/tools/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ func GetLatestVitessReleaseCommitHash(repoDir string) ([]*Release, error) {
}
var latestReleases []*Release

// We take the 2 latest major release
// TODO: @Florent: use the three latest major releases once v17 is out
minimumRelease := allReleases[0].Version.Major - 1
minimumRelease := allReleases[0].Version.Major - 2
for _, release := range allReleases {
if release.Version.Major >= minimumRelease {
latestReleases = append(latestReleases, release)
Expand Down Expand Up @@ -205,8 +203,7 @@ func GetLatestVitessReleaseBranchCommitHash(repoDir string) ([]*Release, error)
}
var latestReleaseBranches []*Release
// We take the 2 latest major release
// TODO: @Florent: use the three latest major releases once v17 is out
minimumRelease := res[0].Version.Major - 1
minimumRelease := res[0].Version.Major - 2
for _, release := range res {
if release.Version.Major >= minimumRelease {
latestReleaseBranches = append(latestReleaseBranches, release)
Expand Down

0 comments on commit 7aec68a

Please sign in to comment.