전체카테고리 468

코드 품질올리기, 코드 설계 - 1 이름의 중요성과 모델링

"내 코드가 이상한가요" 센바다이아 著 를 읽고 정리한 글입니다. 가. 이름의 중요성과 모델링 1. 기술을 중심으로 이름을 짓거나, 일련번호를 매겨 이름을 지으면 코드에서 어떠한 의도도 읽어낼수 없습니다. 읽고 이해하는데 시간이 오래 걸릴 뿐더러 기능을 일일이 매핑시킨 알람표(스프레드시트)는 바쁜업무로 인해 유지보수가 거의 이루어 지지 않습니다. 권장하지 않는 예 1) 기술중심 명명 class MemoryStateManager { void changeIntValue01 (int changeValue) { updateState01(); ... } 종류 예 컴퓨터 기술 유래 memory, cache, thread, register 등 프로그래밍 기술 유래 function, method, class, modu..

Programming/기타 2023.08.28

FlieBeat→ES 수집 설정은 어디서 해야 하는지?

수집대상의 FileBeat설정에서 인덱스에 대한 설정을 해줄 수도 있지만, 수집대상이 한두개가 아니면 일일이 세팅, 유지관리 하는것은 불편하다. 따라서 ES에 Index Template을 만들고 해당 Template에 걸리게끔 Filebeat에서 설정해주는게 현명하다. IndexTemplate을 설정하는 방법은 다음과 같다. 가. Index LifeCycle Policy 생성 - Index가 저장되는 Shard 생명주기를 관리하는 정책. Index Template에 해당 정책이 등록되게 되어 있음 나. Index Template 설정 - 서버에서 FileBeat Agent가 수집할때 ElasticSearch에서 정의한 Index Template 정책에 걸리도록 세팅 ※ 이때 was-jpkim* 이런식으로..

PaaS/Data 2023.08.06

ElasticSearch 클러스터 설치하기 3개의 Master, 2개의 Data Node

구성 : 3개의 MasterNode , 2개의 DataNode 20.50 : Data Node(With Master) 20.51 : Data Node(With Master) 20.52 : Kibana(Only Master) 1. OS 파라미터 변경 # vi /etc/sysctl.conf -------------------------------------------------------------------------------- vm.max_map_count=262144 -------------------------------------------------------------------------------- 2. ES 설치파일 받기 $ wget https://artifacts.elastic.co/d..

PaaS/Data 2023.08.06

yarn install 시 발생하는 오류 해결

우선 Registry 주소 확인하기 $ npm config get registry $ yarn config get registry Registry 주소 변경하기 $ yarn config set registry https://registry.npmjs.org/ NPM이나 yarn으로 아래 오류 발생할때 There appears to be trouble with your network connection. Retrying... 일반적인 방법 $ yarn config delete proxy $ yarn config delete https-proxy $ yarn install --network-timeout 600000 $ yarn cache clean 위 것도 안되면 yarn.lock 파일 지워보자.. 난 이..

어플리케이션 구성요소별 Naming Convention

Oracle 가이드는 다음과 같으니 참고하시길 https://www.oracle.com/java/technologies/javase/codeconventions-introduction.html Code Conventions for the Java Programming Language: 1. Introduction We’re sorry. We could not find a match for your search. We suggest you try the following to help find what you’re looking for: Check the spelling of your keyword search. Use synonyms for the keyword you typed, for example,..

Programming/기타 2023.06.26

influxDB influx cli 설치하기

influx cli를 설치해야 계정생성 부터 할수 있는게 많다... 아직 influx는 관리자콘솔 기능이 많이 부재하다. 어쩔수 없이 깔아야 한다. https://docs.influxdata.com/influxdb/v2.7/tools/influx-cli/?t=Linux Install and use the influx CLI | InfluxDB OSS 2.7 Documentation Thank you for your feedback! Let us know what we can do better: docs.influxdata.com Download the influx CLI package.Download from your browserDownload from the command line # amd64 wg..

PaaS/Data 2023.06.26

NPM 운영환경으로 이전할때 발생하는 버그 및 FIX

[에러] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. 본 포스팅은 아래의 링크를 참조하였습니다. 제 삽질을 덜어주셔서 감사합니다. https://velog.io/@black-pepper/Invalid-options-object.-Dev-Server-has-been-initialized-using-an-options-object-that-does-not-match-the-API-schema [에러] Invalid options object. Dev Server has been initialized using an options object tha..

NPM 패키지 매니저 Linux에 설치하기

nvm 공식 사이트 를 참고해 보자. curl, wget 둘 중 하나로 설치하면 된다. // curl으로 설치하기 # curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash // wget으로 설치하기 #wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash ~.bash_profile에 반영하자. # source .bash_profile nodejs v9.5.0 설치 # nvm install v9.5.0 // 아래의 방법으로 설치가능한 버전을 확인해도 된다. # nvm list-remote |grep 17.... ..