본문 바로가기

전체 글223

[graylog2] 적용 증가된 서버로 인해 분산된 로그를 한눈에 보고자 도입한 GrayLog2여러 후보중 가장 큰 이유는 오픈소스이고, 최근에 업데이트가 활발했기때문에 다양한 환경에 추가할 수 있도록 라이브러리가 존재했다. 현재 구조는 Front Web과 Backend API의 2-Tier 구조인데목표는 둘다 붙이는 것이었지만 일단 중요한 Backend API 서버군에 목표를 두었다. Backend API는 Grails 2.4.3 프레임워크로 구성이 되어있어, graylog2용 Grails Plugin을 어렵지 않게 구할 수 있었다. dependencies in BuildConfig.groovy--------------------------------------runtime 'org.graylog2:gelfj:1.1.13' C.. 2018. 5. 22.
[Nginx + Tomcat] 무중단 배포 구현하기 2 How to doEdit1. nginx 설치https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-centos-7sudo yum install epel-release -y sudo yum install nginx -y sudo systemctl start nginx nginx.conf 설정#서브도메인에 prod를 포함하고, 로컬 머신으로 부터 요청이 올경우 중단이 되지 않는 인스턴스로 응답 server { listen 80; server_name ~^prod+.*$ localhost; include /etc/nginx/conf.d/*.inc; # for switch configuration location / { proxy_pas.. 2018. 4. 19.
[Nginx + Tomcat] 무중단 배포 구현하기 개요기존의 1 machine = 1 WAS Instance 구조로소스 패치시 해당 머신을 서비스에 사용하지 못하던 부분을 해소하고자동 배포를 구현하기 위해 고안된 구조입니다. In the before as 1 machine = 1 WAS Instance structure,When patching a source, it is possible to solve a situation where the machine can not be used for a service,It is for structure designed to implement automatic deployment. 그림에서 보이는 바와 같이, 기존의 하나의 머신은 하나의 Nginx와 두개의 Tomcat Instance를 가집니다.Nginx의 Re.. 2018. 3. 20.
[django] 본격 장고 웹소켓 이번엔 장고를 활용하여 웹소켓을 설치해보겠습니다. 먼저 터미널에서 가상환경을 활성화 합니다.source ../myvenv/bin/activate다음으로 웹소켓에 사용될 redis와 channels를 설치합니다.*brew없으면 설치/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 1brew install redispip install channels asgi_redis버전을 지정 안하면 최신버전으로 설치됩니다. 다음은 settings.py에 channels를 추가하고, 설정도 추가해줍니다.INSTALLED_APPS = [ ... 'channels', ... ] CHANNEL_LAY.. 2018. 1. 25.