Tagging
Try bookmarklet. Easy tagging.
Do you want to delete?
Do you want to modify?
  • LINKTAG
  • New
  • Tag
  • Comment
  • Tag, ops
Sign in

ops

it ops aws ec2

[AWS] ๐Ÿ“š EC2 ์š”๊ธˆ ๋ชจ๋ธ ๐Ÿ’ฐ ์ •๋ง ์•Œ๊ธฐ ์‰ฝ๊ฒŒ ์„ค๋ช…

EC2 4๊ฐ€์ง€ ๊ฐ€๊ฒฉ ๋ชจ๋ธ AWS EC2 ์ธ์Šคํ„ด์Šค์— ๋Œ€ํ•œ ์š”๊ธˆ์„ ์ง€๋ถˆํ•˜๋Š” ๋ฐฉ๋ฒ•์—๋Š” ์˜จ ๋””๋งจ๋“œ ์ธ์Šคํ„ด์Šค, ์˜ˆ์•ฝ ์ธ์Šคํ„ด์Šค, ์ŠคํŒŸ ์ธ์Šคํ„ด์Šค ๋ฐ ์ „์šฉ ํ˜ธ์ŠคํŠธ์˜ ๋„ค ๊ฐ€์ง€ ๋ฐฉ๋ฒ•์ด ์กด์žฌํ•œ๋‹ค. ์ด๋ ‡๊ฒŒ ๊ฐ€๊ฒฉ ๋ชจ๋ธ์„ ๋‚˜๋ˆˆ ์ด๋‰ด๋Š” ์ผ์ข…์˜ ๋งˆ์ผ€ํŒ… ์ „๋žต์ด๋ผ๊ณ  ๋ณด๋ฉด ๋œ๋‹ค. ๋Œ€์‹  ์†Œ๋น„์ž ์ž…์žฅ์—์„œ๋„ ๋”์šฑ ์ €๋ ดํ•˜๊ฒŒ ํ•„์š”ํ• ๋•Œ๋งŒ ์“ธ์ˆ˜ ์žˆ์–ด ์‚ฌ์šฉ๋Ÿ‰ ์š”๊ธˆ์„ ์ ˆ์•ฝํ•  ์ˆ˜ ์žˆ์œผ๋‹ˆ, ํด๋ผ์šฐ๋“œ๋ฅผ ์‚ฌ์šฉํ•œ๋‹ค๊ณ  ๋งˆ์Œ์„ ๋จน์—ˆ๋‹ค๋ฉด, aws ๊ฐ€๊ฒฉ์ •์ฑ… ๋ชจ๋ธ์— ๋Œ€ํ•ด์„œ ์ดํ•ด๋Š” ํ•„์ˆ˜์ด๋ผ๊ณ  ๋ด๋„ ๋œ๋‹ค. AWS EC2 ์š”๊ธˆ์ œ ์ง€๋ถˆํ•˜๋Š” ๋ฐฉ์‹์ด AWS ๊ณต์‹์‚ฌ์ดํŠธ์—๋„ ๋ช…์‹œ๋˜์–ด ์žˆ์ง€๋งŒ, ๋ณด๋‹ค ๋ช…ํ™•ํ•˜๋ฉด์„œ๋„ ์ดํ•ด๋˜๊ธฐ ์‰ฝ๊ฒŒ ์žฌ์ •๋ฆฌ ํ•ด๋ณธ๋‹ค. ์˜จ ๋””๋ฉ˜๋“œ (On-Demand Pricing) ์˜จ ๋””๋งจ๋“œ ์ธ์Šคํ„ด์Šค๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์‹คํ–‰ํ•˜๋Š” ์ธ์Šคํ„ด์Šค์— ๋”ฐ๋ผ ์‹œ๊ฐ„๋‹น ๋˜๋Š” ์ดˆ๋‹น ์ปดํ“จํŒ… ์šฉ๋Ÿ‰์„ ์ง€๋ถˆํ•˜๊ฒŒ ๋œ๋‹ค..
wono | discuss |
it ops db mysql dump

mysql DUMP์‚ฌ์šฉ

dump ์˜ต์…˜ โ€“single-transaction :ย  dump๋ฅผ ํ•˜๋‚˜์˜ ํŠธ๋žœ์žญ์…˜์„ ์ด์šฉํ•ด์„œ ์‹คํ–‰ํ•จ (InnoDB ์Šคํ† ๋ฆฌ์ง€ ์—”์ง„์„ ์‚ฌ์šฉํ•˜๋Š” ํ…Œ์ด๋ธ”์— ๋Œ€ํ•ด์„œ๋Š” Lock์—†์ด ์ผ๊ด€๋œ ๋คํ”„๋ฅผ ๋ฐ›์„ ์ˆ˜ ์žˆ์Œ). ์ž์„ธํ•œ ๋‚ด์šฉ์€ ์•„๋ž˜ โ€œ์ผ๊ด€๋œ ๋ฐ์ดํ„ฐ ๋คํ”„ ๋ฐ›๊ธฐโ€ ์ฐธ์กฐ โ€“flush-logs :ย dump๋ฅผ ์‹œ์ž‘ํ•˜๋Š” ์‹œ์ ์— binary log๋ฅผ rotation ์‹œํ‚ค๋„๋ก ํ•œ๋‹ค. Binary log๋ฅผ ์ฆ๋ถ„ ๋ฐฑ์—…์šฉ์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ, ํ’€๋ฐฑ์—…๊ณผ ์ฆ๋ถ„ ๋ฐฑ์—…์˜ ๊ตฌ๋ถ„์„ ๋ช…ํ™•ํžˆ ํ•  ์ˆ˜ ์žˆ๋‹ค. โ€“master-data :ย  ์ดโ€ฆ
wono | discuss |
it ops db mysql dump

mysqldump ์‚ฌ์šฉ์‹œ ์ฃผ์˜์ 

mysqldump๋Š” mysql, mariadb ์—์„œ ๋ฐ์ดํ„ฐ ๋ฐฑ์—…์‹œ ์ฃผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฑ์—…๋ฐฉ๋ฒ• ์ค‘ ํ•˜๋‚˜์ด๋‹ค. ๊ฐœ๋ฐœ DB์—์„œ ์‚ฌ์šฉํ•  ๋•Œ๋Š” ๋ฌธ์ œ๊ฐ€ ์—†์ง€๋งŒ ์„œ๋น„์Šค DB์—์„œ ์ด๊ฑธ ์‚ฌ์šฉํ•œ๋‹ค๋ฉด ํ•œ๊ฐ€์ง€ ์ฃผ์˜ํ•  ์ ์ด ์žˆ๋‹ค. ๋ชจ๋ฅด๊ณ  ๊ทธ๋ƒฅ ์‚ฌ์šฉํ•˜๊ฒŒ ๋œ๋‹ค๋ฉด TABLE LOCK ๋•Œ๋ฌธ์— ์„œ๋น„์Šค ์žฅ์• ๋ฅผ ์ผ์œผํ‚ฌ ์ˆ˜ ์žˆ๋‹ค. mysqldump๋Š” ์—ฌ๋Ÿฌ ์˜ต์…˜์ด ์žˆ๋Š”๋ฐ ๊ทธ๊ฒƒ์„ ๋ชจ๋ฅด๊ณ  default ์˜ต์…˜๋งŒ ๋†“๊ณ  ์‚ฌ์šฉํ•œ๋‹ค๋ฉด ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค. 1. default ์˜ต์…˜์‚ฌ์šฉ์‹œ ex) mysqldump -uroot -p๋น„๋ฒˆ xxxxDB TB_TEST_HIST > TB_TEST_HIST_20230110.sql MariaDB [(none)]> show processlist; +----------+-------------+---------------------..
wono | discuss |
it ops db mysql dump

[Mysql] mysql dump ์‚ฌ์šฉ๋ฒ•

๋ฐ์ดํ„ฐ ๋ฐฑ์—… : mysqldump๋Š” ๋ชจ๋“  ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ํ…Œ์ด๋ธ”์˜ ๋‚ด์šฉ์„ SQL ๋ช…๋ น์œผ๋กœ ์ถ”์ถœํ•˜์—ฌ, ์ด๋ฅผ ํ†ตํ•ด ํ…Œ์ด๋ธ” ์ƒ์„ฑ๊ณผ ๋ฐ์ดํ„ฐ ์‚ฝ์ž…์„ ํ•  ์ˆ˜ ์žˆ๋Š” SQL ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.๋ฐ์ดํ„ฐ ๋ณต์› : ์ƒ์„ฑ๋œ ๋คํ”„ ํŒŒ์ผ์€ mysql ๋ช…๋ น์–ด ๋ผ์ธ ์œ ํ‹ธ๋ฆฌํ‹ฐ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ MySQL ๋ฐ
wono | discuss |
it ops db postgresql varchar

Don't Do This - PostgreSQL wiki

wono | discuss |
it ops db postgresql

Should I add an arbitrary length limit to VARCHAR columns?

According to PostgreSQL's docs, there's no performance difference between VARCHAR, VARCHAR(n) and TEXT. Should I add an arbitrary length limit to a name or address column? Edit: Not a dupe of: W...
wono | discuss |
it ops code error

Differences in Javascript with throwing and return error

This blog is to differentiate the throwing an error with returning an error. In project, I found different people have different ways of handling errors, but when people work together, this kind ofโ€ฆ
wono | discuss |
it ops code error

Why is it better to throw an exception rather than return an error code?

Legacy error handling tends to follow the method that all functions return a code depending on success/failure. You would check this code and handle (if an error) appropriately. Modern programming
wono | discuss |
it ops db plpgsql

PL/pgSQL์˜ ๊ตฌ์กฐ - Amazon Redshift

Amazon Redshift์—์„œ ์‚ฌ์šฉ๋˜๋Š” PL/pgSQL ์–ธ์–ด์˜ ๊ตฌ์กฐ์— ๋Œ€ํ•ด ์•Œ์•„๋ด…๋‹ˆ๋‹ค.
wono | discuss |
it ops db uuid tsid

๋ถ„์‚ฐ ํ™˜๊ฒฝ์—์„œ P.K๋Š” ์–ด๋–ค ์ „๋žต์œผ๋กœ ๊ฐ€์ ธ๊ฐ€๋ฉด ์ข‹์„๊นŒ?

๋ณดํ†ต ๋‚ด๊ฐ€ ์ง„ํ–‰ํ•˜๋Š” ํ”„๋กœ์ ํŠธ์—์„œ๋Š” ๋‹จ์ผ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๋ฅผ ์‚ฌ์šฉํ•˜๊ฑฐ๋‚˜, ๋‹จ์ผ ์‹œ์Šคํ…œ์—์„œ ๋™์ž‘ํ–ˆ๊ธฐ์—, auto_increment P.K ์ „๋žต์„ ๊ฐ€์ ธ๊ฐ€๋„ ์ค‘๋ณต๋œ ๊ฐ’์ด ์กด์žฌํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ๊ฑฐ์˜ ์—†๊ธฐ ๋•Œ๋ฌธ์— ๋ฌธ์ œ๊ฐ€ ๋˜์ง€ ์•Š์•˜๋‹ค. ํ•˜์ง€๋งŒ ๋Œ€๊ทœ๋ชจ ๋ถ„์‚ฐ ์ฒ˜๋ฆฌ ์‹œ์Šคํ…œ์ผ ๋•Œ๋Š” ์ด ์ž๋™ ์ฆ๊ฐ€ ์ „
wono | discuss |
it ops db id pk

๐Ÿ”‘ Awesome Identifiers

wono | discuss |
it ops db postgresql do

[PostgreSQL] Function3

์ด๋ฒˆ ์žฅ์€ for๋ฌธ๊ณผ loop๋ฅผ ์ด์šฉํ•˜์—ฌ function์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฒ•์„ ์ตํ˜€๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ์šฐ์„ ์€ ์ฒœ์ฒœํžˆ ๊ฐ์„ ์žก์•„๊ฐ€๊ธฐ ์œ„ํ•ด ๋‚˜๋ฆ„๋Œ€๋กœ์˜ ๋‚œ์ด๋„๋ฅผ ์ƒ๊ฐํ•˜์—ฌ ์‰ฌ์šด ๋‚œ์ด๋„๋ถ€ํ„ฐ ์ฝ”๋“œ๋ฅผ ๋Š˜๋ ค๊ฐ€๋ฉฐ ๋‚œ์ด๋„๋ฅผ ๋†’์—ฌ๋ณด๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.for๋ฌธ๊ณผ loop ์‚ฌ์šฉ ์—ฐ์Šต ์ด์— ๋Œ€ํ•œ ๊ฒฐ๊ณผ๋กœ ์•„๋ž˜์™€
wono | discuss |
it ops db postgresql tsid

pg_random_id/lib/pg_random_id/sql/crockford-pure.sql at 0b4dc52c68b7b4aedca25e6a6cac848da7771d4a ยท arjunmenon/pg_random_id

Contribute to arjunmenon/pg_random_id development by creating an account on GitHub.
wono | discuss |
it ops db postgresql tsid

Build software better, together

GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
wono | discuss |
it ops db postgresql pk

PostgreSQL generate unique sorted IDs for timestamps

PostgreSQL generate unique sorted IDs for timestamps - snowflake.sql
wono | discuss |
it ops db postgresql base32

Base58 Encoder function in PostgreSQL

> https://www.postgresql.org/docs/9.6/functions-binarystring.html
wono | discuss |
it ops nextjs tsid

tsid-ts

A TypeScript library for generating Time-Sorted Unique Identifiers (TSID).. Latest version: 0.0.9, last published: a year ago. Start using tsid-ts in your project by running `npm i tsid-ts`. There is 1 other project in the npm registry using tsid-ts.
wono | discuss |
it ops db postgresql tsid

How to encode a byte array to base32 in PostgreSQL

I have a Java application that generates ids for primary keys by encoding cryptographically random bytes to base32 (RFC4648). How do I do the same with PostgreSQL from an SQL script? The gen_random...
wono | discuss |
it ops db postgresql tsid

GitHub - sergeyprokhorenko/pg_ulid_comparison: Comparison of ULID generation functions for PostgreSQL

Comparison of ULID generation functions for PostgreSQL - sergeyprokhorenko/pg_ulid_comparison
wono | discuss |
it ops db postgresql tsid

GitHub - schinckel/ulid-postgres

Contribute to schinckel/ulid-postgres development by creating an account on GitHub.
wono | discuss |
Next
© 2026. LINKTAG.ORG. Help Feedback Privacy Terms