본문 바로가기

전체 글115

What's new in Redis 4.0? Redis 4.0 Major features 정리 * Redis modules system.Redis 기능과 새로운 data type을 확장할 수있는 모듈을 작성할 수 있게되었다. 모듈 API는 Redis core와 모듈 구현을 분리하는 완벽한 추상화 레이어를 구현하여 Redis 수정없이 다른 버전의 Redis에서 동일한 모듈을 로드 할 수 있다. 자세한 모듈 문서는 아래 링크를 참고하라.https://github.com/antirez/redis/blob/unstable/src/modules/INTRO.md * Partial Replication (PSYNC) version 2. 과거에 master와 slave가 부분적으로 재동가화가 불가능 했었지만 replication protocol의 향상으로 부분적.. 2017. 2. 3.
docker 이미지 검색 sudo docker search ubuntuNAME DESCRIPTION STARS OFFICIAL AUTOMATED ubuntu Ubuntu is a Debian-based Linux operating s... 3254 [OK] ubuntu-upstart Upstart is an event-based replacement for ... 60 [OK] torusware/speedus-ubuntu Always updated official Ubuntu docker imag... 25 [OK] ubuntu-debootstrap debootstrap --variant=minbase --components... 24 [OK] 이미지 받기 sudo docker pull ubuntu:latest do.. 2016. 2. 24.
java rsa 기반의 암호화 @Test public void test() throws Exception { // 서버 RSA 생성 및 클라이언트에 공개키 전달 KeyPairGenerator generator = KeyPairGenerator.getInstance("RSA"); generator.initialize(KEY_SIZE); KeyPair keyPair = generator.genKeyPair(); KeyFactory keyFactory = KeyFactory.getInstance("RSA"); PublicKey publicKey = keyPair.getPublic(); PrivateKey privateKey = keyPair.getPrivate(); // 비밀키 // session.setAttribute(".. 2016. 1. 4.
elasticsearch 2.0 Getting Started elasticsearch 2.0으로 정식 릴리즈 되었고 필요에 의해서 2.0으로 설정해서 사용하기로... elasticsearchhttps://www.elastic.co/products/elasticsearch Download$ wget https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.0.0/elasticsearch-2.0.0.tar.gz$ tar zxvf elasticsearch-2.0.0.tar.gz Setup elastic search# ---------------------------------- Cluster ------------------------.. 2015. 11. 4.
Kafka cluster Getting Started kafka는 분산 메시징 시스템으로 높은 성능을 자랑한다.A high-throughput distributed messaging system. 분산 시스템을 구성 위해서 3개 노드에 zookeeper, kafka를 모두 설치한다. Downloadhttp://kafka.apache.org/downloads.html Setup ZooKeeper $ vi ${KAFKA_HOME}/config/zookeeper.propertieszookeeper.properties 파일에 아래 설정들을 추가해준다. # the directory where the snapshot is stored.dataDir=${data_dir} # The number of milliseconds of each tick tickTime=2000.. 2015. 11. 2.
elasticsearch Getting Started 서비스 로그를 모아서 실시간으로 검색하고 분석할 수 있는 시스템이 필요해서 검색중로그를 수집하고(fluentd), 검색(elasticsearch) 가능한 시스템이 있어서 우리 시스템이 도입하려고 한다. elasticsearchhttp://www.elasticsearch.org/ download$ wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.2.tar.gz$ tar zxvf elasticsearch-1.4.2.tar.gz start $ ./bin/elasticsearch -Xmx1g -Xms1g [2015-01-30 16:30:55,456][WARN ][common.jna ] Unable to lo.. 2015. 1. 30.
Mysql InnoDB 성능 개선(innodb_flush_log_at_trx_commit) 서비스 성능테스트를 진행하다보면 Mysql 성능이 전체 시스템 성능을 결정하는 경우가 있다.mysql 때문에 성능이 나오지 않는다면 성능을 위해 redis와 같은 다른 솔루션을 선택할 수 있지만 운영중인 서비스에서 쉽게 솔루션을 변경하기는 쉽지 않다. mysql 성능을 향상시키는 방법은 여러개가 있지만. 간단하게 설정을 변경하여 성능을 개선할 방법이 있다. innodb_flush_log_at_trx_commit 는 요약하자면 커밋 로그에 대하여 디스크 플러시가 언제 발생할지 설정할 수 있다.기본으로 1로 설정이 되어있고 1은 트랜젝션이 발생할 때마다 디스크에 플러시가 발생한다. 2로 설정하면 1초마다 디스크로 플러시가 발생하게되고, 그만큼 io가 줄어들기때문에 성능 향상을 기대할 수 있다.(단 장애시 1.. 2014. 6. 11.
Steps to install Distributed HBase HBaseDownload$ wget http://mirror.apache-kr.org/hbase/hbase-0.98.0/hbase-0.98.0-hadoop2-bin.tar.gz$ tar zxvf hbase-0.98.0-hadoop2-bin.tar.gz Configurationhbase-env.shexport JAVA_HOME=/usr/lib/jvm/java-7-oracle # Tell HBase whether it should manage it's own instance of Zookeeper or not.export HBASE_MANAGES_ZK=false hbase-site.xml hbase.rootdir hdfs://master:9000/hbase hbase.cluster.distributed tr.. 2014. 5. 9.
Steps to install Replicated ZooKeeper ZooKeeperdownload http://www.apache.org/dyn/closer.cgi/zookeeper/$ wget http://apache.mirror.cdnetworks.com/zookeeper/stable/zookeeper-3.4.6.tar.gz$ tar zxvf zookeeper-3.4.6.tar.gz Configurationzoo.cfg# the basic time unit in milliseconds used by ZooKeeper. It is used to do heartbeats and the minimum session timeout will be twice the tickTime.tickTime=2000#the location to store the in-memory dat.. 2014. 5. 9.
728x90