Incremental 옵션이 영향을 주는것 같아서 해보는데 일단 귀찮아서...

Incremental no 옵션을 설정한 다음 전체 로그를 붙여서(과거 - 현재 순서로)

붙이니 일단 되는 듯.. -p 옵션을 통해서 여러개로 나누어진 녀석을 처리가능하다는데

해보진 않아서 모르겠네.. 해볼까? (멀 잘못했나.. -p 로그파일 해도 안되네..)

 

6. My logs are HUGE! Can I run The Webalizer on partial logs?Yes!
        . The Webalizer fully supports incremental processing. This allows you to rotate your logs as often as needed without the loss of statistical detail between runs. Use the "Incremental" keyword in your configuration file, or the "-p" command line switch to enable incremental processing. See the
 README file for additional information and precautions on using incremental processing.

[링크 : http://www.webalizer.org/faq.html]

 

The Webalizer is a command line application and is launched from the operating system shell prompt. A typical command is shown below.webalizer -p -F clf -n en.wikipedia.org -o reports logfiles/access_log

This command instructs The Webalizer to analyze the log file access_log, run in the incremental mode (-p), interpret the log as a CLF log file (-F), use the domain name en.wikipedia.org for report links (-n) and produce the output subdirectory of the current directory. Use the -h option to see the complete list of command line options.

[링크 : https://en.wikipedia.org/wiki/Webalizer#Command_line]

 

for obj in $(ls access*); do webalizer -p -F apache -n example.hostname.com -o /path/to/webalizer/ $obj; done

[링크 : https://coderwall.com/p/0eh7iw/run-old-access-logs-through-webalizer]

Posted by 구차니

전자담배 때문에 길거리든 어디든

갑자기 풍겨오는 인공향료 냄새는 니코틴으로 받아들여져서

 

이제 아무런 향이 나지 않으면 담배 아닌가 민감해지는 상황..

전자담배라고 해서 공기중에 뿜은 연기에 니코틴이 하나도 없는게 아닐텐데

타르로 인해서 냄새가 안밴다고 너무 사람들의 인식이 낮아진게 아닐까?

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

몸이 고장나는 시기구만..  (2) 2019.05.25
비싼 똥개 -_ㅠ  (2) 2019.04.21
희한하게 피곤..  (0) 2019.04.09
어라 부품들이 많네..?  (0) 2019.04.06
또 다시 돌아온 지름신..  (3) 2019.03.20
Posted by 구차니

특정 디렉토리를 제외하려면 그냥 적고

그 안에 특정 파일은 버전관리 하려면

!/path/filename

으로 적어주면 된다.

[링크 : https://stackoverflow.com/questions/987142/make-gitignore-ignore-everything-except-a-few-files]

Posted by 구차니

kvm 에서 작동중에 cpu를 추가하는 방법

반대로 빼는건 좀 복잡한 듯

 

추가하기

# virsh setvcpus UAKVM2 2
# virsh dominfo UAKVM2

 

제거하기

# virsh setvcpus --live --guest UAKVM2 1

 

설정 저장하기
# virsh setvcpus --config UAKVM2 1

[링크 : https://www.unixarena.com/2015/12/linux-kvm-how-to-add-remove-vcpu-to-guest-on-fly.html/]

 

+

2019.04.20

현재 2개인데

줄이는 것 일단 안되는데 착각해서 해보고..

# virsh setvcpus testvm 1
오류:지원되지 않는 설정: failed to find appropriate hotpluggable vcpus to reach the desired target vcpu count

 

늘리는 건 최대 값 설정된게 있는데 그걸 넘어서 안된다고 하네..

# virsh setvcpus testvm 4
오류:잘못된 인수: requested vcpus is greater than max allowable vcpus for the live domain: 4 > 2

 

이것저것 해보는데.. maximum live는 어떻게 올리지? ㅠㅠ

# virsh vcpucount testvm
maximum      config         2
maximum      live           2
current      config         2
current      live           2

# virsh setvcpus testvm 4 --maximum
오류:Option --config is required by option --maximum

# virsh setvcpus testvm 4 --maximum --config

# virsh vcpucount testvm
maximum      config         4
maximum      live           2
current      config         2
current      live           2

 

# virsh setvcpus testvm 4 --live
오류:잘못된 인수: requested vcpus is greater than max allowable vcpus for the live domain: 4 > 2

 

# virsh setvcpus testvm 4 --live --maximum --config
오류:Operation not supported: maximum vcpu count of a live domain can't be modified

 

아래 명령으로 2를 4로 바꾸었는데

# virsh edit testvm

 <vcpu placement='static'>4</vcpu>

 

maximum live는 안올라가네.. 그래서 여전히 설정이 안된다.. ㅠㅠ

# virsh vcpucount testvm 
maximum      config         4
maximum      live           2
current      config         4
current      live           2

 

chcpu로 코어를 끄고 켤 수 있는 듯?

# chcpu

Usage:
 chcpu [options]

Options:
  -h, --help                    print this help
  -e, --enable        enable cpus
  -d, --disable       disable cpus
  -c, --configure     configure cpus
  -g, --deconfigure   deconfigure cpus
  -p, --dispatch          set dispatching mode
  -r, --rescan                  trigger rescan of cpus
  -V, --version                 output version information and exit

[링크 : https://www.ibm.com/.../ldva_t_modifyingCPUNumber.html]

Posted by 구차니

cpu를 가상화해서 특정 프로세스에서 돌아가게 해주는거니

affinity를 통해서 특정 VM에 특정 vcpu를 할당하는게 가능은 하겠다 싶은데

그 이유중에 하나가 HT 코어는 실 코어보다 성능이 떨어지기 때문.

(반대로 서버에서 HT를 쓰지 않거나, 반대로 특정 코어를 지정안하는게 낫지 않나 싶지만

코어 갯수로 라이센스 먹이는 사악한 놈들이 있다고도 하니..)

 

[링크 : https://forums.unraid.net/...-performance-improvements-in-vms-by-adjusting-cpu-pinning-and-assignment/]

'프로그램 사용 > kvm(virt-manager)' 카테고리의 다른 글

VDI GPU passthrough  (0) 2019.04.24
kvm live add cpu  (0) 2019.04.16
virsh domstats 로 가상머신의 cpu 사용율 확인하기  (0) 2019.03.29
kvm snapshot  (0) 2019.03.17
tar 로 압축된 sparse file 풀기  (0) 2019.02.16
Posted by 구차니
Programming/node.js2019. 4. 16. 18:21

'Programming > node.js' 카테고리의 다른 글

nodejs url param delete  (0) 2019.04.17
url 끝의 /  (0) 2019.04.17
크롬에서 "사용가능한 소켓 대기중" 상태표시줄 메시지  (0) 2019.04.16
proxy error: Error: write after end  (0) 2019.04.15
https cache proxy using node.js  (0) 2019.04.12
Posted by 구차니
Programming/node.js2019. 4. 16. 12:41

프록시 갈군다고 크롬으로 하다 보니.. 아래에서 자꾸 먼가 뜨는데

찾아보니.. 지금도 그런진 모르겠지만 크롬은 소켓 6개까지 열수 있다고

그래서 ajax 등으로 소켓이 닫히지 않으면 이런식으로 대기가 걸리는 고질적인 문제가 있다고 한다.

프록시에서 그럼 응답을 못 받으면 헤어나질 못하게 되는건가?

 

[링크 : https://dev18.tistory.com/35]

[링크 : https://dev.uhoon.co.kr/entry/waiting-for-available-sockets-사용-가능한-소켓-대기-중-에러-원인과-확인]

 

+

아래 링크로 가면 관리 페이지가 뜨긴 하는데 상세 소켓별 상태를 볼 수 있는건 아님

[링크 : chrome://net-internals/#sockets]

'Programming > node.js' 카테고리의 다른 글

url 끝의 /  (0) 2019.04.17
js array key 삭제하기  (0) 2019.04.16
proxy error: Error: write after end  (0) 2019.04.15
https cache proxy using node.js  (0) 2019.04.12
node.js mkdir -p 옵션 사용하기  (0) 2019.04.10
Posted by 구차니
Programming/node.js2019. 4. 15. 18:20

에러는 뜨는데 어떻게 해결해야 할지 감이 안오네..

 

[링크 : https://stackoverflow.com/questions/27769842/write-after-end-error-in-node-js-webserver]

Posted by 구차니

머.. 핑계는 좋은데 결국에는 약을 팔아야 돈이 남는 집단인거고

건보 적용에 대한건 당연히 이야기 나올거라고 생각했지만

 

 

'낙태' 수술비 10만원대로 내릴까.."건보 적용해야" 주장

[링크 : https://news.v.daum.net/v/20190414060506710]

 

[논평] 임신중절의 합법화와 함께 미프진의 빠른 도입을 바라며

[링크 : http://www.pharmacist.or.kr/node/13254]

Posted by 구차니

아내가 갑자기 6시에 뻗어 버려서

애들 데리고 마트 돌다 들어가니 8시

부랴부랴 밥 먹이고

그래도 조금은 평온하게(?) 밥상위 전쟁만 제외하면 끝나는 듯 하네

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

피곤  (0) 2019.04.20
아이에게 조심해라가 잘못된 걸까?  (2) 2019.04.18
똥개 피똥.. 토..  (0) 2019.04.13
심리 상담 다녀옴  (0) 2019.03.16
3년치 인화 신청 빡세다..  (2) 2019.03.04
Posted by 구차니