전체 글356 CreatePipe에 PeekNamedPipe을 쓰지 마세요! stackoverflow을 보면 가끔 CreatePipe로 pipe를 생성하고,CreateProcess에다가 해당 Pipe를 넣어서,stderr/stdout을 PeekNamedPipe로 데이터가 있는지 확인한다. 대충 해보면 작동하는거 같다..하지만 모든 상황에 작동하는것은 아니다. https://docs.microsoft.com/en-us/windows/win32/api/namedpipeapi/nf-namedpipeapi-peeknamedpipe PeekNamedPipe function (namedpipeapi.h) - Win32 appsCopies data from a named or anonymous pipe into a buffer without removing it from the pipe.do.. 2020. 8. 7. ubuntu squashfs + overlayfs https://github.com/jc-lab/ubuntu-overlayfs-installer jc-lab/ubuntu-overlayfs-installer Contribute to jc-lab/ubuntu-overlayfs-installer development by creating an account on GitHub. github.com 참고 힘들었따..ㅠㅠ 덕분에 cloud-init 에 많이 배우게 되었다. hostname 및 netplan 등을 cloud-init을 통해 설정한다. datasource에는 몇가지 방법이 있는데 nocloud-net의 경우 /var/lib/cloud/seed/nocloud-net/에 meta-data 와 user-data가 있는 경우 활성화된다. 이를 rootfs 이.. 2020. 6. 18. k8s 특정 노드에서 schedule 하지 않게 하기 지난 번 rook-ceph 사용시 XFS파일시스템을 사용하면서 osd가 있는 볼륨에서 rbd를 사용하면 Kernel에서 Hang이 걸리는 문제가 있었다. 따라서 storage전용 node에서는 Scheduling을 막아야 한다. 이는 taint 으로 가능하다. $ kubectl label nodes node-type.cluster.label/ceph-storage=true $ kubectl taint nodes node-type.cluster.label/ceph-storage=true:PreferNoSchedule # CephCluster 에서 아래 내용을 꼭 추가해줘야 한다! placement: osd: tolerations: - key: node-type.cluster.label/ceph-storag.. 2020. 6. 4. MariaDB & Ceph & Galera 성능 테스트 스펙 복잡함..ㅋ HDD여러개.. 네트워크 1Gbps 꾸진..... node들... 가벼운 참고용... Kubernetes : v1.16.8 rook-ceph : v14.2.8 전체.. Type transactions (per sec) queries (per sec) ignored errors reconnects MariaDB & HostPath 38.43 (100%) 768.62 (100%) X X MariaDB & Ceph 20.40 (53%) 407.91 (53%) X X MariaDB-Galera & CEPH 16.73 (43.5%) 339.32 (44.1%) 16 (0.25/s) X MariaDB & HostPath DBMS : mariadb (without clustering) storage .. 2020. 5. 27. 멈춘 Promise 디버깅 하기 소스 초반에..import * as uuids from 'uuid';const promiseMap: Map = new Map();const OrigPromise: PromiseConstructor = global.Promise as PromiseConstructor;function arrayArguments(input: IArguments): any[] { const arr = []; for(let i=0; i { const uuid = uuids.v4(); promiseMap.set(uuid, { uuid, stack }); func(function() { promiseMap.del.. 2020. 4. 27. bitnami/mariadb-galera 오류날때 helm으로 bitnami/mariadb-galera를 설치했을 때 아래와 같은 오류가 난다. (2020-04-23기준 mariadb-galera-2.0.1 차트) (bitnami github에서 받아서 설치하면 Access denied 'root'... 오류가 난다.. 그냥 github안쓰고 직접 해야 오류 안난다.. WSREP_SST: [ERROR] xtrabackup_checkpoints missing, failed innobackupex/SST on donor (20200423 05:34:56.967) WSREP_SST: [ERROR] Cleanup after exit with status:2 (20200423 05:34:56.969) 이런 경우 helm install 하자마자 statefulse.. 2020. 4. 23. 이전 1 ··· 21 22 23 24 25 26 27 ··· 60 다음 반응형