본문 바로가기
vue.js npm install -g @ vue/cli vue create test> default (babel, eslint)> {enter}src/assetssrc/componentsApp.vuemain.js.gitignorebabel.config.jspackage.json npm run servehttp://localhost:8080  components/layout/Header.vue 생성 #부트스트랩 설치http://bootstrap-vue.orgnpm install vue bootstrap-vue bootstrap 2024. 5. 27.
windows에서 ext4 mount https://learn.microsoft.com/ko-kr/windows/wsl/install  Windows 업데이트 참가자 설정: 개발자 채널 powershell 관리자 모드에서 수행 wmic diskdrive list briefCaption DeviceID Model Partitions SizeWD Elements 2621 USB Device \\.\PHYSICALDRIVE1 WD Elements 2621 USB Device 1 4000751516160ATA SanDisk SDSSDH3 SCSI Disk Devi.. 2024. 5. 4.
Flask 프레임워크 thread WSGI Server (Gunicorn, uWSGI, mod_wsgi 또는 내장 werkzeug 벡자이크) 출처: etloveguitar.tistory/92 import randomimport threadingimport timefrom werkzeug.local import LocalStackthread_data_stack = LocalStack()def long_running_function(thread_index): thread_data_stack.push(f'index: {thread_index}, thread_id: {threading.get_native_id()}') print(f'Starting thread #{thread_index}... {thread_data_stack}') .. 2024. 4. 12.
파이썬 flask - redis - celery 구조 파이썬Flask webframeworkredis brokercelery async worker 구조로 사용할 것이다.title excel upload apiparticipant Userparticipant Web App (Flask)participant Redisparticipant Celery Workerparticipant DBUser->Web App (Flask):GET /excelUserWeb App (Flask):POST /excel/uploadWeb App (Flask)->Redis:Enqueue a new task to the brokerRedisDB:Update resultUser->Web App (Flask):Check the status of the taskUser 2024. 3. 14.
[service] Kubernetes 에 실행중인 Pod 에서 외부 mysql 연결하기 쿠버네티스를 도입한다 하더라도 대부분 애플리케이션만 쿠버네티스 상에서 돌리고, 일반적으로 데이터베이스는 외부 Baremetal 로 실행 중인 경우가 많습니다.이 경우 굳이 데이터베이스를 쿠버네티스로 옮기지 않아도 쿠버네티스의 애플리케이션이 데이터베이스에 접근할 수 있는 방법이 있습니다.해결책은 Service 와 Endpoint 를 활용하는 방법입니다. 일반적으로 Service 를 만들 때 Selector 를 활용하여 다른 Pod 와 연결합니다. 이 때 Selector 가 잘 연결되면 Endpoint 도 자동으로 생성됩니다.하지만 위의 경우에는 데이터베이스(예: mariadb) 이 쿠버네티스 클러스터 외부에 있으므로 Selector 를 활용할 수 없습니다.이 경우에는 Endpoint 가 자동으로 생성되지 .. 2024. 3. 13.
APM, JAVA Agent 출처: https://saramin.github.io/2020-03-24-elastic-apm-1/ APMAPM은 Application Performance Monitoring의 약어로, Application에 대한 성능정보 및 발생한 Error정보 그리고 Application이 동작중인 서버의 기본적인 Metric정보를 수집 할 수 있는 기능을 지원합니다.또한 MicroService 환경에서 서비스를 구성하는 여러 Application간의 Request를 하나의 Trace로 묶어서 추적 할 수 있는 분산 Tracing(distributed tracing)에 대한 기능도 지원합니다.APM은 위와 같이 수집된 여러 데이터를 바탕으로 하여 Application에 지연이 발생하였을때 지연에 대한 병목 구간을 .. 2024. 3. 6.