Posts with the tag Infra:

[Infra] MySQL Study (2/5) - SQL & key & collation

MySQL SQL & key & collation에 대해서 알아본다, SQL: DML, DDL, DCL. Key: primary, foreign, super, candidate, alternative, surrogate. Collation: utf8, utf8mb4. Index Structured Query Language Key Collation Reference 리뷰 후에 알게된 부분들 Primary Key가 들어간 column 의 이름도 아닌 제약조건에 이름을 만드는 이유 주임님이 주신 의견: 기본키를 항상 하나의

[Infra] MySQL Study (1/5) - Index

MySQL Index에 대해서 알아본다: clustered, non-clustered structure and algorithm. B-Tree, R-Tree. Side effect of index. Index Clustered Index / Non-Clustered Index - Concept Clustered Index / Non-Clustered Index - Structure and Index algorithm Side effects of Indexes Related SQL Command with Indexes Reference 리뷰 후에 알게된 부분들 Non-Clustered Index가 여러 개 생성이 가능하지만 무제한으로 만들 수 있는 것은 아니다. 조회

[Infra] 안 쓰는 노트북에 Ubuntu 설치하고 초기 설정하기

Ubuntu 설치와 초기 설정 방법에 대해 알아본다. From basic: installation USB, network, static ip, SSH, user and sudoer to custom: prompt, build-essential, installation Maria DB. Index 리눅스 설치 초기 네트워크 설정 SSH 설정 사용자 설정 기타 설정 MariDB 설치/설정 리눅스 설치 리눅스 설치용 usb 리눅스를 설치하려면 설치용 usb를 먼저 만들

[Infra] (en) Running Shiny server with Docker

Handles running Shiny server with Docker. Index How I got into Docker Making Shiny Docker Troubleshooting with Network Reference How I got into Docker Docker make server infra as a code and we can share anywhere! Nightmare of installing library for Shiny I had wondered why many developers love docker so much for a while. A few days ago, I got a chance to install docker in my company’s test server. The thing is that we have shiny server written in R in the test server. I still remember I had to be though install a bunch of library to

[Infra] (en) Name convention of host and URL

Name Convention of Host and URL: Reserved characters and unsafe characters. Index Troubleshooting for Name Convention Name Convention Troubleshooting for Name Convention How I occurred the trouble Today, I had to be through very awful exception. There is an api server I have to send a request to update meta data. For performance issue, this server just cached meta data and uses it till updated. Usually it’s quite simple. Make request with RestTemplate in Spring boot. This situation got started two days age. The server which contains api server moved to new ec2 machine, and it had new ip. So I have to send my request to the new ip.

[Infra] (en) Write Shell script to deploy server and rotate log

Write shell script to deploy server and rotate log. Index Shell script to deploy server Shell script to rotate log (plus) /dev/null UPDATE VERSION OF SHELL SCRIPT WITH PASSWORD One month ago, I make this shell script with hard coded user password and I knew that was a bad idea. It is well known fact that leaving password somewhere or some files can be a huge problem with security later. So I decided to fix it. How to request password in shell script 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 #!

[Infra] (en) MySQL View and UNION/JOIN

Handles MySQL View and UNION/JOIN Index Intro View UNION/JOIN Intro Today, I faced my big mistake with new updated function which is made by me as well. The situation is something like this. We have a message service firing with multiple condition such as accomplish of today’s step count or tag reminder of today’s goal. Table Design When we designed tables, we separate to act_message and goal_message. (Obviously, it’s design error. I was supposed to create one table for these two). And there is mp3 file table music_list because the message will be playing designated mp3 file when it gets fired.