KR20120075622A - Method, system and compueter readable medium to store log data effective in the game service - Google Patents

Method, system and compueter readable medium to store log data effective in the game service Download PDF

Info

Publication number
KR20120075622A
KR20120075622A KR1020100130587A KR20100130587A KR20120075622A KR 20120075622 A KR20120075622 A KR 20120075622A KR 1020100130587 A KR1020100130587 A KR 1020100130587A KR 20100130587 A KR20100130587 A KR 20100130587A KR 20120075622 A KR20120075622 A KR 20120075622A
Authority
KR
South Korea
Prior art keywords
log data
queue
server
api
game
Prior art date
Application number
KR1020100130587A
Other languages
Korean (ko)
Other versions
KR101539072B1 (en
Inventor
김민석
Original Assignee
엔에이치엔비즈니스플랫폼 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엔에이치엔비즈니스플랫폼 주식회사 filed Critical 엔에이치엔비즈니스플랫폼 주식회사
Priority to KR1020100130587A priority Critical patent/KR101539072B1/en
Publication of KR20120075622A publication Critical patent/KR20120075622A/en
Application granted granted Critical
Publication of KR101539072B1 publication Critical patent/KR101539072B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE: A log data storage method, system, and computer readable recording medium are provided to maintain game log storage functions and a game processing of a user regardless of errors of a log database server. CONSTITUTION: A log data storage unit(130) executes log data storage commands by using an SQL(Structured Query Language) sentence. An API(Application Programming Interface) receive log data corresponding to a log data storage command. A communication unit of a queue server unit receives the log data from the API. The communication unit temporary stores the received log data as specific queue.

Description

게임 서비스를 위한 로그 데이터를 효율적으로 저장할 수 있는 로그 데이터 저장 방법, 시스템 및 컴퓨터 판독 가능한 기록 매체{METHOD, SYSTEM AND COMPUETER READABLE MEDIUM TO STORE LOG DATA EFFECTIVE IN THE GAME SERVICE} Log data storage method, system and computer readable recording medium that can efficiently store log data for game service {METHOD, SYSTEM AND COMPUETER READABLE MEDIUM TO STORE LOG DATA EFFECTIVE IN THE GAME SERVICE}

본 발명은 게임 서비스를 위해 효율적으로 로그 데이터를 저장할 수 있는 로그 데이터 저장 방법 및, 시스템 및 컴퓨터 판독 가능한 기록 매체에 관한 것으로, 더욱 상세하게는 게임 서버로부터의 로그 입력 명령을 처리하는 API(Application Programming Interface) 어플리케이션 및 복수의 큐(Queue) 서버를 데이터베이스 서버에 추가적으로 제공하여 보다 효율적이고 안정적으로 게임 서비스를 위한 로그 데이터를 저장할 수 있는 로그 데이터 저장 방법, 시스템 및 컴퓨터 판독 가능한 기록 매체에 관한 것이다. The present invention relates to a log data storage method and a system and a computer-readable recording medium capable of efficiently storing log data for a game service, and more particularly, to an API (Application Programming) for processing a log input command from a game server. Interface) The present invention relates to a log data storage method, a system, and a computer-readable recording medium that can additionally provide a plurality of queue servers to a database server to more efficiently and stably store log data for a game service.

인터넷의 사용이 보편화되고 그 기술이 발달함에 따라 인터넷을 통해서 게임을 즐길 수 있는 온라인 게임도 기하급수적으로 발전해 왔다. 사용자들이 인터넷을 통해 온라인 게임에 접속하여 플레이하는 경우, 소위 게임 로그(log)라고 불리우는 특정 기록이 로그 데이터베이스라고 불리우는 장소에 쌓이게 된다. 게임 로그는 게임을 플레이하는 사용자가 접속한 접속 기록 등을 통칭하는 용어로서, 게임의 진행에 절대적으로 필요한 기록은 아니나 게임의 운영, 관리 및 부정 접속 판단 등에 사용될 수 있는 기록이므로 모든 게임 로그가 문제 없이 로그 데이터베이스에 저장되는 것이 바람직하다. As the use of the Internet has become more common and the technology has developed, online games that can be played through the Internet have also been developed exponentially. When users access and play online games over the Internet, certain records, called game logs, are accumulated in places called log databases. The game log is a term used to refer to the access log connected by the user who plays the game. The game log is not absolutely necessary for the progress of the game, but it can be used for game operation, management, and judgment of illegal access. It is desirable to be stored in the log database without.

도 1은 종래 기술에 따른 로그 데이터베이스의 구성 및 게임 서버와의 관계에 대해 간략히 도시한 도면이다. 도 1에 의하면, 일반적으로 로그 데이터베이스는 다수의 게임 서버로부터 전송 받는 다양한 게임 로그를 저장하기 위해 복수의 데이터베이스 서버를 하나로 묶은 클러스터 (Cluster) 방식을 사용하고 있다. 클러스터 방식에 의할 경우, 클러스터로 묶여 있는 복수의 데이터베이스 서버 중 새로 데이터베이스 연결(connection)을 요청하는 게임 서버의 요청에 대해 부하가 가장 낮은 데이터베이스 서버가 응답을 하는 형식으로 부하(load)를 서로 배분하여 많은 게임 서버들의 요청을 동시에 처리할 수 있게 되었다. 1 is a diagram briefly illustrating a configuration of a log database and a relationship with a game server according to the related art. Referring to FIG. 1, in general, a log database uses a cluster method in which a plurality of database servers are combined to store various game logs transmitted from a plurality of game servers. In the cluster method, loads are distributed to each other in a form in which the database server with the lowest load responds to a game server requesting a new database connection among multiple database servers in a cluster. Thus, many game servers can handle requests simultaneously.

이에 반해, 클러스터 방식은 상대적으로 고가의 장비를 이용하여 구현해야 하면서도 실제적으로 게임 로그를 저장하는데 사용되는 CPU(Central Processing Unit)의 비율은 높지 않으므로 비용 및 비효율성의 문제가 존재한다. 또한, 게임 서버의 데이터베이스 연결 요청에 대해 클러스터 내부의 어느 하나의 데이터베이스 서버가 응답을 하여 둘 사이의 연결이 확립되는 경우, 게임 서버는 연결이 확립된 특정 데이터베이스 서버로만 게임 로그를 전송하므로 만일 그 특정 데이터베이스 서버에 장애가 발생하여 응답하지 않는 경우 해당 데이터베이스 서버와 연결된 게임 서버 또한 게임 로그 전송에 문제가 발생하여 게임 로그 기능은 물론 게임의 전체적인 기능까지 동작하지 않고, 따라서 게임 서버를 재실행해야 하는 문제점이 발생한다. On the other hand, the cluster method has to be implemented using relatively expensive equipment, but there is a problem of cost and inefficiency since the ratio of the CPU (Central Processing Unit) used to actually store the game log is not high. In addition, when any one of the database servers in the cluster responds to a database connection request from the game server and the connection is established between them, the game server sends the game log only to the specific database server to which the connection is established. If the database server fails and stops responding, the game server connected to the database server also has problems with game log transfer, and the game log function and the overall functions of the game do not work. Therefore, the game server needs to be restarted. do.

따라서, 게임 서버의 문제가 아닌 데이터베이스 서버 중 일부에만 장애가 발생하더라도 클러스터 방식의 효과를 보지 못하고 게임 서버를 재부팅해야 하는 문제가 발생하며, 이 경우 해당 게임 서버에 접속되어 있는 게임 사용자들은 모두 접속 종료되므로 사용자의 불편 또한 가중된다.Therefore, even if a part of the database server that is not a problem of the game server fails, the problem occurs that the game server must be rebooted without seeing the cluster effect. In this case, all game users connected to the game server are disconnected. User inconvenience is also aggravated.

그러므로, 적은 비용으로도 효율적인 게임 로그 저장 기능을 지원하며, 로그 데이터베이스 서버의 장애 발생 여부에 관계없이 게임 로그의 저장 기능을 유지하면서도 및 게임 서버의 재부팅이 필요하지 않은 로그 데이터베이스의 구성이 필요로 된다.Therefore, it is necessary to configure a log database that supports efficient game log storage at a low cost and maintains the game log storage function regardless of the failure of the log database server and does not require a reboot of the game server. .

본 발명의 목적은 위에서 언급한 종래 기술의 문제점을 해결하는 것이다. An object of the present invention is to solve the above-mentioned problems of the prior art.

본 발명의 일 목적은 로그 데이터베이스 서버의 장애 여부에 관계 없이 사용자의 게임 진행 및 게임 로그 저장 기능이 유지될 수 있도록 하는 것이다. One object of the present invention is to maintain the game progress and game log storage function of the user regardless of whether the log database server failure.

또한, 본 발명의 다른 목적은 적은 비용으로도 다수의 게임 서버와 연결하여 최대한의 용량으로 로그 저장 기능을 수행할 수 있도록 하는 것이다.In addition, another object of the present invention is to connect to a plurality of game servers at a low cost to perform a log storage function with the maximum capacity.

상기한 바와 같은 본 발명의 목적을 달성하고, 후술하는 본 발명의 특유의 효과를 달성하기 위한, 본 발명의 특징적인 구성은 하기와 같다. In order to achieve the above-described object of the present invention and to achieve the specific effects of the present invention described below, the characteristic structure of the present invention is as follows.

본 발명의 일 태양에 따르면, 로그 데이터 저장부 및 API를 포함하고 로그 데이터를 생성하는 게임 서버, 로그 데이터를 임시 저장하는 복수의 큐 서버를 포함하는 큐 서버부 및 로그 데이터를 최종 저장하는 데이터베이스 서버를 포함하는 시스템을 이용하여, 게임 서비스를 위한 로그 데이터를 효율적으로 저장할 수 있는 로그 데이터 저장 방법은 상기 큐 서버부에 의해, 상기 게임 서버 내의 API로부터 로그 데이터를 수신받아 큐에 임시 저장하는 큐 저장 단계와, 상기 큐 서버부에 의해, 상기 데이터베이스 서버에 장애가 발생하였는지 여부를 확인하는 장애 판단 단계와, 장애가 발생하지 않은 경우 상기 큐 서버부에 의해, 큐에 임시 저장된 상기 로그 데이터를 저장을 위해 상기 데이터베이스 서버로 전송하는 로그 데이터 전송 단계의 수행을 통해 얻어지며, 여기서 상기 API는 상기 로그 데이터 저장부에 의한, SQL문을 이용한 게임 서버의 상기 로그 데이터 저장 명령에 대응하여 상기 로그 데이터를 수신한다.According to an aspect of the present invention, a game server including a log data storage unit and an API and generating log data, a queue server unit including a plurality of queue servers temporarily storing log data, and a database server which finally stores log data. A log data storage method capable of efficiently storing log data for a game service using a system including a queue storage unit may receive log data from an API in the game server and temporarily store the log data in a queue by the queue server unit. And a failure determining step of checking whether a failure has occurred in the database server by the queue server unit, and storing the log data temporarily stored in a queue by the queue server unit if a failure has not occurred. Obtained by performing a log data transfer step that sends to the database server Here, the API receives the log data in response to the log data storage command of the game server using an SQL statement by the log data storage.

본 발명의 다른 태양에 따르면, 로그 데이터를 생성하는 게임 서버, 로그 데이터를 임시 저장하는 복수의 큐 서버를 포함하는 큐 서버부 및 로그 데이터를 최종 저장하는 데이터베이스 서버를 포함하는, 게임 서비스를 위한 로그 데이터를 효율적으로 저장할 수 있는 로그 데이터 저장 시스템에서 상기 게임 서버는 SQL문을 이용한 로그 데이터 저장 명령을 수행하는 로그 데이터 저장부, 및 상기 로그 데이터 저장 명령에 대응하여 상기 로그 데이터를 수신하는 API를 구비하고, 상기 큐 서버부는 상기 게임 서버 내의 API로부터 로그 데이터를 수신받아 상기 복수의 큐 서버 중 특정 큐에 임시 저장하는 통신부, 및 상기 데이터베이스 서버에 장애가 발생하였는지 여부를 확인하고, 장애가 발생하지 않은 경우 상기 특정 큐에 임시 저장된 상기 로그 데이터를 저장을 위해 상기 데이터베이스 서버로 전송하는 복수의 큐 서버를 구비하며, 여기서 상기 API는 상기 로그 데이터 저장부에 의한, SQL문을 이용한 로그 데이터 저장 명령에 대응하여 상기 로그 데이터를 수신한다.According to another aspect of the present invention, a log for a game service, comprising a game server for generating log data, a queue server unit including a plurality of queue servers for temporarily storing log data, and a database server for finally storing log data In the log data storage system capable of storing data efficiently, the game server includes a log data storage unit for performing a log data storage command using an SQL statement, and an API for receiving the log data in response to the log data storage command. The queue server unit receives log data from an API in the game server and checks whether a communication unit for temporarily storing a specific queue among the plurality of queue servers and a failure occurs in the database server. The log data temporarily stored in a specific queue And a plurality of queue servers for transmitting to the database server for storage, wherein the API receives the log data in response to a log data storage command using an SQL statement by the log data storage unit.

상술한 바와 같이 본 발명에 따르면, 로그 데이터베이스 서버의 장애 여부에 관계 없이 사용자의 게임 진행 및 게임 로그 저장 기능이 유지될 수 있도록 할 수 있다. As described above, according to the present invention, the game progress and game log storage functions of the user can be maintained regardless of whether or not the log database server fails.

또한, 본 발명에 따르면, 적은 비용으로도 다수의 게임 서버와 연결하여 최대한의 용량으로 로그 저장 기능을 수행할 수 있도록 할 수 있다.In addition, according to the present invention, it is possible to connect to a plurality of game servers at a low cost to perform a log storage function with the maximum capacity.

도 1은 종래 기술에 따른 로그 데이터베이스의 구성 및 게임 서버와의 관계에 대해 간략히 도시한 도면이다.
도 2는 본 발명의 일 실시예에 따라, 게임 서버 및 데이터베이스 서버를 포함하는 전체 시스템의 전체적인 구성을 개략적으로 나타내는 도면이다.
도 3은 본 발명의 일 실시예에 따른 게임 서버(100)의 세부 구성도이다.
도 4는 본 발명의 일 실시예에 따른 큐 서버부의 세부 구성도이다.
도 5는 본 발명의 다른 실시예에 따른 전체 시스템 구성을 나타낸 도면이다.
1 is a diagram briefly illustrating a configuration of a log database and a relationship with a game server according to the related art.
2 is a diagram schematically showing the overall configuration of an entire system including a game server and a database server according to an embodiment of the present invention.
3 is a detailed configuration diagram of the game server 100 according to an embodiment of the present invention.
4 is a detailed configuration diagram of a queue server unit according to an embodiment of the present invention.
5 is a diagram showing the overall system configuration according to another embodiment of the present invention.

후술하는 본 발명에 대한 상세한 설명은, 본 발명이 실시될 수 있는 특정 실시예를 예시로서 도시하는 첨부 도면을 참조한다. 이들 실시예는 당업자가 본 발명을 실시할 수 있기에 충분하도록 상세히 설명된다. 본 발명의 다양한 실시예는 서로 다르지만 상호 배타적일 필요는 없음이 이해되어야 한다. 예를 들어, 여기에 기재되어 있는 특정 형상, 구조 및 특성은 일 실시예에 관련하여 본 발명의 정신 및 범위를 벗어나지 않으면서 다른 실시예로 구현될 수 있다. 또한, 각각의 개시된 실시예 내의 개별 구성요소의 위치 또는 배치는 본 발명의 정신 및 범위를 벗어나지 않으면서 변경될 수 있음이 이해되어야 한다. 따라서, 후술하는 상세한 설명은 한정적인 의미로서 취하려는 것이 아니며, 본 발명의 범위는 적절하게 설명된다면 그 청구항들이 주장하는 것과 균등한 모든 범위와 더불어 첨부된 청구항에 의해서만 한정된다. 도면에서 유사한 참조부호는 여러 측면에 걸쳐서 동일하거나 유사한 기능을 지칭한다. DETAILED DESCRIPTION The following detailed description of the invention refers to the accompanying drawings that show, by way of illustration, specific embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. It should be understood that the various embodiments of the present invention are different but need not be mutually exclusive. For example, certain features, structures, and characteristics described herein may be implemented in other embodiments without departing from the spirit and scope of the invention in connection with an embodiment. It is also to be understood that the position or arrangement of the individual components within each disclosed embodiment may be varied without departing from the spirit and scope of the invention. Accordingly, the following detailed description is not to be taken in a limiting sense, and the scope of the present invention is defined only by the appended claims, along with the full range of equivalents to which such claims are entitled. Like reference numerals in the drawings refer to the same or similar functions throughout the several aspects.

이하, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명을 용이하게 실시할 수 있도록 하기 위하여, 본 발명의 바람직한 실시예들에 관하여 첨부된 도면을 참조하여 상세히 설명하기로 한다. Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement the present invention.

[본 발명의 바람직한 실시예] [Preferred Embodiments of the Invention]

본 발명의 실시예에서, 용어 "컴퓨터"는 통신망(200)을 통하여 통신 또는 특정 데이터를 송수신 하기 위한 기능을 포함하는 입출력 장치, 메모리 수단 및 마이크로 프로세서를 탑재하여 연산 능력을 갖춘 디지털 기기를 포함하는 광의의 개념이다. 일반적인 데스크톱 컴퓨터를 포함하여 노트북 컴퓨터, 워크스테이션, 팜톱(palmtop) 컴퓨터, 개인 휴대 정보 단말기(personal digital assistant: PDA), 웹 패드, 스마트 폰을 포함하는 이동 통신 단말기 등이 본 발명에서의 "컴퓨터"로 사용될 수 있다. In an embodiment of the present invention, the term “computer” includes an input / output device, a memory means, and a digital device equipped with arithmetic capability, including a microprocessor, including a function for communicating or transmitting and receiving specific data through the communication network 200. It's a broad concept. Notebook computers, workstations, palmtop computers, personal digital assistants (PDAs), web pads, and mobile communication terminals including smart phones, including general desktop computers, are referred to herein as "computers". Can be used as

본 발명의 실시예에서, 용어 "API(Application Programming Interface)"는 응용 프로그램에서 사용할 수 있도록 운영 체제나 프로그래밍 언어가 제공하는 기능을 제어할 수 있도록 만든 인터페이스만을 의미하는 것이 아닌, 이러한 인터페이스를 이용하여 만들어진 응용 프로그램까지를 포함하는 광의의 의미로 해석되어야 한다. 따라서, 본 발명에서 API는 컴퓨터 내에서 소정 기능을 하면서 동작할 수 있는 응용 프로그램일 수 있다. In an embodiment of the present invention, the term "API (Application Programming Interface)" does not mean only an interface made to control a function provided by an operating system or a programming language for use in an application program, but by using such an interface. It should be interpreted in a broad sense, including up to the created application. Therefore, in the present invention, the API may be an application program that can operate while performing a predetermined function in a computer.

본 발명의 실시예에서, 용어 "큐 서버(Queue Server)"는 자료 구조의 일종인, 여러 개의 데이터 항목이 일정한 순서로 나열되며 먼저 넣은 데이터 항목이 먼저 나오는 FIFO(First Input First Out;선입선출) 기능을 갖도록 하는 저장 공간을 갖는 서버를 의미한다. 큐 서버의 큐는 물리적인 저장공간을 활용하도록 프로그래밍으로 구현되며 그 방식은 선형 큐 또는 환형 큐 등 특정 방식에 한정되는 것은 아니다. In an embodiment of the present invention, the term "Queue Server" is a FIFO (First Input First Out), which is a kind of data structure, in which several data items are listed in a certain order and the first data item is put first. It means a server with a storage space to have a function. Queues in a queue server are implemented programmatically to take advantage of physical storage, and the method is not limited to a specific method such as linear queues or annular queues.

전체 시스템 구성Complete system configuration

도 2는 본 발명의 일 실시예에 따라, 게임 서버 및 데이터베이스 서버를 포함하는 전체 시스템의 전체적인 구성을 개략적으로 나타내는 도면이다. 2 is a diagram schematically showing the overall configuration of an entire system including a game server and a database server according to an embodiment of the present invention.

도 2에 도시되어 있는 바와 같이 본 발명의 일 실시예에 따른 전체 시스템은, 로그 데이터를 생성하는 게임 서버(100), 로그 데이터를 전송받아 큐(Queue)에 임시적으로 저장하는 큐 서버부(300), 로그 데이터를 저장하는 데이터베이스를 포함하고 있는 데이터베이스 서버(400)가 통신망(200)을 통하여 서로 연결되어 있다. As shown in FIG. 2, the entire system according to an embodiment of the present invention includes a game server 100 generating log data, and a queue server unit 300 receiving log data and temporarily storing the log data in a queue. ), The database server 400 including a database for storing log data is connected to each other through the communication network 200.

먼저, 본 발명의 일 실시예에 따르면, 게임 서버(100)는 게임 이용자들이 게임을 플레이할 수 있도록 서버 기능을 수행하는 프로그램을 설치한 컴퓨터를 나타내는 광의의 개념이다. 서버 기능을 수행하는 프로그램의 일 부분으로, 게임 이용자들의 로그인을 비롯한 다양한 이벤트에 따른 로그 데이터를 생성하는 기능도 수행하며, 생성된 로그 데이터를 게임 서버(100)에서 동작하고 있는 API(Application Programming Interface)로 전송하는 기능도 수행한다. 또는 본 발명의 다른 실시예에 따라 로그 데이터 생성 및 API 전송 기능만을 수행하도록 별도의 독립적인 컴퓨터에 설치할 수도 있으며 이 경우 게임 서버(100)는 이러한 기능을 갖는 컴퓨터를 의미할 수 있음은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 있어 자명하다. 게임 서버(100)의 상세한 구성요소 및 동작 방식에 대해서는 후술하도록 한다. First, according to an embodiment of the present invention, the game server 100 is a broad concept of a computer that installs a program that performs a server function so that game users can play a game. As part of a program that performs a server function, it also performs a function of generating log data according to various events including log-in of game users, and the API (Application Programming Interface) operating the generated log data in the game server 100. It also performs the function of sending to). Alternatively, according to another embodiment of the present invention, it may be installed on a separate independent computer to perform only log data generation and API transmission functions. In this case, the game server 100 may refer to a computer having such a function. It is obvious to those skilled in the art. Detailed components and operation methods of the game server 100 will be described later.

또한, 본 발명의 일 실시예에 따르면, 통신망(200)은 유선 및 무선 등과 같은 그 통신 양태를 가리지 않고 구성될 수 있으며, 단거리 통신망(PAN; Personal Area Network), 근거리 통신망(LAN; Local Area Network), 도시권 통신망(MAN; Metropolitan Area Network), 광역 통신망(WAN; Wide Area Network) 등 다양한 통신망으로 구성될 수 있다. In addition, according to an embodiment of the present invention, the communication network 200 may be configured without regard to communication modes such as wired and wireless, and may include a personal area network (PAN) and a local area network (LAN). ), A metropolitan area network (MAN), a wide area network (WAN), and the like.

한편, 본 발명의 일 실시예에 따르면, 큐 서버부(300)는 게임 서버(100)와, 보다 정확하게는 게임 서버(100) 내에 동작하는 API와의 통신을 통해 로그 데이터를 수신받아 내부의 큐에 저장하고, 또한 데이터베이스 서버(400)와의 통신을 통해 큐에 저장된 로그 데이터를 데이터베이스 서버(400)로 전송하는 기능을 수행하는 컴퓨터를 의미한다. 큐 서버부(300)의 상세한 구성요소 및 동작 방식에 대해서는 후술하도록 한다. Meanwhile, according to an embodiment of the present invention, the queue server unit 300 receives log data through communication with the game server 100 and, more precisely, an API operating in the game server 100 to receive an internal queue. A computer that stores and transmits log data stored in a queue to the database server 400 through communication with the database server 400. Detailed components and operation methods of the queue server unit 300 will be described later.

마지막으로, 본 발명의 일 실시예에 따르면, 데이터베이스 서버(400)는 클러스터 방식보다 비용적으로 저렴한, 예를 들어 IDE, SATA 또는 SCSI 등의 방식을 이용한 하드디스크 드라이브 등의 저장 매체를 포함하는 컴퓨터를 의미하며, 로그 데이터의 양에 따라 간단하게 부착된 저장 매체를 증설 또는 축소하는 방식으로 저장 공간을 확대 또는 축소할 수 있다. 데이터베이스 서버(400)는 큐 서버부(300)로부터 로그 데이터를 수신하여 저장 매체에 저장하는 기능을 수행하므로 종래의 클러스터 방식을 이용한 데이터베이스 서버와는 다르게 CPU를 최대한으로 사용할 수 있으며, 데이터베이스 서버(400)의 장애 발생시 일반적으로 수시간 내에 장애를 복구하는 것이 가능하다. Finally, according to an embodiment of the present invention, the database server 400 is a computer that includes a storage medium, such as a hard disk drive using a method such as IDE, SATA or SCSI, which is cheaper than a cluster method. According to the amount of log data, the storage space can be enlarged or reduced by simply expanding or reducing the attached storage medium. Since the database server 400 performs a function of receiving log data from the queue server unit 300 and storing the log data in a storage medium, the database server 400 can use the CPU to the maximum unlike a database server using a conventional cluster method. In case of failure, it is generally possible to recover from the failure within a few hours.

게임 서버의 세부 구성도Detailed diagram of game server

도 3은 본 발명의 일 실시예에 따른 게임 서버(100)의 세부 구성도이다. 3 is a detailed configuration diagram of the game server 100 according to an embodiment of the present invention.

도 3을 참조하면, 본 발명의 일 실시예에 따른 게임 서버(100)는 이벤트 확인부(110), 로그 데이터 생성부(120), 로그 데이터 저장부(130) 및 API(140)를 포함할 수 있다. 도 3은 본 발명의 일 실시예를 설명하기 위한 구성요소만을 간략히, 그리고 추상화하여 도시한 도면이므로 게임 서버(100)는 이 밖에도 이용자가 게임을 플레이하는데 필요한 다른 기능을 수행하는 구성 요소도 포함할 수도 있다는 것은 이해되어야 한다. Referring to FIG. 3, the game server 100 according to an exemplary embodiment of the present invention may include an event checking unit 110, a log data generating unit 120, a log data storing unit 130, and an API 140. Can be. 3 is a diagram briefly and abstractly illustrating only components for explaining an embodiment of the present invention, the game server 100 may also include components for performing other functions necessary for a user to play a game. It should be understood that it may be.

이벤트 확인부(110)는 로그 데이터 생성에 필요한 이벤트의 발생, 예를 들어 특정 이용자의 로그인이나 로그 아웃 등,을 모니터하다가 이벤트 발생 확인시 로그 데이터 생성부(120)로 통지하는 기능을 수행한다. 본 발명의 다른 실시예에 따르면, 이벤트 확인부(110)는 이벤트 발생 통지시 구체적인 이벤트 내역 등의 데이터도 함께 로그 데이터 생성부(120)로 통지할 수 있다. The event checking unit 110 monitors occurrence of an event required for generating log data, for example, logging in or logging out of a specific user and notifies the log data generating unit 120 when the event occurs. According to another exemplary embodiment of the present invention, the event checking unit 110 may notify the log data generating unit 120 also data such as a detailed event history when the event occurs.

로그 데이터 생성부(120)는 이벤트 확인부(110)로부터 로그 데이터의 생성이 필요한 특정 이벤트 발생에 대한 통지를 수신하고, 이를 기반으로 로그 데이터를 생성한다. The log data generator 120 receives a notification of a specific event occurrence that requires the generation of log data from the event checker 110 and generates log data based on the notification.

다음으로, 로그 데이터 저장부(130)는 로그 데이터 생성부(120)를 통해서 생성된 로그 데이터를 저장한다. 로그 데이터 저장부(130)는 API(140)를 데이터베이스 서버로 인식하고 공지의 SQL(Structured Query Language)를 이용하여 데이터베이스 연결, 로그 데이터 저장 및 데이터베이스 연결 종료 등의 명령을 수행할 수 있다. 로그 데이터 저장부(130) 및 API(140)는 동일한 컴퓨터 내에 있으므로 데이터베이스 연결을 위한 API(140)는 로컬호스트(localhost)에 있으며, IPv4에서의 IP 주소로는 127.0.0.1이 사용될 수 있다. Next, the log data storage unit 130 stores the log data generated through the log data generation unit 120. The log data storage unit 130 may recognize the API 140 as a database server and perform commands such as database connection, log data storage, and database connection termination using a well-known structured query language (SQL). Since the log data storage unit 130 and the API 140 are located in the same computer, the API 140 for connecting to a database is located at a localhost, and 127.0.0.1 may be used as an IP address in IPv4.

API(140)는 게임 서버(100) 내에서 동작하면서 로그 데이터 저장부(130)와의 통신을 통해 데이터베이스 서버를 에뮬레이션(emulation)하여 로그 데이터를 수신한다. API(140)는 또한, 큐 서버부(300) 내의 복수의 큐 서버(미도시)와의 통신을 통해 각각의 큐 서버의 동작 상태를 감지하고, 복수의 큐 서버 중 장애 없이 정상적으로 동작하면서도 그 큐에 쌓여 있는 로그 데이터의 양이 적은 큐 서버로 수신한 로그 데이터를 전송한다. 장애 확인 방법의 일 예로서 프로그램 ping을 이용하여 복수의 큐 서버로 IP 데이터그램이 도달하는지 여부를 확인하고, 이를 바탕으로 장애가 발생하였는지 여부를 확인할 수 있으나 이는 일 예에 불과하며 다양한 공지의 방법을 이용하여 장애 여부를 확인할 수 있다. 이러한 방식으로, 게임 제작사 및 게임 배포사가 상이하여 게임 서버(100)의 기능은 게임 제작사가 개발하고 큐 서버부(300) 및 데이터베이스 서버(400)의 기능은 게임 배포사가 개발하여 그 통신 방식이 서로 상이하다 할 지라도 게임 배포사가 개발하고 제공하는 API(140)의 에뮬레이션 기능을 이용하여 게임 제작사에서는 일반적이고 동일한 방식으로 게임 서버(100)의 기능을 구현하면서도 로그 데이터를 게임 배포사 측의 데이터베이스 서버(400)에 문제없이 저장할 수 있도록 할 수 있다. The API 140 operates in the game server 100 to emulate a database server through communication with the log data storage 130 to receive log data. The API 140 also detects an operation state of each queue server through communication with a plurality of queue servers (not shown) in the queue server unit 300, and operates in a queue while operating normally without a failure among the plurality of queue servers. Send the received log data to the queue server with a small amount of accumulated log data. As an example of a failure checking method, it is possible to check whether an IP datagram reaches a plurality of queue servers using a program ping and determine whether a failure has occurred based on this, but this is only an example and various known methods may be used. You can check whether there is a failure. In this way, the game publisher and the game distributor are different, so that the game server 100 is developed by the game publisher and the queue server 300 and the database server 400 are developed by the game distributor so that the communication methods are different from each other. Although different, the game publisher may use the emulation function of the API 140 developed and provided by the game distributor, and the log data may be written to the database server of the game distributor while implementing the functions of the game server 100 in a general and same manner. 400) can be stored without problems.

도 3에서의 이벤트 확인부(110), 로그 데이터 생성부(120), 로그 데이터 저장부(130) 및 API(140)는 물리적으로 하나의 컴퓨터 내에 구현될 수도 있고 일부 또는 그 각각이 물리적으로 다른 컴퓨터에 구현될 수도 있거나, 동일한 기능을 하는 물리적으로 복수 개 존재하는 컴퓨터가 병렬적으로 존재할 수도 있다. 이렇듯 본 발명은 각 구성부가 설치된 컴퓨터의 물리적인 개수 및 위치에 한정되지 않고 다양한 방식으로 설계 변경될 수 있음은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 있어 자명하다.In FIG. 3, the event checking unit 110, the log data generating unit 120, the log data storage unit 130, and the API 140 may be physically implemented in one computer, and some or each of them may be physically different from each other. It may be implemented in a computer, or there may be a plurality of physically present computers in parallel with the same function. As described above, the present invention is not limited to the physical number and location of the computer where each component is installed, and can be changed in various ways. It will be apparent to those skilled in the art to which the present invention pertains.

cue 서버부의Server part 세부 구성도 Detailed configuration diagram

본 발명의 일 실시예에 따라 도 4에 도시된 큐 서버부(300)의 세부 구성을 더욱 상세히 설명하면, 큐 서버부(300)는 통신부(310) 및 각각이 큐를 갖는 복수의 큐 서버(320)를 포함할 수 있다. Referring to the detailed configuration of the queue server unit 300 shown in FIG. 4 according to an embodiment of the present invention in more detail, the queue server unit 300 includes a communication unit 310 and a plurality of queue servers each having a queue ( 320).

여기서 통신부(310)는 다수의 게임 서버(100)에 포함된 다수의 API(140)들의 데이터베이스 서버(400) 요청에 의해 복수의 큐 서버(320) 각각의 동작 상태에 대해 확인한 뒤 그 결과를 전송한다. 여기서 동작 상태의 구체적인 예로서는 큐 서버(320) 각각이 장애에 따라 동작에 문제가 발생하였는지 여부, 또는 큐 서버(320) 내부의 큐에 로그 데이터가 어느 정도 쌓여 있는지 등을 들 수 있으나 반드시 이에 한정되는 것은 아니다. 또한, 통신부(310)는 API(140)로부터의 복수의 큐 서버(320) 중 특정 큐 서버로 로그 데이터를 저장하라는 요청을 수신하여 특정 큐 서버의 큐에 쌓도록 하는 기능을 수행할 수도 있다. Here, the communication unit 310 checks the operation state of each of the plurality of queue servers 320 by requesting the database server 400 of the plurality of APIs 140 included in the plurality of game servers 100 and transmits the result. do. Specific examples of the operation state may include whether a problem occurs in operation of each of the queue servers 320 or how much log data is accumulated in a queue inside the queue server 320, but is not limited thereto. It is not. In addition, the communication unit 310 may perform a function of receiving a request to store log data from a plurality of queue servers 320 from the API 140 to a specific queue server and stacking the log data in a queue of the specific queue server.

본 발명의 다른 실시예에 있어서, 통신부(310)는 직접적으로 복수의 큐 서버들(320) 각각의 상태에 대해 주기적으로 또는 실시간으로 모니터링하며 API(140)로부터 로그 데이터를 수신받아 자신이 모니터링한 결과 가장 적합한 큐 서버에 전송하는 기능을 수행할 수도 있다. 여기서 가장 적합한 큐 서버는 일 예로서 장애에 따른 동작 이상이 발생하지 않으면서도 내부의 큐에 로그 데이터가 가장 적게 쌓여 있는 서버가 될 수 있으나 반드시 이러한 규칙에 한정되는 것은 아니다. In another embodiment of the present invention, the communication unit 310 directly monitors the status of each of the plurality of queue servers 320 periodically or in real time, and receives log data from the API 140 and monitors itself. Result You can also perform the function of sending to the most suitable queue server. In this case, the most suitable queue server may be, for example, a server having the least log data accumulated in an internal queue without an abnormal operation due to a failure, but is not necessarily limited to this rule.

본 발명의 또 다른 실시예에 있어서, 큐 서버부(300) 내부에 독립적인 통신부(310)가 존재하는 대신 복수의 큐 서버(320) 각각이 통신부(310)의 기능을 포함하고, API(140)의 동작 상태 확인 요청에 대해 그 결과를 전송한다. 또한, 복수의 큐 서버(320) 중 특정 큐 서버가 API(140)로부터 로그 데이터 저장 요청을 수신하는 경우 해당 큐 서버의 큐에 수신된 로그 데이터를 쌓는다. 복수의 큐 서버(320) 각각은 적어도 하루 이상의 로그 데이터를 쌓을 수 있을 정도의 큐를 갖는 것이 바람직하다. In another embodiment of the present invention, instead of the independent communication unit 310 inside the queue server unit 300, each of the plurality of queue servers 320 includes the functions of the communication unit 310, API 140 Transmits the result of the operation status check request In addition, when a specific queue server among the plurality of queue servers 320 receives a log data storage request from the API 140, the received log data is accumulated in the queue of the corresponding queue server. Each of the plurality of queue servers 320 preferably has a queue that can stack at least one day of log data.

복수의 큐 서버(320) 각각은 내부의 큐에 쌓여져 있는 로그 데이터를 소정 기준에 따라 저장을 위해 데이터베이스 서버(400)로 전송한다. 데이터베이스 서버(400)로의 전송에 앞서, 데이터베이스 서버(400)에 장애가 발생하였는지 여부를 미리 확인하는 것이 바람직하며, 일 실시예에 따라 복수의 큐 서버(320) 각각이 독립적으로 데이터베이스 서버(400)와 통신하여 큐에 쌓여져 있는 로그 데이터를 전송할 수도 있고 다른 실시예에 따라 복수의 큐 서버(320) 내부의 큐에 쌓여져 있는 로그 데이터를 데이터베이스 서버(400)에 전송하기 전에 별도의 큐에 쌓은 뒤 해당 큐로부터 전송하도록 구현할 수도 있다. Each of the plurality of queue servers 320 transmits log data accumulated in an internal queue to the database server 400 for storage according to a predetermined criterion. Prior to transmission to the database server 400, it is preferable to check in advance whether or not a failure has occurred in the database server 400, according to one embodiment each of the plurality of queue server 320 is independently of the database server 400 The log data accumulated in the queues may be transmitted by communication. Alternatively, the log data accumulated in the queues of the plurality of queue servers 320 may be stacked in a separate queue before being transmitted to the database server 400. It can also be implemented to transmit from.

장애 확인 방법의 일 예로서는 프로그램 ping을 이용하여 데이터베이스 서버(400)로 IP 데이터그램이 도달하는지 여부를 확인하고, 이를 바탕으로 장애가 발생하였는지 여부를 확인할 수 있으나 이는 일 예에 불과하며 다양한 공지의 방법을 이용하여 장애 여부를 확인할 수 있다.As an example of a failure checking method, it is possible to check whether an IP datagram arrives at the database server 400 by using a program ping, and determine whether a failure has occurred based on this, but this is only an example and various known methods may be used. You can check whether there is a failure.

위에서 살펴본 큐 서버부(300)의 세부적인 구성은 예시적인 것에 불과하며, 해당 분야의 기술 수준 및 당업자의 기술 상식에 따라 다양한 방법에 의해 각 구성요소의 예들을 단독으로, 또는 결합하거나 일부 분리하여 사용하거나, 동일 또는 유사한 기능을 수행할 수 있도록 변형하여 사용할 수 있는 것은 인지될 수 있다. The detailed configuration of the queue server unit 300 described above is merely exemplary, and examples of each component may be used alone or in combination or partly separated by various methods according to the technical level of the related art and the common knowledge of those skilled in the art. It can be appreciated that the present invention can be used or modified to perform the same or similar functions.

전체 시스템 구성의 다른 Different in overall system configuration 실시예Example

도 5는 본 발명의 다른 실시예에 따른 전체 시스템 구성을 나타낸 도면이다. 개략적인 구성은 도 2와 유사하므로, 이하에서는 도 2와 상이한 부분에 대해서만 설명하도록 한다. 5 is a diagram showing the overall system configuration according to another embodiment of the present invention. Since the schematic configuration is similar to that of FIG. 2, only the parts different from those of FIG. 2 will be described below.

도 5를 참조하면, 본 발명은 단순히 하나의 게임 서버 또는 복수의 게임 서버를 포함하는 하나의 게임 서버부(100a)에 한정되지 않고, 다수의 게임 제작사에서 제작하는, 다수의 게임 서버를 포함하는 게임 서버부(100a, 100b, ... , 100n) (여기서 게임 서버부의 수는 특정되지 않는다)를 포함하는 개념으로 확장하여 볼 수 있다. Referring to FIG. 5, the present invention is not limited to one game server unit 100a including one game server or a plurality of game servers, and includes a plurality of game servers manufactured by a plurality of game producers. It can be extended to the concept including game server units 100a, 100b, ..., 100n (where the number of game server units is not specified).

즉, 다수의 게임 제작사가 다양한 제작 방식을 통해 독자적으로 게임을 개발한다 할 지라도, 게임 배포사가 제작한 데이터베이스 서버(400)로 로그 데이터를 저장하기 위한 별도의 개발 또는 포팅 과정은 필요하지 않으며 단지 공지의 SQL을 이용한 로그 데이터 저장 명령만으로 다양한 개발 환경하에서의 동일한 기능을 수행할 수 있으며, 이 중간 역할은 앞서 설명한 바와 같이 게임 배포사가 제작한 API를 이용하여 이루어질 수 있다. That is, even if a large number of game publishers develop their own games through various production methods, a separate development or porting process for storing log data to a database server 400 produced by a game distributor is not required. The same function can be performed under various development environments using only the log data storage command using SQL, and this intermediate role can be performed by using an API produced by a game distributor as described above.

또한, 데이터베이스 서버(400)에 장애가 발생한다 할 지라도 그 복구 시간은 수 시간에 불과하므로 장애 복구 과정동안 큐 서버부(300)에 로그 데이터를 쌓아놓을 수 있어 - 큐 서버부(300) 내의 복수의 큐 서버 각각은 적어도 하루 이상 로그 데이터를 쌓을 수 있는 큐를 갖고 있음 - 종래기술과는 다르게 데이터베이스 서버(400)의 장애 발생 여부에 관계 없이 사용자의 게임 진행 및 게임 로그 저장 기능이 유지될 수 있다. In addition, even if a failure occurs in the database server 400, since the recovery time is only a few hours, log data can be stacked in the queue server unit 300 during the failure recovery process. Each of the queue servers has a queue for stacking log data for at least one day. Unlike the prior art, a game progress and a game log storage function of a user may be maintained regardless of whether a failure of the database server 400 occurs.

그리고, 데이터베이스 서버(400)는 상대적으로 저가의 장비를 사용하면서도 순간적인 최대 용량을 초과한 요청을 받을 지라도 큐 서버부(300)가 그 완충 역할을 수행하므로 이러한 요청이 수용 가능하므로, 데이터베이스 서버(400)는 그 CPU를 로그 데이터 저장에 100% 활용할 수 있어 서버의 기능을 최대한으로 끌어낼 수 있다. In addition, even though the database server 400 receives a request exceeding the instantaneous maximum capacity while using relatively low-cost equipment, since the queue server unit 300 performs the buffering role, such a request can be accommodated. 400) can take full advantage of the server's functionality by making full use of the CPU for log data storage.

본 발명에 따른 실시예들은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(Floptical disk)와 같은 자기-광 매체(megneto-optical media) 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 상기된 하드웨어 장치는 본 발명의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동되도록 구성될 수 있으며, 그 역도 마찬가지다. Embodiments according to the present invention may be implemented in the form of program instructions that can be executed through various computer means and recorded in a computer-readable medium. The computer readable medium may include program instructions, data files, data structures, etc. alone or in combination. The program instructions recorded on the medium may be those specially designed and constructed for the present invention or may be available to those skilled in the art of computer software. Examples of the computer-readable recording medium include magnetic media such as a hard disk, a floppy disk, and a magnetic tape; optical media such as CD-ROM and DVD; magnetic recording media such as a floppy disk; Includes hardware devices specifically configured to store and perform program instructions such as megneto-optical media and ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine code generated by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like. The hardware device described above may be configured to operate as one or more software modules to perform the operations of the present invention, and vice versa.

이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. In the present invention as described above has been described by the specific embodiments, such as specific components and limited embodiments and drawings, but this is provided to help a more general understanding of the present invention, the present invention is not limited to the above embodiments. For those skilled in the art, various modifications and variations are possible from these descriptions.

따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.
Therefore, the spirit of the present invention should not be limited to the described embodiments, and all the things that are equivalent to or equivalent to the claims as well as the following claims will belong to the scope of the present invention. .

Claims (15)

로그 데이터 저장부 및 API를 포함하고 로그 데이터를 생성하는 게임 서버, 로그 데이터를 임시 저장하는 복수의 큐 서버를 포함하는 큐 서버부 및 로그 데이터를 최종 저장하는 데이터베이스 서버를 포함하는 시스템을 이용하여, 게임 서비스를 위한 로그 데이터를 효율적으로 저장할 수 있는 로그 데이터 저장 방법에 있어서,
상기 큐 서버부에 의해, 상기 게임 서버 내의 API로부터 로그 데이터를 수신받아 큐에 임시 저장하는 큐 저장 단계와,
상기 큐 서버부에 의해, 상기 데이터베이스 서버에 장애가 발생하였는지 여부를 확인하는 장애 판단 단계와,
장애가 발생하지 않은 경우 상기 큐 서버부에 의해, 큐에 임시 저장된 상기 로그 데이터를 저장을 위해 상기 데이터베이스 서버로 전송하는 로그 데이터 전송 단계를 포함하고,
상기 API는 상기 로그 데이터 저장부에 의한, SQL문을 이용한 게임 서버의 상기 로그 데이터 저장 명령에 대응하여 상기 로그 데이터를 수신하는 것을 특징으로 하는 로그 데이터 저장 방법.
By using a system including a game server including a log data storage unit and an API, generating a log data, a queue server unit including a plurality of queue servers for temporarily storing log data, and a database server for finally storing log data, In the log data storage method that can efficiently save the log data for the game service,
A queue storing step of receiving log data from an API in the game server and temporarily storing the log data in a queue by the queue server unit;
A failure determination step of confirming whether a failure occurs in the database server by the queue server unit;
A log data transmission step of transmitting, by the queue server unit, the log data temporarily stored in the queue to the database server for storage if a failure does not occur;
The API is a log data storage method, characterized in that for receiving the log data in response to the log data storage command of the game server using an SQL statement by the log data storage unit.
청구항 1에 있어서,
상기 방법은 상기 큐 저장 단계 이전에,
상기 게임 서버의 이벤트 확인부에 의해, 상기 로그 데이터 생성에 필요한 이벤트의 발생을 모니터링하는 단계, 및
상기 이벤트 발생시 상기 게임 서버의 로그 데이터 생성부에 의해, 상기 로그 데이터를 생성하는 단계를 더 포함하는 것을 특징으로 하는 로그 데이터 저장 방법.
The method according to claim 1,
The method prior to the queue storage step,
Monitoring occurrence of an event necessary for generating the log data by an event checking unit of the game server, and
And generating the log data by the log data generator of the game server when the event occurs.
청구항 1에 있어서,
상기 큐 저장 단계는,
상기 API로부터의 동작 상태 확인 요청을 수신하는 단계와,
상기 큐 서버부 내의 상기 복수의 큐 서버의 동작 상태 정보를 확인하여 상기 API로 전송하는 단계와,
상기 API로부터 상기 로그 데이터 및 지정된 특정 큐 서버 정보를 수신하는 단계, 및
상기 지정된 특정 큐 서버의 큐에 상기 로그 데이터를 임시 저장하는 단계를 포함하는 것을 특징으로 하는 로그 데이터 저장 방법.
The method according to claim 1,
The queue storing step,
Receiving an operation status check request from the API;
Checking operation state information of the plurality of queue servers in the queue server unit and transmitting the operation state information to the API;
Receiving the log data and specified specific queue server information from the API, and
And temporarily storing the log data in a queue of the designated specific queue server.
청구항 1에 있어서,
상기 큐 저장 단계는,
상기 큐 서버부 내의 상기 복수의 큐 서버의 동작 상태 정보를 확인하는 단계와,
상기 API로부터 상기 로그 데이터를 수신하는 단계와,
상기 동작 상태 정보를 이용하여, 상기 로그 데이터를 임시 저장하기 위한 특정 큐 서버를 지정하는 단계, 및
상기 지정된 특정 큐서버의 큐에 상기 로그 데이터를 임시 저장하는 단계를 포함하는 것을 특징으로 하는 로그 데이터 저장 방법.
The method according to claim 1,
The queue storing step,
Checking operation state information of the plurality of queue servers in the queue server unit;
Receiving the log data from the API;
Designating a specific queue server for temporarily storing the log data using the operation state information, and
And temporarily storing the log data in a queue of the designated specific queue server.
청구항 3 내지 4 중 어느 한 항에 있어서,
상기 동작 상태 정보는,
상기 복수의 큐 서버 각각의 장애 여부 및 큐가 쌓여있는 정도에 관한 정보를 포함하는 것을 특징으로 하는 로그 데이터 저장 방법.
The method according to any one of claims 3 to 4,
The operation state information,
Log data storage method characterized in that it comprises information on the failure of each of the plurality of queue server and the degree to which the queue is stacked.
청구항 1에 있어서,
상기 데이터베이스 서버는,
클러스터 방식으로 구성되지 않은 것을 특징으로 하는 로그 데이터 저장 방법.
The method according to claim 1,
The database server,
Method of storing log data, characterized in that not configured in a clustered manner.
청구항 1에 있어서,
상기 장애 판단 단계는,
프로그램 ping을 이용한 IP 다이어그램의 도달 여부에 기초하여 장애 발생 여부를 판단하는 것을 특징으로 하는 로그 데이터 저장 방법.
The method according to claim 1,
The failure determination step,
A method for storing log data, comprising determining whether a failure occurs based on whether or not the IP diagram is reached using a program ping.
로그 데이터를 생성하는 게임 서버, 로그 데이터를 임시 저장하는 복수의 큐 서버를 포함하는 큐 서버부 및 로그 데이터를 최종 저장하는 데이터베이스 서버를 포함하는, 게임 서비스를 위한 로그 데이터를 효율적으로 저장할 수 있는 로그 데이터 저장 시스템에 있어서,
상기 게임 서버는 SQL문을 이용한 로그 데이터 저장 명령을 수행하는 로그 데이터 저장부, 및
상기 로그 데이터 저장 명령에 대응하여 상기 로그 데이터를 수신하는 API를 포함하고,
상기 큐 서버부는 상기 게임 서버 내의 API로부터 로그 데이터를 수신받아 상기 복수의 큐 서버 중 특정 큐에 임시 저장하는 통신부, 및
상기 데이터베이스 서버에 장애가 발생하였는지 여부를 확인하고, 장애가 발생하지 않은 경우 상기 특정 큐에 임시 저장된 상기 로그 데이터를 저장을 위해 상기 데이터베이스 서버로 전송하는 복수의 큐 서버를 구비하고,
상기 API는 상기 로그 데이터 저장부에 의한, SQL문을 이용한 로그 데이터 저장 명령에 대응하여 상기 로그 데이터를 수신하는 것을 특징으로 하는 로그 데이터 저장 시스템.
A log capable of efficiently storing log data for a game service, including a game server generating log data, a queue server unit including a plurality of queue servers temporarily storing log data, and a database server finally storing log data. In a data storage system,
The game server is a log data storage unit for performing a log data storage command using an SQL statement, and
An API for receiving the log data in response to the log data storage command;
The queue server unit receives the log data from the API in the game server communication unit for temporarily storing in a specific queue of the plurality of queue servers, And
A plurality of queue servers for checking whether a failure has occurred in the database server, and transmitting the log data temporarily stored in the specific queue to the database server for storage if the failure does not occur;
And the API receives the log data in response to a log data storage command using an SQL statement by the log data storage unit.
청구항 8에 있어서,
상기 게임 서버는,
상기 로그 데이터 생성에 필요한 이벤트의 발생을 모니터링하는 이벤트 확인부, 및
상기 이벤트 발생시 상기 로그 데이터를 생성하는 로그 데이터 생성부를 더 포함하는 것을 특징으로 하는 로그 데이터 저장 시스템.
The method according to claim 8,
The game server,
An event checking unit for monitoring occurrence of an event required for generating the log data, and
And a log data generator for generating the log data when the event occurs.
청구항 8에 있어서,
상기 통신부는,
상기 API로부터의 동작 상태 확인 요청을 수신시, 상기 복수의 큐 서버의 동작 상태 정보를 확인하여 상기 API로 전송하는 기능, 및
상기 API로부터 상기 로그 데이터 및 지정된 특정 큐 서버 정보 수신시, 상기 지정된 특정 큐 서버의 큐에 상기 로그 데이터를 임시 저장하는 기능을 더 포함하는 것을 특징으로 하는 로그 데이터 저장 시스템.
The method according to claim 8,
The communication unit,
Upon receiving the operation status check request from the API, checking the operation status information of the plurality of queue servers and transmitting the same to the API; and
And storing the log data temporarily in a queue of the designated specific queue server when receiving the log data and the designated specific queue server information from the API.
청구항 8에 있어서,
상기 통신부는,
상기 복수의 큐 서버의 동작 상태 정보를 확인하는 기능과,
상기 API로부터 상기 로그 데이터를 수신시 상기 동작 상태 정보를 이용하여, 상기 로그 데이터를 임시 저장하기 위한 특정 큐 서버를 지정하는 기능, 및
상기 지정된 특정 큐서버의 큐에 상기 로그 데이터를 임시 저장하는 기능을 더 포함하는 것을 특징으로 하는 로그 데이터 저장 시스템.
The method according to claim 8,
The communication unit,
A function of checking operation state information of the plurality of queue servers;
A function of designating a specific queue server for temporarily storing the log data by using the operation state information when receiving the log data from the API, and
And storing the log data temporarily in a queue of the designated specific queue server.
청구항 10 내지 11 중 어느 한 항에 있어서,
상기 동작 상태 정보는,
상기 복수의 큐 서버 각각의 장애 여부 및 큐가 쌓여있는 정도에 관한 정보를 포함하는 것을 특징으로 하는 로그 데이터 저장 방법.
The method according to any one of claims 10 to 11,
The operation state information,
Log data storage method characterized in that it comprises information on the failure of each of the plurality of queue server and the degree to which the queue is stacked.
청구항 8에 있어서,
상기 데이터베이스 서버는,
클러스터 방식으로 구성되지 않은 것을 특징으로 하는 로그 데이터 저장 시스템.
The method according to claim 8,
The database server,
Log data storage system, characterized in that not configured in a clustered manner.
청구항 8에 있어서,
상기 장애 발생 여부 확인은,
프로그램 ping을 이용한 IP 다이어그램의 도달 여부에 기초하여 이루어지는 것을 특징으로 하는 로그 데이터 저장 시스템.
The method according to claim 8,
Check whether the failure occurs,
Log data storage system, characterized in that based on the arrival of the IP diagram using the program ping.
청구항 제1항 내지 제7항 중 어느 한 항에 기재된 방법의 각 단계를 컴퓨터 상에서 수행하기 위한 프로그램을 기록한 컴퓨터 판독 가능한 기록매체. A computer-readable recording medium having recorded thereon a program for performing on a computer each step of the method according to any one of claims 1 to 7.
KR1020100130587A 2010-12-20 2010-12-20 Method, system and compueter readable medium to store log data effective in the game service KR101539072B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020100130587A KR101539072B1 (en) 2010-12-20 2010-12-20 Method, system and compueter readable medium to store log data effective in the game service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020100130587A KR101539072B1 (en) 2010-12-20 2010-12-20 Method, system and compueter readable medium to store log data effective in the game service

Publications (2)

Publication Number Publication Date
KR20120075622A true KR20120075622A (en) 2012-07-09
KR101539072B1 KR101539072B1 (en) 2015-07-23

Family

ID=46709472

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100130587A KR101539072B1 (en) 2010-12-20 2010-12-20 Method, system and compueter readable medium to store log data effective in the game service

Country Status (1)

Country Link
KR (1) KR101539072B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380001A (en) * 2020-10-30 2021-02-19 网宿科技股份有限公司 Log output method, load balancing device and computer readable storage medium
KR20230072239A (en) * 2021-11-17 2023-05-24 주식회사 엘지유플러스 Method and apparatus for managing video service platform

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018182060A1 (en) 2017-03-28 2018-10-04 ㈜리얼타임테크 Method for storing and searching text log data on basis of relational database
KR102171027B1 (en) * 2019-07-26 2020-10-28 이화여자대학교 산학협력단 Follower server apparatus and lead server apparatus for processing unstructured log, consensus system including the same and method thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020025147A (en) * 2002-03-06 2002-04-03 주식회사 하나소프트 Discrete style on-line game server system and server discrete method
KR20070080363A (en) * 2006-02-07 2007-08-10 (주)아더스테크놀러지 Integrated server system
KR100990382B1 (en) * 2008-06-30 2010-10-29 주식회사 비즈모델라인 System for Allocating Virtual Communication Session
KR20100089671A (en) * 2009-02-04 2010-08-12 주식회사 엔씨소프트 Apparatus and method of re-connecting online game

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380001A (en) * 2020-10-30 2021-02-19 网宿科技股份有限公司 Log output method, load balancing device and computer readable storage medium
KR20230072239A (en) * 2021-11-17 2023-05-24 주식회사 엘지유플러스 Method and apparatus for managing video service platform

Also Published As

Publication number Publication date
KR101539072B1 (en) 2015-07-23

Similar Documents

Publication Publication Date Title
US10467105B2 (en) Chained replication techniques for large-scale data streams
Jhawar et al. Fault tolerance and resilience in cloud computing environments
US10691716B2 (en) Dynamic partitioning techniques for data streams
US10545842B2 (en) Automated local database connection affinity and failover
US9471585B1 (en) Decentralized de-duplication techniques for largescale data streams
Rostanski et al. Evaluation of highly available and fault-tolerant middleware clustered architectures using RabbitMQ
KR20240013827A (en) Live migration of clusters in containerized environments
US9934105B2 (en) Fault tolerance for complex distributed computing operations
US8984328B2 (en) Fault tolerance in a parallel database system
US20130124916A1 (en) Layout of mirrored databases across different servers for failover
JP2014522052A (en) Reduce hardware failure
US9600307B1 (en) Dynamic policy based placement of virtual machines within and across multiple data centers
US20240104089A1 (en) Methods, systems, electronic devices, and storage media for database transaction processing
US11836067B2 (en) Hyper-converged infrastructure (HCI) log system
US10102088B2 (en) Cluster system, server device, cluster system management method, and computer-readable recording medium
KR20120075622A (en) Method, system and compueter readable medium to store log data effective in the game service
US10019182B2 (en) Management system and management method of computer system
CN113535474A (en) Method, system, medium and terminal for automatically repairing heterogeneous cloud storage cluster fault
Fang et al. Integrating workload balancing and fault tolerance in distributed stream processing system
Dave et al. CloudClustering: Toward an iterative data processing pattern on the cloud
US10776173B1 (en) Local placement of resource instances in a distributed system
US8667048B2 (en) Method for managing internet protocol addresses in network
US20090204618A1 (en) Storage system
Costa et al. Chrysaor: Fine-grained, fault-tolerant cloud-of-clouds mapreduce
US11755438B2 (en) Automatic failover of a software-defined storage controller to handle input-output operations to and from an assigned namespace on a non-volatile memory device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20180702

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20190708

Year of fee payment: 5