일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- s3
- 설정
- API
- AWS
- 유니티
- 영어
- 구글
- elasticsearch
- ssh
- React
- Python
- logstash
- sample
- Ai
- MSSQL
- Windows
- Linux
- JavaScript
- MySQL
- Kibana
- build
- JS
- ChatGPT
- mariadb
- SSL
- nodejs
- docker
- unity
- error
- Today
- Total
목록개발 이야기/DB, 데이터분석, AI (39)
가끔 보자, 하늘.
MaxScale 추가 설정하다가 이전 내용을 한번에 다 정리해봤습니다. CentOS7 최소 버전이 설치된 환경에서 MariaDB 10.1 버전을 기준으로 진행된 내용입니다. [ MariaDB 설치하기 ] 1. mariadb repo 파일을 만듭니다. (/etc/yum.repos.d/MariaDB.repo) [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=0 2. MariaDB를 설치합니다. yum install -y MariaDB MariaDB-server MariaDB-client [ Galera Cluste..
http://galeracluster.com/library/documentation/selinux.html SELinux Configuration — Galera Cluster Documentation SELinux Configuration Security-Enhanced Linux, or SELinux, is a kernel module for improving security of Linux operating systems. It integrates support for access control security policies, including mandatory access control (MAC), that limit user applicati galeracluster.com 꼭 읽어봐야 함. ..
Invalid aggregation order path [something]. Buckets can only be sorted on a sub-aggregator path that is built out of zero or more single-bucket aggregations within the path and a final single-bucket or a metrics aggregation at the path end. 아래와 같은 샘플을 만들었었다. "query" : { ... 검색 조건...}."aggs" : {"term_key" : {"terms": {"field" : "field_first","order" : {"something" : "desc"}}"aggs": {"something" :..
간혹 테스트를 하거나 잘못 보내진 문서만 골라서 지워야 하는 경우가 있다. kibana dev tools에서 _delete_by_query를 사용하여 손쉽게 처리할 수 있다. (앞으로도 간혹 생각나는 것들이 있거나 기록하고 싶으면 아래 내용을 추가할 예정!!) >> 특정 범위의 로그를 지울 경우POST logstash-rs1_lnk_kr-*/_delete_by_query{ "query": { "range" : { "item_name_you_want_to_delete": { "lt" : "value_you_find_out" // lt= less than, gt=greater than, eq=equal } } }}
쿼리브라우져를 사용할 때, 새로운 편집 창을 열면 새로운 세션이 생성됨. 그래서 편집 창을 열었다가 뭔가 하고 닫기를 반복하면, 세션이 계속 생성되어, max_connections 개수를 초과하는 문제가 발생할 수 있다. 거기다 wait_timeout을 길게 잡아두면 더 쉽게 걸림. sp를 줄줄이 수정하다가 문제가 생기는 경우가 있음. 주의하자.!!
예를들어 sp를 사용할 때, 내가 조회하는 테이블에 seqIndex라는 컬럼이 있고, 쿼리문은 아래와 같다고 가정한다. insert into tbTable_Backup (seqIndex) select @seqIndex from tbTable where index=@inp_index; tbTable과 tbTable_Backup은 같은 구조로 되어 있으며, tbTable은 seqIndex bigint 컬럼 하나만 가지고 있다고 가정한다. 위 쿼리에서 원래는 서브쿼리인 select문은, 아래의 코드가 원래 의도했던 바다. insert into tbTable_Backup (seqIndex) select seqIndex from tbTable where index=@inp_index; 이 경우, Query Bro..