본문 바로가기

전체 글101

[Redis] Redis sentinel 설정 방법..... (for mac) https://jojaeng2.tistory.com/41 [Redis] Redis Sentinel 구성하기[Redis] Redis Sentinel vs Cluster 이전에 나는 면접에서 'Redis를 캐시로 사용했을 때, Redis가 멈출 수도 있는데 어떻게 대처하겠는가?'에 대한 질문을 받은 적이 있었다. 이 질문은 장애 대처 능력에 대해jojaeng2.tistory.com참고 하였구요...순번은 다음과 같습니다. 1. redis 설치brew install redis 2. 다음 경로에서 5개의 설정 파일 만들기/opt/homebrew/Cellar/redis/7.2.7/.bottle/etcredis.conf, redis-slave.conf, redis-sentinel conf를 각각의 설정을 마친 뒤에.. 2025. 2. 14.
[Redis] Redis sentinel 설정 방법..... (for windows) redis-sentinel을 고려하게 된 건 고가용성 측면에서 사용하게 하기 위함이다.우선 서두에 말하자면, windows for linux는 더 이상 정식 최신 버전이 나오지 않는다.wsl이나 비공식 포트로 다운 받는 것도 한 방법이다. 하지만 windows로 해보는 것도 경험이니 적어본다.윈도우용 redis-sentinel 설정 1. https://adjin.tistory.com/9 -> 기본적으로 따라하면 됨 sentinel -file(copy 할 것)- >http://download.redis.io/redis-stable/sentinel.conf2. power shell에서 실행할 것 혹은 쓰기 권한 부여 폴더 별3. 주요 설정 제외 다 주석하기.(redis 버전이 legacy 버전..) 4. 경.. 2025. 2. 13.
[백준] 10799. 쇠막대기(c++) https://www.acmicpc.net/problem/10799 쇠막대기 자르는 문제였다. () 일 때 조건 처리가 중요했다.#include #include #include #include #include #include #include #include #include #include #include #include using namespace std;int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, ans = 0; string s; stack stk; cin >> s; for (int i = 0; i = 1 && s[i-1] == '(') { stk.pop.. 2025. 2. 12.
[백준] 3986. 좋은 단어(c++) https://www.acmicpc.net/problem/3986중간에 빠져나와야 한다는 생각에 매몰되었었다.교차한다는 것이 무엇일까??를 정의하는 것이 중요했다.#include #include #include #include #include #include #include #include #include #include #include #include using namespace std;int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, ans = 0; cin >> n; while (n--) { string s; stack stk; cin >> s; .. 2025. 2. 11.
[백준] 4949. 균형잡힌 세상(c++) https://www.acmicpc.net/problem/4949스택을 활용 기초 문제였다. #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); while (1) { string s; bool flag = true; stack stk; getline(cin, s); // 마무리 조건 if (s.size() == 1 && s[0] == '.') { break; } for (int i = 0; i 2025. 2. 10.
Kotlin으로 OpenApi(Swagger)에서 multipart와 dto(vo) 같이 받는 법 https://aahc912.tistory.com/66 Swagger(스웨거) multipart/form-data에서 try out이 불가능한 문제 "Content-Type 'application/octet-stream' is not supp개요 평소 API 문서 자동화 프레임워크로 `Swagger`를 많이 써왔는데 `multipart/form-data`를 Body로 받는 API의 경우 `Swagger` 문서에서 try out(실행)할 시에 예외(HttpMediaTypeNotSupportedException)가 발생하는 문제aahc912.tistory.com일단 아이디어 출처는 이거다.@requestPart는 속성이 지정이 되지 않아서 같이 보내면 application/octet-stream이 나온다. .. 2025. 2. 10.