2020-10-06 01:16:09 +00:00
|
|
|
#!/bin/bash -e
|
2023-03-28 22:48:58 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 22:48:58 +00:00
|
|
|
|
2020-10-06 01:16:09 +00:00
|
|
|
|
|
|
|
# set new limit
|
|
|
|
echo "fs.file-max = 2097152" >> /etc/sysctl.conf
|
|
|
|
ulimit -Sn 100000
|
|
|
|
sysctl -p
|
|
|
|
|
|
|
|
# download k6
|
2022-06-15 13:29:38 +00:00
|
|
|
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/k6-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C5AD17C747E3415A3642D57D77C6C491D6AC1D69
|
|
|
|
echo "deb [signed-by=/usr/share/keyrings/k6-archive-keyring.gpg] https://dl.k6.io/deb stable main" | sudo tee /etc/apt/sources.list.d/k6.list
|
2020-10-06 01:16:09 +00:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install k6
|
|
|
|
|
|
|
|
# move service file
|
2020-12-11 19:11:14 +00:00
|
|
|
chmod 755 /home/ubuntu/scripts/loadtest.js
|