Code Monkey home page Code Monkey logo

ami's Introduction

femiwiki

This is an issues-only repo for Femiwiki.

ami's People

Contributors

lens0021 avatar simnalamburt avatar

Stargazers

 avatar

Watchers

 avatar

ami's Issues

atop 추가하기

서버 부하가 갑자기 커지거나 하는 상황에서 atop이 미리 깔려있으면 정말 유용할것같다. 달리 저렴하게 쓸 수 있는 디테일한 모니터링 수단도 없고, atop에 서버에 주는 부하가 큰것같지도 않으니 계속 깔아서 잘 써보자.

지금은 임시로 각 서버들에 sudo yum install 'https://www.atoptool.nl/download/atop-2.4.0-1.x86_64.rpm'를 실행한 상태

Related with femiwiki/femiwiki#64

Timeout waiting for SSH

$ packer version
Packer v1.4.4

packer build femiwiki-base.json 실행 시 빌더 인스턴스, sg, key pair 생성 과정까지는 잘 되나 "Waiting for SSH to become available..." 메시지 표시 후 진행되지 않다가 "Timeout waiting for SSH."와 함께 종료 과정으로 넘어감.

환경변수 PACKER_LOG=1을 설정하고 재실행 하니 "172.31"로 시작하는 IP로 열심히 접속을 시도하고 있길래 검색, https://github.com/hashicorp/packer/issues/5627#issuecomment-520001157을 보고 "ssh_interface": "public_ip"을 추가했더니 그런 문제가 없어짐.


ssh_interface는 현재(2019년 11월) Packer.ioSSH Communicator 문서에는 없고 AMI Builder (EBS backed) 문서에는 "ssh_interface (string) - SSH Interface"이라고 짧게 써 있음.

ssh_interfacehashicorp/packer@707ec67에서 추가되었으며 이와 함께 ssh_private_ip은 레거시가 된 것 같음.

코드를 보면 해당 값이 public_ip, private_ip, public_dns, private_dns 중 하나로 설정되어 있다면 빌더 인스턴스의 해당 값을 모르지 않는 한 그대로 실행하는 것 같고, 반면 ssh_interface가 없을 땐 퍼블릭이 있다면 퍼블릭으로, 아니면 프라이빗으로 시도하는 것 같음.(https://github.com/hashicorp/packer/blob/v1.4.4/builder/amazon/common/ssh.go#L35-L64).

그래서 Public Ip Address로 접속을 시도해야 할 거 같은데 왜 Private Ip Address로 하고 있는지 원인을 모르겠지만 일단 문제를 해결하기 위해 "ssh_interface": "public_ip"을 추가하겠음.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.