Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
6ae91756
Commit
6ae91756
authored
7 years ago
by
Matt Kwong
Browse files
Options
Downloads
Patches
Plain Diff
Update performance VM init script
parent
e7c31edb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/gce/create_linux_performance_worker.sh
+2
-2
2 additions, 2 deletions
tools/gce/create_linux_performance_worker.sh
tools/gce/linux_performance_worker_init.sh
+27
-23
27 additions, 23 deletions
tools/gce/linux_performance_worker_init.sh
with
29 additions
and
25 deletions
tools/gce/create_linux_performance_worker.sh
+
2
−
2
View file @
6ae91756
...
...
@@ -42,14 +42,14 @@ CLOUD_PROJECT=grpc-testing
ZONE
=
us-central1-b
# this zone allows 32core machines
INSTANCE_NAME
=
"
${
1
:-
grpc
-performance-server1
}
"
MACHINE_TYPE
=
n1-standard-
8
MACHINE_TYPE
=
n1-standard-
32
gcloud compute instances create
$INSTANCE_NAME
\
--project
=
"
$CLOUD_PROJECT
"
\
--zone
"
$ZONE
"
\
--machine-type
$MACHINE_TYPE
\
--image-project
ubuntu-os-cloud
\
--image-family
ubuntu-160
4-lts
\
--image-family
ubuntu-16
1
0
\
--boot-disk-size
300
\
--scopes
https://www.googleapis.com/auth/bigquery
...
...
This diff is collapsed.
Click to expand it.
tools/gce/linux_performance_worker_init.sh
+
27
−
23
View file @
6ae91756
...
...
@@ -55,7 +55,10 @@ sudo apt-get install -y \
libc6
\
libc6-dbg
\
libc6-dev
\
libcurl4-openssl-dev
\
libgtest-dev
\
libreadline-dev
\
libssl-dev
\
libtool
\
make
\
strace
\
...
...
@@ -71,7 +74,8 @@ sudo apt-get install -y \
telnet
\
unzip
\
wget
\
zip
zip
\
zlib1g-dev
# perftools
sudo
apt-get
install
-y
google-perftools libgoogle-perftools-dev
...
...
@@ -87,14 +91,15 @@ sudo pip install tabulate
sudo
pip
install
google-api-python-client
sudo
pip
install
virtualenv
# TODO(jtattermusch): For some reason, building gRPC Python depends on python3.4
# being installed, but python3.4 is not available on Ubuntu 16.04.
# Temporarily fixing this by adding a PPA with python3.4, but we should
# really remove this hack once possible.
sudo
add-apt-repository
-y
ppa:fkrull/deadsnakes
sudo
apt-get update
sudo
apt-get
install
-y
python3.4 python3.4-dev
python3.4
-m
pip
install
virtualenv
# Building gRPC Python depends on python3.4 being installed, but python3.4
# is not available on Ubuntu 16.10, so install from source
curl
-O
https://www.python.org/ftp/python/3.4.6/Python-3.4.6.tgz
tar
xzvf Python-3.4.6.tgz
cd
Python-3.4.6
./configure
--enable-shared
--prefix
=
/usr/local
LDFLAGS
=
"-Wl,--rpath=/usr/local/lib"
sudo
make altinstall
cd
..
rm
Python-3.4.6.tgz
curl
-O
https://bootstrap.pypa.io/get-pip.py
sudo
pypy get-pip.py
...
...
@@ -117,18 +122,25 @@ sudo apt-get update
sudo
apt-get
install
-y
mono-devel nuget
# C# .NET Core dependencies (https://www.microsoft.com/net/core#ubuntu)
sudo
sh
-c
'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/
xenial
main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo
sh
-c
'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/
yakkety
main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo
apt-key adv
--keyserver
apt-mo.trafficmanager.net
--recv-keys
417A0893
sudo
apt-get update
sudo
apt-get
install
-y
dotnet-dev-1.0.0-preview2-0031
31
sudo
apt-get
install
-y
dotnet-dev-1.0.0-preview2
.1
-0031
55
sudo
apt-get
install
-y
dotnet-dev-1.0.1
# Ruby dependencies
gpg
--keyserver
hkp://keys.gnupg.net
--recv-keys
409B6B1796C275462A1703113804BB82D39DC0E3
curl
-sSL
https://get.rvm.io | bash
-s
stable
--ruby
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
export
PATH
=
"
$HOME
/.rbenv/bin:
$PATH
"
eval
"
$(
rbenv init -
)
"
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
export
PATH
=
"
$HOME
/.rbenv/plugins/ruby-build/bin:
$PATH
"
rbenv
install
2.4.0
rbenv global 2.4.0
ruby
-v
# Install bundler (prerequisite for gRPC Ruby)
source
~/.rvm/scripts/rvm
gem
install
bundler
# Java dependencies - nothing as we already have Java JDK 8
...
...
@@ -163,15 +175,7 @@ echo 4096 | sudo tee /proc/sys/kernel/perf_event_mlock_kb
git clone
-v
https://github.com/brendangregg/FlameGraph ~/FlameGraph
# Install scipy and numpy for benchmarking scripts
sudo
apt-get
install
python-scipy python-numpy
# Update Linux kernel to 4.9
wget
\
kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.20/linux-headers-4.9.20-040920_4.9.20-040920.201703310531_all.deb
\
kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.20/linux-headers-4.9.20-040920-generic_4.9.20-040920.201703310531_amd64.deb
\
kernel.ubuntu.com/~kernel-ppa/mainline/v4.9.20/linux-image-4.9.20-040920-generic_4.9.20-040920.201703310531_amd64.deb
sudo
dpkg
-i
linux-headers-4.9
*
.deb linux-image-4.9
*
.deb
rm
linux-
*
sudo
apt-get
install
-y
python-scipy python-numpy
# Add pubkey of jenkins@grpc-jenkins-master to authorized keys of jenkins@
# This needs to happen as the last step to prevent Jenkins master from connecting
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment