[vim] 좀 더 편-안하게 vim editor를 사용하는 설정
·
devlog/TIL
포매팅: shift, tab 4!!!!!!! 8이면 막 마음이 무너져 버려 set smartindent set tabstop=4 set expandtab set shiftwidth=4 지금당장 라인끝으로 커서를 이동하고 싶다 $ (shift + 4) 지금당장 파일의 제일 아래로 가고싶다 shift + g 지금당장 파일의 헤드로 가고싶다 shift + h
fluentd - host is unreachable
·
DevOps/monitoring
2020-10-05 16:19:32 +0000 [warn]: #0 failed to flush the buffer. retry_time=15 next_retry_seconds=2020-10-05 21:09:56 +0000 chunk="5b0e6e3d58b7cec7f1d92eaa332995c8" error_class=Fluent::Plugin::ElasticsearchOutput::RecoverableRequestFailure error="could not push logs to Elasticsearch cluster ({:host=>\"호스트명\", :port=>포트번호, :scheme=>\"http\"}): Host is unreachable - connect(2) for IP주소 (Errno::EHO..
[TIL] fluentd & NGINX
·
devlog/TIL
다 설정하고 나니까 이런 에러가 로그에 남아있다 \[types removal\] Specifying types in bulk requests is deprecated. 이것은 대체 무슨 로그? https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html#_why_are_mapping_types_being_removed 엘라스틱 서치 버전8부터는 mapping type이 없어진다고 한다. 아마 엘라스틱서치 어딘가에서 mapping type을 계속 쓰고있어서 그런것 같다. 아니면 내 fluentd 설정인가? 이런 저런 이유라는데...어 읽어도 잘 모르겠다 지금은: https://www.elastic.co/guide/e..
뚝딱거리는 초보 devops의 TIL
·
devlog/TIL
max_map_count가 뭔가 https://stackoverflow.com/questions/11683850/how-much-memory-could-vm-use 이것이다. linux kernel Sonarqube의 스펙은 잘 맞춰야 한다 그렇지 않으면 이런 에러가 나기때문이다. 2020.08.28 02:28:49 ERROR es[][o.e.b.Bootstrap] node validation exception [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] ERROR: [1] bootstrap checks failed docker..
유용한 linux command 모음 (사실 나를 위한 포스트 | 계속 추가 중)
·
devlog/TIL
서버 timezone 변경 (한국시간) cp -p /usr/share/zoneinfo/Asia/Seoul /etc/localtime 서버 kernel version 확인 uname -v
[Haskell] 고차원 함수 - 람다, 폴드, 스캔, $, 합성함수
·
devlog/programming language
람다 Lambda 단 한번만 함수가 필요할 때 사용하는 익명의 함수. 람다는 표현식이다. 선언방법 \ 로 선언 그 뒤에는 함수의 매개변수를 쓴다. (하나 이상의 매개변수는 공백으로 구분한다) -> 뒤에는 함수의 내용이 온다. 괄호로 람다를 감싸는 것이 일반적이다. where 절로 바인딩해서 표현했던 방식 대신 람다로 변경한 numLongChains 예시 numLongChains :: Int numLongChains = length (filter (\xs -> length xs > 15) (map chain [1..100])) 람다보다는..? 부분적 어플리케이션이 람다보다 가독성이 좋은 경우도 있다. map (+3) [1,6,3,2] // 부분적인 어플리케이션 map (\x -> x + 3) [1,6,3,..
[TIL] jooq 잘 모르겠다 🤔
·
devlog/TIL
삽질 로그 | 2019-05-30 갑분 1 = 0 ?! conditionStep = conditionStep.and(opo.ORDER_STATUS_TYPE.in(Lists.newArrayList(request.getOrderStatusTypes()))); 이런 경우의 jooq에서는 conditionStep.and(~~~) 자체가 AND 1 = 0 로 변경되어 쿼리가 실행됨. 고로 전 후에 무수히 추가한 and 조건들이 먹지 않음. 🐸개구려 갑자기 미국날짜? String 으로 받아온 평범한 날짜입력값이 미국식 포맷으로 바뀌는 매직. conditionStep = conditionStep.and(opo.ORDER_YMDT.between(DateUtils.forceParse(request.getStartYmdt..
[TIL] Feign 404
·
devlog/TIL
TIL 궁금점 Feign으로 부르는 메소드 호출에서는 404 가 내려오면 어떻게 될까? 어떻게 처리하나? Feign 404 @FeignClient(decode404 = false) 의 경우 FeignClient annotation의 decode404 property는 false가 default 값이다. 해당 설정으로 404를 받아오는 경우에는 FeignException을 발생시킨다. Feign호출을 하였을 때 resource가 존재하지 않는 경우, 호출하는 쪽에서 404 NOT_FOUND에 대한 적절한 동작을 할 수 없게 된다. @FeignClient(decode404 = true) 의 경우 decode404를 true로 설정하는 경우, Feign의 기본 decode 메소드가 java의 기본 type들을..