-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
65 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,49 @@ | ||
N.B These scripts *only* support Amazon Linux 2 | ||
# Mcrouter Installation on Amazon Linux 2 | ||
|
||
1. Install compilers and system-provided libraries: | ||
We need to do this for both x86_64 architecture and graviton. Repeat the following steps | ||
for each architecture | ||
|
||
./install_deps_amazon-linux-2.sh | ||
1. Launch a temporary instance for each x86_64 and ARM instance type and use Session Manager to connect. | ||
- Amazon Linux 2 AMI [ebs, hvm] | ||
- x86: m5ad.2xlarge | ||
- arm: m6gd.2xlarge | ||
|
||
2. Compile mcrouter and dependencies | ||
1. Switch to root for all subsequent commands | ||
```shell | ||
sudo su - | ||
``` | ||
|
||
MY_INSTALL_DIR=path/to/install/dir | ||
TARGET=mcrouter | ||
./get_and_build_by_make.sh $MY_INSTALL_DIR mcrouter | ||
1. Attach the EBS volume. Mcrouter needs a little more space than default 8GB volume. | ||
```shell | ||
file -s /dev/nvme1n1 | ||
mkfs -t xfs /dev/nvme1n1 | ||
mkdir /build | ||
mount /dev/nvme1n1 /build | ||
``` | ||
|
||
You can substitute individual dependencies as the value of TARGET in order to debug. | ||
1. Clone the `useshortcut\mcrouter` repo. | ||
```shell | ||
yum -y update | ||
yum -y install git | ||
cd /build | ||
git clone https://github.com/useshortcut/mcrouter.git | ||
cd mcrouter | ||
# Switch to branch if necessary | ||
# git checkout <branch> | ||
``` | ||
|
||
1. Install Pre-built Dependencies | ||
```shell | ||
cd /build/mcrouter/mcrouter/scripts | ||
./install_deps_amazon-linux-2.sh | ||
``` | ||
|
||
1. Compile additional dependencies, mcrouter and then archive | ||
```shell | ||
cd /build/mcrouter/mcrouter/scripts | ||
INSTALL_DIR=/build/output | ||
# Build dependencies and mcrouter | ||
./get_and_build_by_make.sh $INSTALL_DIR all | ||
# Now archive | ||
./get_and_build_by_make.sh $INSTALL_DIR archive | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters