본문 바로가기

분류 전체보기340

BCD 11000001 (device) Element binary 구조 enum BcdDeviceType { kBcdDeviceTypeBoot = 0x05, kBcdDeviceTypePartition = 0x06, kBcdDeviceTypeLocate = 0x08 }; #pragma pack(push, 1) typedef struct _tag_bcd_device_element { unsigned char rev01[16]; unsigned char device_type; unsigned char rev02[7]; unsigned char unknown_48; unsigned char rev03[7]; union { // kBcdDeviceTypeLocate struct { unsigned char rev11[4]; unsigned char custom_type[4]; }; .. 2020. 8. 7.
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 apps Copies data from a named or anonymous pipe into a buffer without removing it from the pip.. 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.delete(uuid); resolve.call(null, ...arrayAr.. 2020. 4. 27.
반응형