'2019/05/15'에 해당되는 글 5건

  1. 2019.05.15 mosquitto - MQTT broker
  2. 2019.05.15 cassandra 메모리 관리
  3. 2019.05.15 node.js express 301 redirect
  4. 2019.05.15 python pdb를 이용한 디버깅
  5. 2019.05.15 anaconda(python)
회사일2019. 5. 15. 15:29

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

eclipse 재단에서 만든건가?

 

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

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

'회사일' 카테고리의 다른 글

OLTP  (0) 2019.08.19
bam sam  (0) 2019.07.26
openM2M  (0) 2019.05.14
비면허 대역(unlicensed)  (0) 2019.05.14
컵 사이즈  (2) 2019.01.14
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 구차니
Programming/node.js2019. 5. 15. 13:38

흐음.. 캐싱할때 이걸 어떻게 상태로 캐싱을 해놓으면 되려나..

 

app.use(function forceLiveDomain(req, res, next) {
  // Don't allow user to hit Heroku now that we have a domain
  var host = req.get('Host');
  if (host === 'serviceworker-cookbook.herokuapp.com') {
    return res.redirect(301, 'https://serviceworke.rs/' + req.originalUrl);
  }
  return next();
});

 

[링크 : https://davidwalsh.name/express-redirect-301]

[링크 : https://stackoverflow.com/questions/7450940/automatic-https-connection-redirect-with-node-js-express]

 

res.redirect([status,] path)
Redirects to the URL derived from the specified path, with specified status, a positive integer that corresponds to an HTTP status code . If not specified, status defaults to “302 “Found”.

[링크 : https://expressjs.com/ko/4x/api.html#res.redirect]

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

npm-run-all 병렬 빌드 (실패)  (0) 2019.05.29
pdf 내용 추출  (0) 2019.05.27
node.js 항목 확인  (0) 2019.04.23
proxy error: Error: write after end  (0) 2019.04.23
node.js 시그널 핸들링과 reload  (0) 2019.04.23
Posted by 구차니

함수 같은녀석들 어떻게 처리하나 궁금했는데

인터랙티브 하게 디버깅 간으한 자체 모듈이 있는 듯

 

2.x 대에도 있고 3.x대에도 있으니 걱정없고

아래처럼 인터프리터에서 pdb를 불러와 pdb.run()을 통해 해당 모듈을 테스트 할 수 있고

>>> import pdb
>>> import mymodule
>>> pdb.run('mymodule.test()')
> (0)?()
(Pdb) continue
> (1)?()
(Pdb) continue
NameError: 'spam'
> (1)?()
(Pdb)

 

아니면 -m pdb로 모듈을 불러 특정 스크립트를 실행하는 것도 방법인듯

python3 -m pdb myscript.py

[링크 : https://docs.python.org/3.7/library/pdb.html]

[링크 : https://www.digitalocean.com/community/tutorials/how-to-use-the-python-debugger]

'Programming > python(파이썬)' 카테고리의 다른 글

ubuntu에서 python으로 postgres 접속하기  (0) 2019.06.24
python pip 특정 버전 설치하기  (0) 2019.06.18
anaconda(python)  (0) 2019.05.15
파이썬 vscode 디버깅 하기  (0) 2019.05.14
python3 import cv2  (0) 2019.05.09
Posted by 구차니

 

[링크 : https://www.anaconda.com/distribution/]

 

[링크 : https://wikidocs.net/22896]

[링크 : https://snowdeer.github.io/python/2017/11/07/python-vs-anaconda/]

[링크 : https://dojang.io/mod/page/view.php?id=2456]

 

jupyter

[링크 : https://dojang.io/mod/page/view.php?id=2457]

'Programming > python(파이썬)' 카테고리의 다른 글

python pip 특정 버전 설치하기  (0) 2019.06.18
python pdb를 이용한 디버깅  (0) 2019.05.15
파이썬 vscode 디버깅 하기  (0) 2019.05.14
python3 import cv2  (0) 2019.05.09
python pylint @ vscode  (0) 2019.05.09
Posted by 구차니