[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster

 

https://www.slideshare.net/ienvyou/day-2-mysql-tuning-replication-cluster

 

[오픈소스컨설팅]Day #2 MySQL Tuning, Replication, Cluster

MySQL 최적화 ㅇ 최적화 간략 소개 ㅇ 파티셔닝 ㅇ Thread pool ㅇ 테이블 유지보수 ㅇ 테이블 검사, 최적화, 복구 MySQL Replication ㅇ Replication 소개 ㅇ Replication 구성방법 ㅇ Replication tuning 방법 …

www.slideshare.net

 





'DBMS > DB 모델링' 카테고리의 다른 글

보이스코드 정규화  (0) 2018.08.13
3차 정규화 및 정규화 설명 잘된 곳  (0) 2018.08.13
2차 정규화  (0) 2018.08.13
1차 정규화  (0) 2018.08.13



( 1 -  현재가 / 전일종가   )   * -100  = 전일종가대비 변동율

'프로그래밍 > C&C++' 카테고리의 다른 글

switch 문을 대체하는 function pointer  (0) 2019.01.01

1. sample 코드


#include <stdio.h>

typedef void (*func) ();


void foo1()

{

        printf("foo1\n");

}

void foo2()

{

        printf("foo2\n");

}

void foo3()

{

        printf("foo3\n");

}



void switch_with_fpointer( void (*pt2func)() )

{

        pt2func();

}


int main()

{

        func fpointers[] = { foo1, foo2, foo3 };


        fpointers[1]();


        switch_with_fpointer( &foo3 );

}



2. 자료

http://oopweb.com/CPP/Documents/FunctionPointers/Volume/CCPP/FPT/em_fpt.html

'프로그래밍 > C&C++' 카테고리의 다른 글

전일종가대비 % (변동율) 구하는 수식  (0) 2019.03.04



Some of selected resources were not cleaned.

svn: E200030: There are unfinished transactions detected in 'C:\eclipse-workspace\CCEX'


해결방법


http://web-obj.tistory.com/186  참고..

Rabbitmq 공통모듈 작성을 위한 기본 소스 작성및  기능분석

1.  c library  api 문서

http://alanxz.github.io/rabbitmq-c/docs/0.8.0/amqp_8h.html

http://alanxz.github.io/rabbitmq-c/docs/0.2/amqp_8h.html

https://blog.naver.com/tireeo/220303953568

2. 큐 유형별 예제

2.1  fair dispatch 형 ( Work Queue 형 )

https://blog.naver.com/tireeo/220303948203

 * 큐에 있는 내용을 하나씩 교대로 꺼내감.  꺼내갈때는 한번에 하나씩 꺼내가는 것처럼 보이지만 실제로는 prefetch 해 간다. 따라서  consumer가 죽으면 큐대기열에서 안꺼내간 큐가 남을 수 있다.

*  이 문제를 해결하기 위해서는 channel.basicQos(1) 사용 필요 , 사용법 확인 필요함.

2.1.1  sample 소스 

mytest-dispatch\   에  위  유형 예제 있음.

 2.1.2 실행방법

  #터미널1   sh  recv.sh

  # 터미널2  sh recv.sh

  # 터미널3  sh send.sh


2.2 Publish / subcribe ( fanout )

* 큐대기열에 같은 내용을 복제한다.  consumer1 과 consumer2 가 같은 내용의 큐를 가져간다.

2.2.1 sample 소스

mytest-prosub-fanout\ 에   예제 소스 


2.2.1 실행방법

  #터미널1   sh  recv.sh

  # 터미널2  sh recv.sh

  # 터미널3  sh send.sh

2.3 Routing

   

* routing key 값에 따라서  exchange가 분배해주는 큐의 위치가 달라진다.   같은 routing key 값을 사용하면  같은 내용이 복제되는 fanout과 같은 방식이 된다.

2.3.1   sample 소스

mytest-routing\

2.3.2 실행방법

#터미널1    sh send.sh

# 터미널2   sh send2.sh

# 터미널3   sh  recv.sh

# 터미널4   sh  recv2.sh

2.4 Topic 방식 ( 사용 안할 예정)

* routing key 값의 패턴에 따라서  exchange --> queue  방향이 정해진다. 예들 들어서   routing key가  *.black.* 로  exchange 에 바인딩 큐대기열은  routing key 가  abc.black.twotwo 인 메시지가 저장되는 큐가 된다.

2.4.1  sample 소스

mytest-topic\

2.4.2 실행방법

#터미널1    sh  send.sh

#터미널2    sh  recv.sh

#터미널3    sh  send2.sh

#터미널4    sh  recv2.sh

'시스템 > RabbitMQ' 카테고리의 다른 글

rabbitMQ 종류  (0) 2018.09.09


설명 잘되어 있는 곳 : http://blog.naver.com/tireeo/220303953568



sample 소스 :  https://github.com/hoxnox/examples.amqp-cpp


sample 소스 2: https://www.rabbitmq.com/devtools.html


위소스에 대한 설명있는 URL : http://alanxz.github.io/rabbitmq-c/docs/0.8.0/

'시스템 > RabbitMQ' 카테고리의 다른 글

rabbitMQ sample 소스  (0) 2018.09.30



동시성 제어하는 방법에 관한 자료


http://www.oracle.com/technetwork/articles/javase/index-140767.html






java.util.concurrent.locks 를 이용하는 방법?

https://vnthf.github.io/blog/Java-java.util.concurrent.locks/

'프로그래밍 > java' 카테고리의 다른 글

java 관련 사이트  (0) 2018.04.08


보이스-코드 정규화 

데이블에 존재하는 식별자가 여러 개 존재할 경우 식별자가 중복되어 나타나는 현상을 제거 


정규화5.png


주식별자 후보 : 납품업체코드 + 제품코드

                       납품회사명 + 제품코드 

이 중 하나를 선택하면 3차 정규화까지 만족하게 된다. 


정규화6.png

'DBMS > DB 모델링' 카테고리의 다른 글

데이터모델링 과정  (0) 2019.03.14
3차 정규화 및 정규화 설명 잘된 곳  (0) 2018.08.13
2차 정규화  (0) 2018.08.13
1차 정규화  (0) 2018.08.13

+ Recent posts