Skip to content

Commit 43ea38d

Browse files
Arushi-07copybara-github
authored andcommitted
Fix amazonlinux and azure in unmanaged postgresql sysbench benchmark
PiperOrigin-RevId: 715084313
1 parent e0aedef commit 43ea38d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

perfkitbenchmarker/linux_benchmarks/unmanaged_postgresql_sysbench_benchmark.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
num_striped_disks: 5
7878
Azure:
7979
disk_size: 200
80-
disk_type: Premium_LRS_V2
80+
disk_type: PremiumV2_LRS
8181
provisioned_iops: 40000
8282
provisioned_throughput: 800
8383
num_striped_disks: 2
@@ -142,6 +142,7 @@ def GetConfig(user_config):
142142
vm_spec[cloud]['zone'] = FLAGS.client_vm_zone
143143
if FLAGS.client_vm_machine_type:
144144
vm_spec[cloud]['machine_type'] = FLAGS.client_vm_machine_type
145+
145146
# Add replica servers if configured.
146147
if FLAGS.db_high_availability:
147148
for index, zone in enumerate(FLAGS.db_replica_zones):

perfkitbenchmarker/linux_packages/postgresql16.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,12 @@ def YumInstall(vm):
126126
vm.RemoteCommand('sudo dnf -qy module disable postgresql')
127127
else:
128128
vm.RemoteCommand('sudo dnf update')
129+
postgres_devel = 'postgresql16-devel'
130+
if vm.OS_TYPE in os_types.AMAZONLINUX_TYPES:
131+
postgres_devel = 'postgresql-devel'
129132
vm.RemoteCommand(
130133
'sudo yum install -y postgresql16-server postgresql16'
131-
' postgresql16-contrib postgresql16-devel'
134+
f' postgresql16-contrib {postgres_devel}'
132135
)
133136
vm.RemoteCommand(
134137
'echo "export PATH=/usr/pgsql-16/bin:$PATH" | sudo tee -a ~/.bashrc'

0 commit comments

Comments
 (0)