잠금 기반 데이터베이스 시스템의 교착상태 대응방법에 대한 연구
A study on the coping strategies of deadlock based on locking database system
- 발행기관 서강대학교 정보통신대학원
- 지도교수 구명완
- 발행년도 2016
- 학위수여년월 2016. 2
- 학위명 석사
- 학과 및 전공 정보통신대학원 정보처리
- 실제URI http://www.dcollection.net/handler/sogang/000000059095
- 본문언어 한국어
- 저작권 서강대학교 논문은 저작권보호를 받습니다.
초록/요약
웹 서비스 제공하는 대부분의 기업들은 비용절감을 위해 데이터베이스를 중심으로 다양한 서비스를 개발하고 사용자들에게 서비스를 제공하고 있다. 이러한 환경은 필연적으로 다수의 접속자가 중앙 집중화된 데이터베이스 자원을 사용하게 되어, 작업 프로세스와 리소스 사용권한이 순환점유 되는 교착상태를 만들기도 한다. 본 논문에서는 잠금 기반의 데이터베이스 시스템에서 교착상태가 발생하였을 때, “서비스 중개자, 시스템 큐, 이벤트 알람”을 통해 교착상태의 원인이 되는 서비스와 프로세스를 시스템이 스스로 인식하고, 저장형 프로시저를 통해 교착상태의 문제가 발생하는 즉시 자동으로 해결하여 교착상태와 관련 없는 프로세스들이 정상적 업무를 수행할 수 있는 방법을 제시하고자 한다. 국내 어학학원인 W사에서 2015년 8월 10일부터 10월 17일까지의 학원 시스템을 사용하는 도중에 발생한 시스템 로그 데이터를 대상으로 제안된 방법으로 실험하였으며, 교착상태 자동처리가 적용된 시스템과 잠금 시간 설정 (LOCK_TIMEOUT)을 다르게 적용한 일반 시스템을 대상으로 성능평가를 수행하였다. 실험 결과로 교착상태 자동처리 시스템 설정을 적용하였을 경우에, 기본 시스템 설정 적용 때보다 프로세스 잠금 시간을 1,298배 단축시키는 성능을 보여 주었으며, 잠금 시간설정 시스템 적용 때보다 프로세스 잠금 시간을 29배 단축시키는 성능을 보여 주었다.
more초록/요약
Most of the enterprises providing web services develop and provide services to the customers based on the databases in order to reduce the cost. In this environment, it is unavoidable that massive number of users try to access the centralized database and consume its resources. This results in the deadlock due to the circular share of the processes and access rights to the resources. This paper suggests a method that the processes irrelevant to the deadlock can perform their tasks in case of deadlock in the lock-based database system by the following means. First, automatic recognition of the services and processes causing the deadlock by service broker, system queue and event alarm. Second, immediately resolving the deadlock by stored procedure. The performance test with the suggested method is performed on the system log data from a language institute in Korea from Aug. 10 2015 to Oct. 17 2015. The performances of two different system are compared, one with the suggested method (auto-deadlock resolution) and the other with conventional system with different LOCK_TIMEOUTs applied. The result of the performance test demonstrates that the suggested method reduces the process locking time by 1,298 times compared to the conventional system with the default locking time applied and by 29 times compared to the conventional system with optimized locking time applied.
more

