Skip to content

Instantly share code, notes, and snippets.

@oeegee
oeegee / Apache-2.4.4, SSL인증서 설치
Last active December 17, 2015 00:28
[AA+ Reference Document] for Apache-2.4.4 installation
#### Apache-2.4.4 installation ####
[컴파일 및 설치 대상]
apache-apr.1.4.6
apache-apr-util.1.5.1
apache-httpd-2.4.4
[APR 이란?]
APR - 여러 플랫폼에 적용가능하도록 하나의 api를 사용해서 compile 하도록 구성함.
APR-UTIL - 여러 편리한 API를 제공
@oeegee
oeegee / git-README
Last active December 17, 2015 00:59
AA+스터디그룹 표준 구성 패키지 git commit script : Apache - Httpd 2.4.4
저희 AA+스터디그룹 github 주소입니다.
https://github.com/organizations/AAPlus
# Github 가입하세요.
www.github.com
# Git 사용법 참고
http://mobicon.tistory.com/258
http://jonas.nitro.dk/git/quick-reference.html
@oeegee
oeegee / JBossAS-7.1.1 구성가이드
Last active December 17, 2015 01:39
AA+ 표준패키지 : JBossAS-7.1.1 구성
[설치 준비]
$ cd /project/AA+/servers
$ wget http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.tar.gz
$ tar xvfz jboss-as-7.1.1.Final.tar.gz
[management user생성]
$ cd /project/AA+/servers/jboss-as-7.1.1.Final/bin
$ ./add-user.sh
@oeegee
oeegee / mod_cluster구성
Last active December 17, 2015 06:59
Apache mod_cluster - JBossAS7.1.1연동
[mod_cluster setup]
참조 (httpd-2.4.x 위주, JBoss AS7 domain mode)
http://www.openlogic.com/blog/bid/247607/JBoss-AS7-Clustering-Using-mod_cluster-and-http-2-4-Part-1
http://www.openlogic.com/blog/bid/256141/JBoss-AS7-Clustering-Using-mod_cluster-and-http-2-4-Part-2
http://www.openlogic.com/blog/bid/270433/JBoss-AS7-Clustering-Using-mod_cluster-and-http-2-4-Part-3
http://tech-sketch.jp/2012/04/jbossas.html
참조 (JBoss AS7 standalone mode 위주)
http://middlewaremagic.com/jboss/?tag=mod_cluster-apache
@oeegee
oeegee / JBoss AS7 - mod_cluster 연동 참고중인 자료
Last active December 17, 2015 15:29
JBoss AS7 - mod_cluster 연동 참고중인 자료
[설정성공]
# JBoss AS 7.1 Clustering behind Amazon ELB
https://community.jboss.org/thread/195729\
[참고자료]
# ModCluster Design
https://community.jboss.org/wiki/ModClusterDesign
# Chapter 7. List of Protocols
@oeegee
oeegee / JBoss_AS7_클러스터_기동_로그.txt
Last active August 1, 2022 07:56
JBoss AS7 클러스터 기동 로그 - Apache mod_cluster 와는 연동 오류.
[JBoss AS7 클러스터 기동 로그]
root@ip-10-161-5-236:/project/AA+/servers/jboss-as-7.1.1.Final/standalone-node1# ./startNode.sh
================================================
JBOSS_HOME=/project/AA+/servers/jboss-as-7.1.1.Final
SERVER_HOME=/project/AA+/servers/jboss-as-7.1.1.Final/standalone-node1
NODE_NAME=standalone-node1
JAVA_OPTS=-server -noverify -Xms256m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m -Xss160k -verbose:gc -Xloggc:/project/AA+/servers/jboss-as-7.1.1.Final/standalone-node1/gclog/gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/project/AA+/servers/jboss-as-7.1.1.Final/standalone-node1/gclog/java_pid.hprof -Djava.net.preferIPv4Stack=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dsun.lang.ClassLoader.allowArraySyntax=true -Djboss.socket.binding.port-offset=100 -Djboss.bind.address=127.0.0.1 -Djboss.bind.address.management=127.0.0.1 -Djboss.bind.address.unsecure=127.0.0.1 -DDOMAIN_IP=12
@oeegee
oeegee / openshift-testmongo.txt
Last active December 20, 2015 19:29
OpenShift/testmongo 생성 JBoss User Group - WildFly 스터디 (최성훈님 강의 참조)
[rhc client tool 설치]
https://www.openshift.com/developers/rhc-client-tools-install
[ssh public key 생성]
http://git-scm.com/book/ko/Git-%EC%84%9C%EB%B2%84-SSH-%EA%B3%B5%EA%B0%9C%ED%82%A4-%EB%A7%8C%EB%93%A4%EA%B8%B0
https://www.openshift.com/developers/remote-access#keys
[Application 생성/설치]
https://github.com/openshift/jbossas-mongoDB-quickstart
#!/bin/sh
BOOT2DOCKER_CERTS_DIR=/var/lib/boot2docker/certs
CERTS_DIR=/etc/ssl/certs
CAFILE=${CERTS_DIR}/ca-certificates.crt
for cert in $(/bin/ls -1 ${BOOT2DOCKER_CERTS_DIR}); do
SRC_CERT_FILE=${BOOT2DOCKER_CERTS_DIR}/${cert}
CERT_FILE=${CERTS_DIR}/${cert}
HASH_FILE=${CERTS_DIR}/$(/usr/local/bin/openssl x509 -noout -hash -in ${SRC_CERT_FILE} 2>/dev/null)
#!/bin/bash
# Minimum TODOs on a per job basis:
# 1. define name, application jar path, main class, queue and log4j-yarn.properties path
# 2. remove properties not applicable to your Spark version (Spark 1.x vs. Spark 2.x)
# 3. tweak num_executors, executor_memory (+ overhead), and backpressure settings
# the two most important settings:
num_executors=6
executor_memory=3g
@oeegee
oeegee / install-docker-postgres-xl.md
Last active November 6, 2017 14:29
윈도우즈기반 도커에 postgres-xl 설치하기

윈도우즈기반 도커에 postgres-xl 설치하기

* 빅데이터용 RDBMS가 필요해!

추천시스템을 제공하기위해서 대규모 데이터를 핸들링하기 위한 RDBMS가 필요했습니다. (이 글을 보시는 분들께,,, 가급적 Parquet 또는 다른 하둡 에코를 이용하시는게 정신건강에 이롭습니다.)

찾아본 솔루션은 다음과 같습니다.

  • Cockroach DB : Raft 합의알고리즘채택으로 가장 많이 기대하고 사용해 봤으나, 1천만 건 테이블 Join 시 killed. 적은 건수는 잘 됨. (go로 개발되었는데, 메모리 할당할 때 문제가 생기는 듯...)
  • Pivotal Greenplum : Postgres 버전이 낮음. v8.3 (버전관리 안하고있는듯...)
  • Citusdata : 꼭 상용 솔루션을 써야만 될것 같은 느낌적인 느낌! Postgresql V10 지원. (개인적으로는 가장 나이스해 보입니다.)