Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- drools
- JPA
- jstl
- querydsl
- SVN
- jquery
- guvnor
- maven
- spring transaction
- MySQL
- Drools Fusion
- Spring
- custom filter
- gwt
- Hudson
- rember me
- CEP
- ibatis
- gwt-ext
- bootstrap jquery datepicker
- COC
- spring security
- java tip
- JBoss Seam
- @SqlResultSetMapping
- jenkins
- spring jpa
- jquery serialize
- GEventEvaluator
- zabbix
Archives
- Today
- Total
목록mybatis mysql replication (1)
봉 블로그
Spring read-only transaction & MySQL Replication
Spring MVC + MyBatis + MySQL Replication 환경에서 Spring transaction설정이 read-only=true & propagation="SUPPORTS"인 서비스 메소드 실행시 query 수행이 MySQL Replica 서버로 가지않고 master 서버로 가게된다. 반대로 propagation="SUPPORTS"설정을 제거한 read-only=true 서비스는 replica 서버로 수행되어 부하분산된다. 테스트결과 성능차이도 매우 심하게 차이가 났다. propagation="SUPPORTS" 가 설정되어 있는경우가 훨신좋다. 먼저 read-only=true & propagation="SUPPORTS" 설정이 mysql master 서버로 질의되는 현상은(read-o..
개발환경/Spring
2014. 2. 21. 15:17