'프로그램 사용'에 해당되는 글 2431건

  1. 2019.05.16 docker image tar
  2. 2019.05.16 docker offline image
  3. 2019.05.16 kvm virsh console 사용하기
  4. 2019.05.15 mosquitto - MQTT broker
  5. 2019.05.15 cassandra 메모리 관리
  6. 2019.05.14 elk - ElasticSearch, LogStash, Kibana
  7. 2019.04.30 libvirtd와 webvirtmgr
  8. 2019.04.26 리눅스 콘솔창 해상도 변경하기
  9. 2019.04.24 VDI GPU passthrough
  10. 2019.04.22 docker cassandra
프로그램 사용/docker2019. 5. 16. 19:13

 

 

$ file *
cdccdf50922d90e847e097347de49119be0f17c18b4a2d98da9919fa5884479d:      directory
fce289e99eb9bca977dae136fbe2a82b6b7d4c372474c9235adc1741675f587e.json: ASCII text, with very long lines, with no line terminators

manifest.json:                                                         ASCII text
repositories:                                                          ASCII text

 

 

$ file *
VERSION:   ASCII text, with no line terminators
hello:     ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, BuildID[sha1]=1db23291fc8346e8622488be91d4c5438b760315, strippedjson:      ASCII text, with very long lines, with no line terminators
layer.tar: POSIX tar archive

 

 

 

$ cat fce289e99eb9bca977dae136fbe2a82b6b7d4c372474c9235adc1741675f587e.json 
{"architecture":"amd64","config":{"Hostname":"","Domainname":"","User":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"Cmd":["/hello"],"ArgsEscaped":true,"Image":"sha256:a6d1aaad8ca65655449a26146699fe9d61240071f6992975be7e720f1cd42440","Volumes":null,"WorkingDir":"","Entrypoint":null,"OnBuild":null,"Labels":null},"container":"8e2caa5a514bb6d8b4f2a2553e9067498d261a0fd83a96aeaaf303943dff6ff9","container_config":{"Hostname":"8e2caa5a514b","Domainname":"","User":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"Cmd":["/bin/sh","-c","#(nop) ","CMD [\"/hello\"]"],"ArgsEscaped":true,"Image":"sha256:a6d1aaad8ca65655449a26146699fe9d61240071f6992975be7e720f1cd42440","Volumes":null,"WorkingDir":"","Entrypoint":null,"OnBuild":null,"Labels":{}},"created":"2019-01-01T01:29:27.650294696Z","docker_version":"18.06.1-ce","history":[{"created":"2019-01-01T01:29:27.416803627Z","created_by":"/bin/sh -c #(nop) COPY file:f77490f70ce51da25bd21bfc30cb5e1a24b2b65eb37d4af0c327ddc24f0986a6 in / "},{"created":"2019-01-01T01:29:27.650294696Z","created_by":"/bin/sh -c #(nop)  CMD [\"/hello\"]","empty_layer":true}],"os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:af0b15c8625bb1938f1d7b17081031f649fd14e6b233688eea3c5483994a66a3"]}}

 

$ cat manifest.json 
[{"Config":"fce289e99eb9bca977dae136fbe2a82b6b7d4c372474c9235adc1741675f587e.json","RepoTags":["hello-world:latest"],"Layers":["cdccdf50922d90e847e097347de49119be0f17c18b4a2d98da9919fa5884479d/layer.tar"]}]

 

$ cat repositories 
{"hello-world":{"latest":"cdccdf50922d90e847e097347de49119be0f17c18b4a2d98da9919fa5884479d"}}

 

 

$ cat VERSION 
1.0

 

$ cat json 
{"id":"cdccdf50922d90e847e097347de49119be0f17c18b4a2d98da9919fa5884479d","created":"2019-01-01T01:29:27.650294696Z","container":"8e2caa5a514bb6d8b4f2a2553e9067498d261a0fd83a96aeaaf303943dff6ff9","container_config":{"Hostname":"8e2caa5a514b","Domainname":"","User":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"Cmd":["/bin/sh","-c","#(nop) ","CMD [\"/hello\"]"],"ArgsEscaped":true,"Image":"sha256:a6d1aaad8ca65655449a26146699fe9d61240071f6992975be7e720f1cd42440","Volumes":null,"WorkingDir":"","Entrypoint":null,"OnBuild":null,"Labels":{}},"docker_version":"18.06.1-ce","config":{"Hostname":"","Domainname":"","User":"","AttachStdin":false,"AttachStdout":false,"AttachStderr":false,"Tty":false,"OpenStdin":false,"StdinOnce":false,"Env":["PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"],"Cmd":["/hello"],"ArgsEscaped":true,"Image":"sha256:a6d1aaad8ca65655449a26146699fe9d61240071f6992975be7e720f1cd42440","Volumes":null,"WorkingDir":"","Entrypoint":null,"OnBuild":null,"Labels":null},"architecture":"amd64","os":"linux"}

 

 

 

[링크 : https://serverfault.com/questions/701248/downloading-docker-image-for-transfer-to-non-internet-connected-machine]

[링크 : https://code-maze.com/docker-hub-vs-creating-docker-registry/]

'프로그램 사용 > docker' 카테고리의 다른 글

docker start run attach  (0) 2019.05.17
docker run, exec  (0) 2019.05.16
docker offline image  (0) 2019.05.16
cassandra 메모리 관리  (0) 2019.05.15
docker cassandra  (0) 2019.04.22
Posted by 구차니
프로그램 사용/docker2019. 5. 16. 19:00

 

  load        Load an image from a tar archive or STDIN
  pull        Pull an image or a repository from a registry
  push        Push an image or a repository to a registry
  save        Save one or more images to a tar archive (streamed to STDOUT by default)

 

$ sudo docker pull hello-world

$ sudo docker save -o hello-world  hello-world

-rw-------  1 root     root      13K  5월 16 19:04 hello-world

$ sudo file hello-world 
hello-world: POSIX tar archive

 

[링크 : https://serverfault.com/.../downloading-docker-image-for-transfer-to-non-internet-connected-machine]

'프로그램 사용 > docker' 카테고리의 다른 글

docker run, exec  (0) 2019.05.16
docker image tar  (0) 2019.05.16
cassandra 메모리 관리  (0) 2019.05.15
docker cassandra  (0) 2019.04.22
docker-compose up/down 주의사항  (0) 2019.03.24
Posted by 구차니

이 명령어는 시리얼 콘솔을 연결해 주는 듯

 

$ virsh console VM_NAME

도메인 VM_NAME에 연결되었습니다
Escape character is ^]

 

# vim /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet console=ttyS0"
GRUB_DISABLE_RECOVERY="true"

grob2-mkconfig -o /boot/grub2/grub.cfgZSH
# grub2-mkconfig -o /boot/grub2/grub.cfg

[링크 : http://inux.systemv.pe.kr/가상-머신에-콘솔-접속하기/]

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

virsh host only network  (0) 2019.07.09
vmdk를 qcow2로 변경하기  (2) 2019.07.09
libvirtd와 webvirtmgr  (0) 2019.04.30
리눅스 콘솔창 해상도 변경하기  (0) 2019.04.26
VDI GPU passthrough  (0) 2019.04.24
Posted by 구차니

일종의.. 서버 역활을 하는 녀석

eclipse 재단에서 만든건가?

 

[링크 : http://mosquitto.org/]

[링크 : https://midnightcow.tistory.com/36]

'프로그램 사용 > mosquitto' 카테고리의 다른 글

mosquitto qos  (0) 2025.04.18
mosquitto for windows 계정추가  (0) 2025.02.18
mosquitto service for windows  (0) 2025.02.18
CC2531 zigbee - mqtt  (0) 2025.01.07
ubuntu MQTT(mosquito)  (0) 2024.05.23
Posted by 구차니
프로그램 사용/docker2019. 5. 15. 15:02

단순하게(?) 전체 힙 사이즈와, 새로운 힙 사이즈에 대한 설정만 있는 것으로 보이는데

아래가 기본값인듯 하고.. docker를 통해 실행한 카산드라는 기본 4G의 메모리를 먹을 것으로 보인다.

 

 

일단 찾을건.. 최대 메모리 설정을 줄이는 것과

GC를 가동할 시간을 좀 짧게 가져가는 것

그리고 spring에서 카산드라 DB의 메모리를 GC 시키는 것 정도일려나?

 

#MAX_HEAP_SIZE=”4G”
#HEAP_NEWSIZE=”800M”

[링크 : http://theeye.pe.kr/archives/1375]

[링크 : https://knight76.tistory.com/entry/cassandra-compaction-관련]

 

+

2019.05.16

 

[링크 : https://stackoverflow.com/questions/34745419/how-to-set-cassandra-2-0-jvm-heap-size-of-8gb]

[링크 : https://tobert.github.io/pages/als-cassandra-21-tuning-guide.html]

 

datastax

[링크 : https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsTuneJVM.html]

'프로그램 사용 > docker' 카테고리의 다른 글

docker image tar  (0) 2019.05.16
docker offline image  (0) 2019.05.16
docker cassandra  (0) 2019.04.22
docker-compose up/down 주의사항  (0) 2019.03.24
docker 컨테이너 자동시작  (0) 2019.03.21
Posted by 구차니

데이터분석용인데 몇개 검색해보니 로그 분석용으로 더 쓰이는 느낌

ElasticSearch, LogStash, Kibana

 

[링크 : https://sanghaklee.tistory.com/51]

[링크 : https://heowc.tistory.com/49]

[링크 : http:// https://www.inflearn.com/course/elk-스택-데이터-분석/#]

'프로그램 사용 > 서버 모니터링' 카테고리의 다른 글

prometheus lustre expoter  (0) 2020.11.16
kibana  (0) 2020.10.14
grafana  (0) 2020.10.14
zabbix  (0) 2020.10.14
prometheus  (0) 2020.10.14
Posted by 구차니

예전에 찾아 놓은 Web GUI 로 된 kvm 관리자를 해보는데

[링크 : https://github.com/retspen/webvirtmgr/wiki/Install-WebVirtMgr]

 

 

libvirtd를 구동하면 에러가 나는데 기본이 TLS 인증이라 그런듯.

아무튼 libvirtd에 설정을 바꾸어주면 되긴하는데.. 인증이 안되네..

$ sudo vim /etc/libvirt/libvirtd.conf

#
# For further information consult https://libvirt.org/format.html
#
# NOTE: the tests/daemon-conf regression test script requires
# that each "PARAMETER = VALUE" line in this file have the parameter
# name just after a leading "#".

#################################################################
#
# Network connectivity controls
#

# Flag listening for secure TLS connections on the public TCP/IP port.
# NB, must pass the --listen flag to the libvirtd process for this to
# have any effect.
#
# It is necessary to setup a CA and issue server certificates before
# using this capability.
#
# This is enabled by default, uncomment this to disable it
listen_tls = 0

# Listen for unencrypted TCP connections on the public TCP/IP port.
# NB, must pass the --listen flag to the libvirtd process for this to
# have any effect.
#
# Using the TCP socket requires SASL authentication by default. Only
# SASL mechanisms which support data encryption are allowed. This is
# DIGEST_MD5 and GSSAPI (Kerberos5)
#
# This is disabled by default, uncomment this to enable it.
listen_tcp = 1



# Override the port for accepting secure TLS connections
# This can be a port number, or service name
#
#tls_port = "16514"

# Override the port for accepting insecure TCP connections
# This can be a port number, or service name
#
tcp_port = "16509"

[링크 : https://libvirt.org/remote.html]

 

위에처럼 하면 접속은 되는데 인증이 안된다.

일단은 과감하게(?) 보안무시하고 실행을 위주로 ㄱㄱ!

$ sudo vim /etc/libvirt/libvirtd.conf

# Change the authentication scheme for TCP sockets.
#
# If you don't enable SASL, then all TCP traffic is cleartext.
# Don't do this outside of a dev/test scenario. For real world
# use, always enable SASL and use the GSSAPI or DIGEST-MD5
# mechanism in /etc/sasl2/libvirt.conf
#auth_tcp = "sasl"
auth_tcp = "none"

[링크 : https://libvirt.org/auth.html]

[링크 : https://computingforgeeks.com/use-virt-manager-as-non-root-user/]

 

일단은 이미지 업로드가 안되서(해당 UI가 깨진건지..) 일단은 사용은 실패

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

vmdk를 qcow2로 변경하기  (2) 2019.07.09
kvm virsh console 사용하기  (0) 2019.05.16
리눅스 콘솔창 해상도 변경하기  (0) 2019.04.26
VDI GPU passthrough  (0) 2019.04.24
kvm live add cpu  (0) 2019.04.16
Posted by 구차니

KVM을 통해서 하는데 노트북이 1280x1024 밖에 안되다 보니

SPICE를 통해 보면 잘려서 어떻게 해야 하려나?

 

[링크 : https://www.linux-kvm.org/page/SPICE]

 

[링크 : https://patchwork.ozlabs.org/patch/484821/]

 

[링크 : https://www.linux-kvm.org/images/b/b2/01x10b-QEMUGfraphics.pdf]

 

 

 

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

kvm virsh console 사용하기  (0) 2019.05.16
libvirtd와 webvirtmgr  (0) 2019.04.30
VDI GPU passthrough  (0) 2019.04.24
kvm live add cpu  (0) 2019.04.16
kvm과 HT 그리고 affinity  (0) 2019.04.16
Posted by 구차니

예전에 본.. VT-d 활성화 해주어야 하는건가..

대충 설정들을 보니.. 가상 머신에다가 물리 장치를 물리는걸 패스쓰루라고 하는데

guest가 Windows면은 그래픽 카드를 iommu를 통해 혹은 vt-d를 통해서

직접 가상 머신에 물려주는걸 의미하는 듯?

 

[링크 : https://heiko-sieger.info/running-windows-10-on-linux-using-kvm-with-vga-passthrough/]

[링크 : https://davidyat.es/2016/09/08/gpu-passthrough/]

[링크 : https://blog.zerosector.io/2018/07/28/kvm-qemu-windows-10-gpu-passthrough/]

 

vt-d는 인텔

iommu는 amd 계열 기술이름인듯

[링크 : http://jowon.blogspot.com/2010/01/linux-pci-passthrough.html]

 

+

vt-d/iommu는 카드를 공유하거나 일부만 잘라서 쓰지는 못하는 듯.

(즉, 하나의 게스트에 할당하면 다른 게스트는 해당 gpu를 쓰지 못한다거나?)

[링크 : https://www.whitehatvirtual.com/vgpu-101-passthrough-vs-vgpu-why-it-matters/]

 

Nvidia GRID 제품군으로는 위의 방법이 가능한것으로 보임

(위에 글들은 과거 내용이니 좀 달라진건가?)

[링크 : https://kr.nvidia.com/object/tesla-m60-kr.html]

[링크 : https://docs.nvidia.com/grid/latest/grid-vgpu-release-notes-generic-linux-kvm/index.html]

Posted by 구차니
프로그램 사용/docker2019. 4. 22. 11:04

docker 기반의 카산드라에 sql 클라이언트 실행하기

$ docker exec -it container_id cqlsh

[링크 : https://medium.com/@michaeljpr/five-minute-guide-getting-started-with-cassandra-on-docker]

 

키스페이스 = table? 이런 개념인진 모르겠지만

테이블에 앞서 키스페이스를 확인하라고 하는걸 보니.. 

Sinse v 6.0 Docs 
Get keyspaces info 
SELECT * FROM system_schema.keyspaces 

Get tables info 
SELECT * FROM system_schema.tables WHERE keyspace_name = 'keyspace name'; 

Get table info 
SELECT * FROM system_schema.columns  
WHERE keyspace_name = 'keyspace_name' AND table_name = 'table_name'; 

 

추천수가 낮은 답변인데 이걸로 하면 일반적인 db에서 말하는 database를 확인가능하고

. 누르고 탭을 누르면 자동완성되니 나름 편하게 확인가능 할 듯

desc keyspaces;

[링크 : https://stackoverflow.com/questions/38696316/how-to-list-all-cassandra-tables]


'프로그램 사용 > docker' 카테고리의 다른 글

docker offline image  (0) 2019.05.16
cassandra 메모리 관리  (0) 2019.05.15
docker-compose up/down 주의사항  (0) 2019.03.24
docker 컨테이너 자동시작  (0) 2019.03.21
docker cassandra selinux  (0) 2019.03.20
Posted by 구차니