mysql slave 서버의 포지션이 맞질 않네요.

prankenmk2의 이미지

안녕하세요.

현재 마스터 서버 1대에 슬레이브 서버 4대를 연결해 사용하고 있습니다.

오늘 갑자기 슬레이브 서버 1대의 리플리케이션 포지션이 어긋나 확인을 했지만 정확한 원인을 못찾아 글을 올립니다.

포지션이 맞지 않는 시점은 금일 운영 서비스의 이벤트로 접속량이 증가함과 동시에 포지션 넘버가 차이나기 시작했습니다.

다른 서비스 서버들은 문제없이 맞는데 해당 서버만 포지션 넘버가 맞지 않으며 문제 있는서버 와 다른 서버와 사양과 구조가 거의 동일합니다.

서버간의 다른 점은 아래와 같습니다.

문제 있는 서버
CentOS 6.3, ext4, 소프트웨어 raid0

문제 있는 서버
CentOS 5.8, ext3, 레이드X

sar로 cpu 사용률을 보면 IO쪽의 병목이 의심됩니다.

20:43:48 CPU %user %nice %system %iowait %steal %idle
20:43:49 all 9.05 0.00 2.76 12.81 0.00 75.38
20:43:50 all 5.57 0.00 2.53 16.20 0.00 75.70
20:43:51 all 7.29 0.00 2.51 14.82 0.00 75.38
20:43:52 all 10.30 0.00 3.52 10.80 0.25 75.13
20:43:53 all 11.00 0.00 3.75 10.25 0.00 75.00
20:43:54 all 8.31 0.00 3.27 13.10 0.00 75.31
20:43:55 all 7.56 0.00 2.52 14.61 0.00 75.31
20:43:56 all 11.81 0.00 4.02 8.79 0.00 75.38
20:43:57 all 15.25 0.00 5.25 4.75 0.00 74.75
20:43:58 all 14.32 0.00 5.03 5.53 0.00 75.13

신기한 점은 cpu사용률이 25%에서 유지가 되고 있습니다.

현재 서버는 아마존의 EC2를 쓰고 있으며 디스크 IO확보를 위해 소프트웨어 Raid를 구성하였습니다.

피곤한 상태에서 쓰느라 말이 두서가 없는점 양해 부탁드립니다.

위와 같은 증상에 대해서 조언 부탁드립니다.

감사합니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.