본문 바로가기
Programming/환경셋팅

AWS S3 - ec2에 mount 하기 - s3fs보다 2배 빠르다 - goofys

by Chan_찬 2019. 12. 31.
728x90

AWS CLI 설치

sudo apt-get update
sudo apt-get install -y python-pip
sudo pip install awscli

goofys 설치


golang 으로 만들어진 goofyss3fs와 2배의 속도(read, write 모두) 차이가 남

실제 테스트 결과 - 2.4 GB write to S3

s3fs - 5 min
goofys - 2 min

golang 설치

sudo add-apt-repository ppa:gophers/archive
sudo apt-get update
sudo apt-get install golang-1.9-go
sudo ln -s /usr/lib/go-1.9 /usr/lib/go

ubuntu 16.04에서 설치가 안될 경우

sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-1.9-go

path 셋팅

vi /etc/profile.d/go.shvi ~/.zshrc 에 추가

# Golang Path
export GOROOT=/usr/lib/go
export GOBIN=$GOROOT/bin
export GOPATH=/home/ubuntu/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export S3_ENDPOINT="https://s3-ap-northeast-1.amazonaws.com"
export S3_BUCKET_NAME="stg.---.com"
export S3_MOUNT_DIR="/home/ubuntu/work"

goofys 설치

source ~/.zshrc
go version
go env
mkdir ~/go
cd go
go get github.com/kahing/goofys
sudo $GOBIN/go install github.com/kahing/goofys
728x90
728x90

'Programming > 환경셋팅' 카테고리의 다른 글

gcp(google cloud platform) tpu 사용  (0) 2020.06.23
ssh config  (0) 2020.06.20
Data Ingestion, Gobblin  (0) 2016.09.27
vim 에서 go syntax highlight  (0) 2016.04.05
node.js 설치  (0) 2016.04.03
Buy me a coffeeBuy me a coffee

댓글