백업용으로 git에 큰 파일(압축 파일)을 올릴 때 git 관리자의 정책으로 인해 업로드 실패가 발생할 수 있다. 


용량을 50m 단위로 줄여서 압축하려면 -s 옵션을 추가한다. 기본 값은 m이고, 나머지는 g, k 이렇게 사용하면 된다.


$ zip -r -s 50 launch.zip launch/  --out launch-sp



Posted by '김용환'
,

[git] git reset hard

etc tools 2017. 9. 1. 19:15


잘못 commit을 했지만 git 서버의 커밋된 버전을 이동하려면 다음과 같은 명령을 사용할 수 있다. 


먼저 로그 내용과 short hash 내용을 얻는다. 


$ git log --pretty=oneline --abbrev-commit

ab2cb94 XXFactoryBean 생성

12312414 ...




특정 commit으로 이동하려면 다음과 같이 사용할 수 있다.


git reset --hard ab2cb94




뒤 커밋으로 하나 이동하려면 다음 커맨드를 사용한다.


git reset --hard HEAD



3번째 뒤 커밋으로 이동하려면 다음 커맨드를 사용한다.


git reset --hard HEAD~3


git reset --hard HEAD^^^





Posted by '김용환'
,

go 컨퍼런스 자료

go lang 2017. 9. 1. 14:14



2017년 go 컨퍼런스 자료


https://github.com/gophercon



gophercon 2017 자료



https://github.com/gophercon/2017-talks

Posted by '김용환'
,


펌질


https://www.elastic.co/blog/hot-warm-architecture




Master nodes

We recommend running 3 dedicated master nodes per cluster having dedicated master nodes which run in their own JVM increases stability and resilience as they are not affected by garbage collection that can affect other types of nodes. These nodes do not handle requests and do not hold any data, and therefore only require less resources (such as CPU, RAM and Disk)

Hot data nodes

Hot data nodes are designed to perform all indexing within the cluster and will also hold the most recent daily indices that generally tend to be queried most frequently. As indexing is a very IO intensive operation, these servers need to be powerful and backed by attached SSD storage.


Warm data nodes

Warm data nodes are designed to handle a large amount of read-only indices that are not queried frequently. As these indices are read-only, warm nodes tend to util



PUT /logs_2015-08-31 { "settings": { "index.routing.allocation.require.box_type" : "hot" } }





Posted by '김용환'
,