KR20180058096A - Distributed file sharing system and method of duplicating file in distributed file sharing system - Google Patents
Distributed file sharing system and method of duplicating file in distributed file sharing system Download PDFInfo
- Publication number
- KR20180058096A KR20180058096A KR1020160156785A KR20160156785A KR20180058096A KR 20180058096 A KR20180058096 A KR 20180058096A KR 1020160156785 A KR1020160156785 A KR 1020160156785A KR 20160156785 A KR20160156785 A KR 20160156785A KR 20180058096 A KR20180058096 A KR 20180058096A
- Authority
- KR
- South Korea
- Prior art keywords
- file
- server
- servers
- sharing system
- distributed
- Prior art date
Links
Images
Classifications
-
- G06F17/30203—
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
- G06F16/1824—Distributed file systems implemented using Network-attached Storage [NAS] architecture
- G06F16/183—Provision of network file services by network file servers, e.g. by using NFS, CIFS
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/144—Query formulation
-
- G06F17/30103—
Abstract
Description
기술 분야는 분산 파일 공유 시스템 및 분산 파일 공유 시스템에서 파일을 복제하는 방법에 관한 것으로, 특히 P2P와 같은 분산 네트워크에서 파일을 공유하기 위해 메타 데이터를 분배 및 저장하고, 메타 데이터를 이용하여 파일의 다운로드 및 업로드를 포함하는 고객 단말들의 요청을 처리하는 분산 파일 공유 시스템에 관한 것이다.The present invention relates to a distributed file sharing system and a method for replicating files in a distributed file sharing system. More particularly, the present invention relates to a method of distributing and storing metadata in a distributed network such as P2P, And a distributed file sharing system for processing requests of customer terminals including uploading.
분산 환경에서 동작하는 P2P 파일 공유 시스템들은 저장된 파일을 공유하기 위한 방법으로 파일 데이터를 필요로 하고, 추가적으로 파일의 위치를 검색하기 위한 서버를 사용한다. P2P 파일 공유 시스템들의 일 예로는 넵스터(Napster), 그누텔라(Guntella), 카자(KaZaA) 등을 들 수 있다. 넵스터는 파일 데이터를 저장 및 관리하기 위해 하나의 중앙 집중식 서버를 이용하므로 하나의 중앙 집중식 서버가 다운되면 전체 시스템을 이용할 수 없다. 그누텔라는 파일 데이터를 공유하기 위한 추가적인 서버를 사용하지 않고, 파일 데이터를 얻기 위해 해당 시스템을 구성하는 모든 서버들에게 브로드캐스트(Broadcast) 메시지를 전송한다. 그누텔라는 시스템을 구성하는 서버들의 수와 파일 다운로드를 위한 요청이 증가 하는 경우에 필연적으로 네트워크의 부하가 발생한다. 카자는 슈퍼 노드(Super Node)라 불리는 여러 대의 서버들을 이용하여 파일 데이터를 관리하므로 슈퍼 노드의 수와 전체적인 서버의 수가 증가함에 따라 시스템의 성능이 저하된다. P2P file sharing systems that operate in a distributed environment require file data as a method for sharing stored files and additionally use a server for searching the location of files. Examples of P2P file sharing systems include Napster, Guntella, and KaZaA. Because Napster uses one centralized server to store and manage file data, the entire system is unavailable when one centralized server goes down. Gnutella does not use an additional server to share file data but sends a broadcast message to all the servers that make up the system to obtain file data. Gnutella is inevitably burdened by the network as the number of servers making up the system and the number of requests for file downloads increase. Kazaa manages file data by using several servers called Super Nodes, so the system performance decreases as the number of super nodes and the total number of servers increase.
상술한 바와 같이, 분산 환경을 기반으로 파일 공유 서비스를 제공하기 위한 시스템들은 공유할 파일의 수가 증가함에 따라 파일 데이터를 검색하기 위해 많은 지연 시간(Latency)를 소모한다. 뿐만 아니라, 분산 환경을 기반으로 파일 공유 서비스를 제공하기 위한 시스템들은 시스템에 접속하는 고객 단말들의 수가 증가함에 따라 네트워크 내의 불필요한 통신이 과도하게 발생하여 예상하지 못한 시스템의 성능 저하, 및 서버의 종료(Shuntdown) 등의 어려움을 겪게 된다.As described above, systems for providing a file sharing service based on a distributed environment consume a lot of latency to retrieve file data as the number of files to be shared increases. In addition, systems for providing a file sharing service based on a distributed environment have a problem in that unnecessary communication in the network is excessively generated due to an increase in the number of customer terminals connecting to the system, Shuntdown).
예를 들어, 토렌트(Torrent)와 같은 P2P 파일 공유 시스템은 파일 검색을 위한 트레커(Tracker)라는 명칭을 사용하는 웹 서버들을 이용하여 파일 데이터를 대신 관리하므로 파일 데이터를 신경쓰지 않고 서비스를 제공할 수 있다. 하지만, 토렌트는 서버가 유지하는 파일 데이터의 크기가 커지면 해당 파일의 정보를 얻기 위한 검색 시간이 길어진다. 또한, 토렌트는 전 세계적으로 흩어진 특정 컴퓨터로부터 파일의 조각을 가져오는 방식으로 전체 파일을 다운로드 하므로 성능이 매우 느리다. For example, a P2P file sharing system such as Torrent manages file data instead of using the web servers that use the name "Tracker" for file retrieval, so it can provide services without worrying about file data. have. However, when the size of the file data held by the server becomes large, the search time for obtaining the information of the file becomes long. Also, the torrent is very slow because it downloads the entire file by fetching fragments of the file from specific computers scattered around the globe.
따라서, P2P 네트워크와 같은 분산 환경에서 파일 데이터를 효율적으로 저장 및 관리하기 위한 파일 공유 시스템이 요구된다. Therefore, a file sharing system for efficiently storing and managing file data in a distributed environment such as a P2P network is required.
본 발명의 배경이 되는 기술은 다음 2건 특허 문헌들에 개시되어 있다.Techniques that constitute the background of the present invention are disclosed in the following two patent documents.
(1) 미국 등록 특허 공보 US 5635683 A (MCDERMOTT, R. M.) 1997.06.03.(1) United States Patent Publication No. 5635683 A (MCDERMOTT, R. M.) 1997.06.03.
(2) 일본 등록 특허 공보 JP 10-105775 A 1998.04.24, 5쪽, 3-15줄, 도면1(2) Japanese Patent Registration No. JP 10-105775 A 1998.04.24,
일 측에 따르면, 분산 기반 NoSQL(Not Only Structured Query Language) 저장 시스템(또는 분산 기반 NoSQL 데이터베이스)을 기반으로 파일의 메타 데이터를 분산된 서버들에 저장하여 파일 공유 서비스를 제공함으로써 P2P 파일 공유 시스템들에 존재했던 파일 검색 문제를 해결할 수 있다. According to one side, the metadata of a file is stored in distributed servers based on a distributed based NoSQL (Not-Structured Query Language) storage system (or distributed based NoSQL database) to provide a file sharing service, Can solve the file search problem that existed in.
일 측에 따르면, 분산된 서버들 간에 공유될 파일의 인기와 서버들의 상태 정보에 기초하여 파일을 복제하고, 분산된 서버들에 파일을 분배 및 저장함으로써 하나의 서버에 집중되었던 네트워크 병목 현상을 제거하고 시스템의 내고장성을 제공할 수 있다. According to one side, it replicates files based on the popularity of files to be shared among distributed servers and the status information of servers, and distributes and stores files to distributed servers, thereby eliminating the network bottleneck that was concentrated in one server. And provide fault tolerance of the system.
일 측에 따르면, 분산 환경에서 서버가 추가 및 삭제가 되더라도 파일 공유 서비스가 중단되지 않는 높은 가용성(High-availability)와 확장성(Scalability)을 제공할 수 있다.According to one side, even if a server is added or deleted in a distributed environment, it can provide high availability and scalability in which the file sharing service is not interrupted.
일 측에 따르면, 복수의 서버들 및 상기 복수의 서버들과 통신하는 복수의 고객 단말들을 포함하는 분산 파일 공유 시스템에 있어서 상기 복수의 서버들 중 어느 하나의 서버는 상기 어느 하나의 서버와 상기 복수의 고객 단말들 간의 통신을 통해 파일 검색, 파일의 업로드 요청 및 파일의 다운로드 요청을 포함하는 상기 고객 단말들의 요청을 수신하고, 상기 고객 단말들의 요청에 따른 처리를 위한 파일 복제 및 분배를 수행하는 이벤트 핸들러를 포함하는 서버 인터페이스; 및 상기 파일 검색을 위한 메타 데이터 및 상기 고객 단말들의 요청에 대한 처리 결과인 로그 데이터를 저장 및 관리하는 데이터베이스를 포함한다. According to one aspect of the present invention, in a distributed file sharing system including a plurality of servers and a plurality of client terminals communicating with the plurality of servers, any one of the plurality of servers includes the server Receiving a request of the customer terminals including a file search, a file upload request, and a file download request through communication between the customer terminals of the client terminal, performing an event for performing file replication and distribution for processing according to a request of the customer terminals A server interface including a handler; And a database for storing and managing the metadata for the file search and the log data which is a processing result of the request of the customer terminals.
상기 서버 인터페이스는 파일의 인기도 및 상기 파일에 대한 고객 단말들의 요청을 기초로, 상기 복제할 파일의 복제 계수 및 상기 복제할 파일을 분배할 적어도 하나의 서버를 선택할 수 있다. The server interface may select at least one server to distribute the replication factor of the file to be replicated and the file to be replicated, based on the popularity of the file and the request of the client terminals for the file.
상기 이벤트 핸들러는 상기 고객 단말들의 요청에 대한 처리, 상기 파일 복제 및 분배를 포함하는 이벤트를 처리하고, 상기 서버 인터페이스는 상기 어느 하나의 서버의 디스크 용량 및 상기 어느 하나의 서버의 상태 정보를 주기적으로 수집 및 갱신하는 상태 업데이터; 및 상기 상태 업데이터에 의해 수집된 정보를 기초로, 상기 데이터베이스에 대한 데이터 판독, 삽입 및 저장을 포함하는 쿼리를 처리하는 쿼리 처리자 중 적어도 하나를 더 포함할 수 있다.Wherein the event handler processes an event including a request for the client terminals, an event including the file copying and distribution, and the server interface periodically transmits the disk capacity of the one server and the status information of the one server A status updater to collect and update; And a query processor for processing a query including reading, inserting, and storing data for the database based on the information collected by the status updater.
상기 고객 단말에 의해 파일의 업로드가 요청된 경우, 상기 이벤트 핸들러는 상기 어느 하나의 서버에 상기 업로드할 파일을 저장할 공간이 충분한지 여부에 기초하여, 상기 어느 하나의 서버에 인접한 다른 서버를 검색하고, 상기 다른 서버에 대한 정보를 상기 업로드를 요청한 고객 단말에게 전송할 수 있다. When the uploading of a file is requested by the client terminal, the event handler searches another server adjacent to the one server based on whether any one of the servers has a sufficient space for storing the file to be uploaded , And may transmit the information about the other server to the client terminal requesting the upload.
상기 이벤트 핸들러는 상기 로그 데이터를 수집하고, 상기 수집된 로그 데이터를 기반으로 상기 어느 하나의 서버에서 처리된 파일에 대한 고객 단말들의 총 요청 횟수를 산출하고, 상기 총 요청 횟수에 기초하여 상기 어느 하나의 서버에서 처리된 파일의 인기도를 측정하며, 상기 파일의 인기도에 기초하여 상기 처리된 파일의 복제 계수를 산출할 수 있다. Wherein the event handler collects the log data, calculates a total number of requests of the client terminals for the file processed by the one server based on the collected log data, The server can measure the popularity of the processed file and calculate the copying coefficient of the processed file based on the popularity of the file.
상기 이벤트 핸들러는 상기 어느 하나의 서버에서의 상기 파일의 인기도의 비율 및 상기 어느 하나의 서버가 상기 파일을 복제하는 데에 소요되는 네트워크 비용을 산출하고, 상기 파일의 인기도의 비율 및 상기 네트워크 비용에 기초하여 상기 어느 하나의 서버에 상기 파일을 복제할 것인지 여부를 결정할 수 있다. Wherein the event handler calculates a ratio of the popularity of the file in any one of the servers and a network cost required for the one server to replicate the file, and calculates a ratio of the popularity of the file and the network cost It is possible to determine whether to copy the file to any one of the servers based on the information.
상기 데이터베이스는 상기 고객 단말들의 요청 시에 생성되는 데이터 및 상기 파일 검색을 위한 데이터를 저장 및 관리하는 파일 데이터 저장소; 상기 어느 하나의 서버가 처리한 고객 단말들의 요청의 결과인 로그 데이터를 저장하는 로그 저장소; 상기 어느 하나의 서버에서 나머지 다른 서버들로의 데이터 이동 시간을 측정한 결과를 저장하는 라우팅 정보 저장소; 및 상기 어느 하나의 서버의 클러스터 상태 및 상기 어느 하나의 서버의 디스크 사용 용량을 포함하는 상태 정보를 저장하는 클러스터 상태 저장소 중 적어도 하나를 포함할 수 있다. Wherein the database comprises: a file data storage for storing and managing data generated upon request of the customer terminals and data for searching the file; A log storage for storing log data which is a result of a request of the client terminals processed by any one of the servers; A routing information storage for storing a result of measuring a data movement time from one of the servers to the other servers; And a cluster status store for storing status information including a cluster status of any one of the servers and a disk usage capacity of any one of the servers.
일 측에 따르면, 복수의 서버들 및 상기 복수의 서버들과 통신하는 복수의 고객 단말들을 포함하는 분산 파일 공유 시스템에서 파일을 복제하는 방법은 상기 고객 단말들의 요청에 기초하여 상기 복제할 파일의 인기도를 산출하는 단계; 상기 복제할 파일의 인기도 및 상기 복제할 파일을 복제하는 데에 소요되는 서버의 네트워크 비용에 기초하여, 상기 복제할 파일의 복제 계수 및 상기 복수의 서버들 중 상기 파일을 분배할 적어도 하나의 서버를 결정하는 단계; 및 상기 복제 계수에 따라 상기 결정된 적어도 하나의 서버로 상기 파일을 복제하는 단계를 포함한다. According to one aspect, a method for replicating a file in a distributed file sharing system including a plurality of servers and a plurality of client terminals communicating with the plurality of servers, includes the steps of: ; A replication coefficient of the file to be duplicated and at least one server for distributing the file among the plurality of servers based on the popularity of the file to be duplicated and the network cost of the server for duplicating the file to be duplicated Determining; And replicating the file to the determined at least one server according to the replication factor.
상기 파일을 분배할 적어도 하나의 서버를 결정하는 단계는 상기 복수의 서버들 중 상기 적어도 하나의 서버에서의 상기 파일의 인기도의 비율을 산출하는 단계; 상기 적어도 하나의 서버가 상기 파일을 복제하는 데에 소요되는 네트워크 비용을 산출하는 단계; 및 상기 파일의 인기도의 비율 및 상기 네트워크 비용에 기초하여 상기 적어도 하나의 서버를 상기 파일을 분배할 서버로 결정하는 단계를 포함할 수 있다. Wherein determining at least one server to distribute the file comprises: calculating a percentage of popularity of the file at the at least one server of the plurality of servers; Calculating a network cost for the at least one server to replicate the file; And determining the at least one server as a server to distribute the file based on the ratio of the popularity of the file and the network cost.
상기 복제할 파일의 인기도를 산출하는 단계는 상기 고객 단말들의 요청에 대한 처리 결과인 로그 데이터를 수집하는 단계; 상기 수집된 로그 데이터를 기초로, 상기 복수의 서버들 중 어느 하나의 서버에서 처리된 상기 파일에 대한 고객 단말들의 총 요청 횟수를 산출하는 단계; 및 상기 총 요청 횟수를 이용하여 상기 어느 하나의 서버에서 처리된 상기 파일의 인기도를 산출하는 단계를 포함할 수 있다.The step of calculating the popularity of the file to be duplicated may include collecting log data that is a processing result of the request of the customer terminals; Calculating a total number of requests of the client terminals for the file processed by any one of the plurality of servers based on the collected log data; And calculating the popularity of the file processed by any one of the servers using the total number of requests.
일 실시예에 따르면, 분산 환경에서 복수의 서버들에 파일을 적절하게 분배 및 저장함으로써 파일 검색을 위한 별도의 서버 추가 없이도 파일 공유 서비스를 원활하게 제공할 수 있다. According to an embodiment, a file sharing service can be smoothly provided without adding a separate server for file search by appropriately distributing and storing files in a plurality of servers in a distributed environment.
일 실시예에 따르면, 실제 파일을 유지하는 서버와 파일 위치를 검색하기 위한 별도의 서버를 구분하거나, 고객 단말이 파일 검색을 위해 별도의 서버와 통신하지 않고도 하나의 서버에 의해 파일 공유 서비스를 제공할 수 있다. According to an embodiment, a server for maintaining an actual file may be distinguished from a separate server for searching for a file location, or a client terminal may provide a file sharing service by a single server without communicating with a separate server can do.
일 실시예에 따르면, 파일 검색을 위한 오직 한 번의 퀴리(Query)에 의해 고객 단말이 원하는 파일(또는 데이터)을 획득할 수 있다. According to an embodiment, a customer terminal can acquire a desired file (or data) by only one query for retrieving a file.
일 실시예에 따르면, 분산 기반 NoSQL 저장 시스템을 이용함으로써 분산 파일 공유 시스템을 구성하는 서버의 추가 및/또는 삭제가 발생하더라도 전체 시스템에 크게 영향을 주지 않는 유연성(Flexibility)있는 대처가 가능하다. According to an embodiment, even if a server constituting a distributed file sharing system is added and / or deleted by using the distributed-based NoSQL storage system, it is possible to cope with flexibility without affecting the entire system.
일 실시예에 따르면, 분산 파일 공유 시스템을 구성하는 서버에서의 상태 정보를 확인함으로써 서버의 변화를 빠르게 감지하여 해당 서브의 상태에 맞는 서비스를 제공하고, 분산 파일 공유 시스템에 확장성(Scalability), 유연성(Flexibility), 메타 데이터의 정합성(Consistency)을 제공할 수 있다. According to an embodiment of the present invention, by detecting state information at a server constituting a distributed file sharing system, it is possible to quickly detect a change in a server and provide a service suited to the state of the corresponding sub, and to provide scalability, Flexibility, and consistency of metadata.
일 실시예에 따르면, 특정 파일에 대한 고객 단말의 요청 분포 및 특정 파일의 인기도에 기초하여 파일을 복제 및 분배함으로써 고객 단말의 요청에 대한 빠른 응답 및 처리를 제공할 수 있다.According to one embodiment, it is possible to provide a fast response and processing for a request of a customer terminal by copying and distributing a file based on the distribution of the request of the customer terminal to the specific file and the popularity of the specific file.
도 1은 일 실시예에 따른 분산 파일 공유 시스템의 구성을 나타낸 도면.
도 2는 일 실시예에 따른 분산 파일 공유 시스템을 구성하는 어느 하나의 서버의 구성을 나타낸 도면.
도 3은 일 실시예에 따른 분산 파일 공유 시스템에서 파일을 복제하는 방법을 나타낸 흐름도.
도 4는 일 실시예에 따른 분산 파일 공유 시스템에서 복제할 파일의 인기도를 산출하는 방법을 나타낸 흐름도.
도 5는 일 실시예에 따른 분산 파일 공유 시스템에서 파일을 분배할 적어도 하나의 서버를 결정하는 방법을 나타낸 흐름도.
도 6은 일 실시예에 따른 분산 파일 공유 시스템의 서버에서 고객 단말의 파일 업로드 요청을 처리하는 방법을 나타낸 흐름도.
도 7은 일 실시예에 따른 분산 파일 공유 시스템의 서버에서 파일 업로드 요청을 처리 할 수 없는 경우의 동작을 나타낸 흐름도.
도 8은 일 실시예에 따른 분산 파일 공유 시스템에서 고객 단말의 파일 다운로드 요청을 처리하는 방법을 나타낸 흐름도.
도 9는 일 실시예에 따른 분산 파일 공유 시스템의 서버에 적용된 파일 복제 방법(Replication Scheme)에서 이용되는 심볼의 의미를 나타낸 도면.
도 10은 일 실시예에 따른 분산 파일 공유 시스템에서의 파일 복제 방법을 나타낸 흐름도.
도 11을 일 실시예에 따른 분산 파일 공유 시스템의 동작을 설명하기 위한 도면.BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram of a distributed file sharing system according to an embodiment; Fig.
2 is a diagram illustrating a configuration of any one of servers constituting a distributed file sharing system according to an exemplary embodiment;
3 is a flowchart illustrating a method of replicating a file in a distributed file sharing system according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating a method of calculating a popularity of a file to be duplicated in a distributed file sharing system according to an exemplary embodiment; FIG.
5 is a flow diagram illustrating a method for determining at least one server to distribute a file in a distributed file sharing system according to one embodiment.
6 is a flowchart illustrating a method of processing a file upload request of a customer terminal in a server of a distributed file sharing system according to an exemplary embodiment.
FIG. 7 is a flowchart illustrating an operation when a file upload request can not be processed in a server of a distributed file sharing system according to an exemplary embodiment; FIG.
8 is a flowchart illustrating a method of processing a file download request of a customer terminal in a distributed file sharing system according to an exemplary embodiment.
9 is a diagram illustrating the meaning of symbols used in a file replication method applied to a server of a distributed file sharing system according to an exemplary embodiment;
10 is a flowchart illustrating a file copying method in a distributed file sharing system according to an embodiment.
FIG. 11 is a diagram for explaining the operation of the distributed file sharing system according to one embodiment; FIG.
이하에서, 첨부된 도면을 참조하여 실시예들을 상세하게 설명한다. 그러나, 특허출원의 범위가 이러한 실시예들에 의해 제한되거나 한정되는 것은 아니다. 각 도면에 제시된 동일한 참조 부호는 동일한 부재를 나타낸다.In the following, embodiments will be described in detail with reference to the accompanying drawings. However, the scope of the patent application is not limited or limited by these embodiments. Like reference symbols in the drawings denote like elements.
아래 설명하는 실시예들에는 다양한 변경이 가해질 수 있다. 아래 설명하는 실시예들은 실시 형태에 대해 한정하려는 것이 아니며, 이들에 대한 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다.Various modifications may be made to the embodiments described below. It is to be understood that the embodiments described below are not intended to limit the embodiments, but include all modifications, equivalents, and alternatives to them.
실시예에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 실시예를 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 명세서 상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the examples are used only to illustrate specific embodiments and are not intended to limit the embodiments. The singular expressions include plural expressions unless the context clearly dictates otherwise. In this specification, the terms "comprises" or "having" and the like refer to the presence of stated features, integers, steps, operations, elements, components, or combinations thereof, But do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.
다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 출원에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless defined otherwise, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this embodiment belongs. Terms such as those defined in commonly used dictionaries are to be interpreted as having a meaning consistent with the contextual meaning of the related art and are to be interpreted as either ideal or overly formal in the sense of the present application Do not.
또한, 첨부 도면을 참조하여 설명함에 있어, 도면 부호에 관계없이 동일한 구성 요소는 동일한 참조부호를 부여하고 이에 대한 중복되는 설명은 생략하기로 한다. 실시예를 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 실시예의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.In the following description of the present invention with reference to the accompanying drawings, the same components are denoted by the same reference numerals regardless of the reference numerals, and redundant explanations thereof will be omitted. In the following description of the embodiments, a detailed description of related arts will be omitted if it is determined that the gist of the embodiments may be unnecessarily blurred.
도 1은 일 실시예에 따른 분산 파일 공유 시스템의 구성을 나타낸 도면이다. 도 1을 참조하면, 일 실시예에 따른 분산 파일 공유 시스템(100)은 복수의 서버들(200, 200-1, 200-2) 및 복수의 서버들(200, 200-1, 200-2, ..)과 네트워크(50)를 통해 통신하는 복수의 고객 단말들(300, 300-1, 300-2, .. )을 포함한다. 복수의 서버들(200, 200-1, 200-2, ..)은 예를 들어, N개이고, 복수의 고객 단말들(300, 300-1, 300-2, .. )은 예를 들어, M 개일 수 있다. 네트워크(50)는 유, 무선 통신 네트워크를 포함할 수 있다. 1 is a block diagram of a distributed file sharing system according to an embodiment of the present invention. 1, a distributed
복수의 서버들(200, 200-1, 200-2, ..) 중 어느 하나의 서버인 서버(200)는 서버 인터페이스(210), 데이터베이스(220) 및 파일 공유 모듈(230)을 포함할 수 있다. 서버(200)의 구체적인 구성에 대하여는 도 2를 참조하여 설명한다. The
서버 인터페이스(210)는 서버(200)와 고객 단말들(300, 300-1, 300-2, .. ) 간의 통신을 통해 고객 단말들(300, 300-1, 300-2, .. )의 요청을 수신한다. 고객 단말들(300, 300-1, 300-2, .. )의 요청은 예를 들어, 파일 검색, 파일의 업로드 요청 및 파일의 다운로드 요청 등을 포함한다. The
서버 인터페이스(210)는 고객 단말들(300, 300-1, 300-2, .. )의 요청에 따른 처리를 위한 파일 복제 및 분배를 수행하는 이벤트 핸들러(도 2의 212 참조)를 포함한다. The
서버 인터페이스(210)는 파일의 인기도 및 파일에 대한 고객 단말들(300, 300-1, 300-2, .. )의 요청을 기초로, 복제할 파일의 복제 계수 및 복제할 파일을 분배할 적어도 하나의 서버를 선택할 수 있다. 서버 인터페이스(210)가 파일의 인기도를 산출하고, 복제할 파일을 분배할 적어도 하나의 서버를 결정하여 파일을 복제하는 방법은 도 3 내지 도 5를 참조하여 설명한다. The
데이터베이스(220)는 파일 검색을 위한 메타 데이터 및 고객 단말들(300, 300-1, 300-2, .. )의 요청에 대한 처리 결과인 로그 데이터를 저장 및 관리한다. 데이터베이스(220)는 예를 들어, 분산 기반 NoSQL 저장 시스템 또는 분산 기반 NoSQL 데이터베이스일 수 있다. NoSQL 데이터베이스는 단순 검색 및 추가 작업을 위한 매우 최적화된 키 값을 저장하는 공간으로, 레이턴시(latency)와 스루풋(throughput)과 관련하여 상당한 성능 이익을 내기 위한 것이다. NoSQL 데이터베이스는 빅 데이터(Big data)와 실시간 웹 애플리케이션의 상업적 이용에 널리 사용되며, SQL 계열 쿼리 언어를 사용할 수 있다는 점에서 "Not only SQL"로도 부를 수 있다. The
파일 공유 모듈(230)은 복수의 고객 단말들(300, 300-1, 300-2, .. ) 간에 공유될 파일을 저장할 수 있다. The
고객 단말들(300, 300-1, 300-2, .. ) 중 어느 하나의 고객 단말(300)은 고객 인터페이스(305)를 포함할 수 있다. 고객 인터페이스(305)는 복수의 서버들과의 통신을 수행하고, 고객의 요청을 생성할 수 있다. The
고객 단말들(300, 300-1, 300-2, .. )은 예를 들어, 스마트 폰, PDA 등과 같이 개인용 통신 단말, PC, 노트북일 수 있다. 고객 인터페이스(305)는 고객 단말(300)에서 구동하는 소프트웨어 프로그램일 수 있다. 고객 인터페이스(305)는 예를 들어, HTTP 프로토콜을 기반으로 복수의 서버들(200, 200-1, 200-2, ..)과 통신을 수행할 수 있다. The
도 2는 일 실시예에 따른 분산 파일 공유 시스템을 구성하는 어느 하나의 서버의 구성을 나타낸 도면이다. 도 2를 참조하면, 서버(200)를 구성하는 서버 인터페이스(210), 데이터베이스(220) 및 파일 공유 모듈(230)의 구성 및 동작이 도시된다. 2 is a diagram illustrating a configuration of any one of servers that constitute a distributed file sharing system according to an exemplary embodiment of the present invention. Referring to FIG. 2, the configuration and operation of the
서버 인터페이스(210)는 상태 업데이터(211), 이벤트 핸들러(212) 및 쿼리 처리자(213)를 포함할 수 있다. The
상태 업데이터(211)는 서버(200)의 디스크 용량 및 서버(200)의 상태 정보를 주기적으로 수집 및 갱신할 수 있다. The
이벤트 핸들러(212)는 고객 단말들의 요청에 대한 처리, 파일 복제 및 분배를 포함하는 이벤트를 처리할 수 있다. 이벤트 핸들러(212)는 예를 들어, 고객 단말에 의해 파일의 업로드가 요청된 경우, 업로드가 요청된 파일의 메타 데이터를 추출하고, 업로드가 요청된 파일의 메타 데이터가 파일 공유 모듈에 존재하는지 여부에 기초하여 데이터베이스에게 업로드가 요청된 파일의 메타 데이터를 전송할 수 있다. 이벤트 핸들러(212)가 고객 단말의 파일 업로드 요청을 처리하는 방법은 도 6을 참조하여 설명한다. The
또한, 고객 단말에 의해 파일의 업로드가 요청된 경우, 이벤트 핸들러(212)는 서버(200)에 업로드할 파일을 저장할 공간이 충분한지 여부에 기초하여, 서버(200)에 인접한 다른 서버를 검색하고, 업로드를 요청한 고객 단말에게 다른 서버에 대한 정보를 전송할 수 있다. 이벤트 핸들러(212)가 고객 단말의 파일 업로드 요청을 처리 할 수 없을 때의 동작은 도 7을 참조하여 설명한다. When the uploading of a file is requested by the client terminal, the
이벤트 핸들러(212)는 고객 단말에 의해 파일의 다운로드가 요청된 경우, 데이터베이스로부터 획득한, 다운로드할 파일의 메타 데이터에 기초하여 다운로드할 파일의 저장 위치를 파악하여 서버(200)에 다운로드할 파일이 존재하는지 여부를 검사할 수 있다. 이벤트 핸들러(212)가 고객 단말의 파일 다운로드 요청을 처리하는 방법은 도 8을 참조하여 설명한다. When the download of a file is requested by the customer terminal, the
이벤트 핸들러(212)는 로그 데이터를 수집하고, 수집된 로그 데이터를 기반으로 서버(200)에서 처리된 파일에 대한 고객 단말들의 총 요청 횟수를 산출할 수 있다. 이벤트 핸들러(212)는 총 요청 횟수에 기초하여 서버(200)에서 처리된 파일의 인기도를 측정하여 처리된 파일의 복제 계수를 산출할 수 있다. '파일의 복제 계수'는 해당 파일을 복제할 개수로 이해될 수 있다. The
이벤트 핸들러(212)는 서버(200)에서의 파일의 인기도의 비율 및 서버(200)가 파일을 복제하는 데에 소요되는 네트워크 비용을 산출할 수 있다. 이벤트 핸들러(212)는 파일의 인기도의 비율 및 네트워크 비용에 기초하여 서버(200)에 해당 파일을 복제할 것인지 여부를 결정할 수 있다. 일 실시예에 따른 분산 파일 공유 시스템이 파일을 복제하는 방법은 도 10을 참조하여 설명한다. The
쿼리 처리자(213)는 상태 업데이터(211)에 의해 수집된 정보를 기초로, 데이터베이스(220)에 대한 데이터 판독, 삽입 및 저장을 포함하는 쿼리를 처리할 수 있다. The
데이터베이스(220)는 클러스터 상태 저장소(221), 로그 저장소(222), 파일 데이터 저장소(223) 및 라우팅 정보 저장소(224) 중 적어도 하나를 포함할 수 있다. The
클러스터 상태 저장소(221)는 서버(200)의 클러스터 상태 및 서버(200)의 디스크 사용 용량을 포함하는 상태 정보를 저장한다. 클러스터 상태 저장소(221)는 전체적인 분산 파일 공유 시스템의 클러스터 상태를 저장할 수 있다.The
로그 저장소(222)는 서버(200)가 처리한 고객 단말들의 요청의 결과인 로그 데이터를 저장한다. 이때, 로그 데이터는 고객 단말들의 요청을 처리함에 따라 이벤트 핸들러(212)에 의해 생성된 것일 수 있다. The
파일 데이터 저장소(223)는 고객 단말들의 요청 시에 생성되는 데이터 및 파일 검색을 위한 데이터를 저장 및 관리한다. 파일 데이터 저장소(223)는 예를 들어, 파일명, 파일의 크기 및 파일의 저장 위치 등과 같은 파일의 검색을 위한 데이터를 저장 및 관리할 수 있다. The
라우팅 정보 저장소(224)는 서버(200)에서 나머지 다른 서버들(200-1, 200-2, ..)로의 데이터 이동 시간 및/또는 데이터 이동 속도를 측정한 결과를 저장한다. The routing information storage 224 stores results of measuring data movement time and / or data movement speed from the
데이터베이스(220)에 포함된 각 저장소들(221,222,223,224)은 특정 위치에 분산되어 저장될 수 있다. Each of the
도 3은 일 실시예에 따른 분산 파일 공유 시스템에서 파일을 복제하는 방법을 나타낸 흐름도이다. 도 3을 참조하면, 일 실시예에 따른 분산 파일 공유 시스템은 고객 단말들의 요청에 기초하여 복제할 파일의 인기도를 산출한다(310). 분산 파일 공유 시스템이 복제할 파일의 인기도를 산출하는 방법은 도 4를 참조하여 설명한다.3 is a flowchart illustrating a method of copying a file in a distributed file sharing system according to an exemplary embodiment. Referring to FIG. 3, a distributed file sharing system according to an exemplary embodiment calculates a popularity of a file to be cloned based on a request of customer terminals (310). A method for calculating the popularity of a file to be copied by the distributed file sharing system will be described with reference to FIG.
분산 파일 공유 시스템은 복제할 파일의 인기도 및 복제할 파일을 복제하는 데에 소요되는 서버의 네트워크 비용에 기초하여, 복제할 파일의 복제 계수 및 복수의 서버들 중 파일을 분배할 적어도 하나의 서버를 결정한다(320). 분산 파일 공유 시스템이 파일을 분배할 서버를 결정하는 방법은 도 5를 참조하여 설명한다. The distributed file sharing system is based on the replication cost of a file to be cloned and at least one server to distribute a file among a plurality of servers based on the popularity of the file to be cloned and the network cost of the server required to clone the file to be cloned (320). A method by which the distributed file sharing system determines a server to distribute a file will be described with reference to FIG.
서버는 복제 계수에 따라 단계(320)에서 결정된 적어도 하나의 서버로 파일을 복제한다(330).The server replicates 330 the file to at least one server determined in
도 4는 일 실시예에 따른 분산 파일 공유 시스템에서 복제할 파일의 인기도를 산출하는 방법을 나타낸 흐름도이다. 도 4를 참조하면, 일 실시예에 따른 분산 파일 공유 시스템은 각 서버의 이벤트 핸들러를 이용하여 각 서버의 데이터베이스로부터 고객 단말들의 요청에 대한 처리 결과인 로그 데이터를 수집할 수 있다(410). 4 is a flowchart illustrating a method of calculating a popularity of a file to be duplicated in a distributed file sharing system according to an exemplary embodiment. Referring to FIG. 4, the distributed file sharing system according to an exemplary embodiment may collect log data, which is a processing result of requests of client terminals, from a database of each server using an event handler of each server (410).
분산 파일 공유 시스템은 단계(410)에서 수집된 로그 데이터를 기초로, 분산 파일 공유 시스템에 포함된 복수의 서버들 중 어느 하나의 서버에서 처리된 파일에 대한 고객 단말들의 총 요청 횟수를 산출할 수 있다(420). 분산 파일 공유 시스템은 예를 들어, 후술하는 [수학식 1]을 이용하여 고객 단말들의 총 요청 횟수를 산출할 수 있다. Based on the log data collected in
분산 파일 공유 시스템은 단계(420)에서 산출된 총 요청 횟수를 이용하여 어느 하나의 서버에서 처리된 파일의 인기도를 산출할 수 있다(430). 분산 파일 공유 시스템은 예를 들어, 후술하는 [수학식 2]를 이용하여 어느 하나의 서버에서 처리된 파일의 인기도를 산출할 수 있다. The distributed file sharing system may calculate the popularity of the processed file in any one of the servers using the total number of requests calculated in
도 5는 일 실시예에 따른 분산 파일 공유 시스템에서 파일을 분배할 적어도 하나의 서버를 결정하는 방법을 나타낸 흐름도이다. 도 5를 참조하면, 일 실시예에 따른 분산 파일 공유 시스템은 복수의 서버들 중 적어도 하나의 서버에서의 파일의 인기도의 비율을 산출할 수 있다(510). 분산 파일 공유 시스템은 예를 들어, 후술하는 [수학식 5] 및 [수학식 6]을 이용하여 적어도 하나의 서버에서의 파일의 인기도의 비율을 산출할 수 있다. 5 is a flowchart illustrating a method for determining at least one server to distribute a file in a distributed file sharing system according to an exemplary embodiment of the present invention. Referring to FIG. 5, a distributed file sharing system according to an exemplary embodiment may calculate a ratio of a popularity of a file in at least one server among a plurality of servers (510). The distributed file sharing system can calculate the ratio of the popularity of the file on at least one server using, for example, Equation (5) and Equation (6) to be described later.
분산 파일 공유 시스템은 적어도 하나의 서버가 파일을 복제하는 데에 소요되는 네트워크 비용을 산출할 수 있다(520). The distributed file sharing system may calculate the network cost of at least one server to replicate the file (520).
분산 파일 공유 시스템은 단계(510)에서 산출한 파일의 인기도의 비율 및 단계(520)에서 산출한 네트워크 비용에 기초하여 적어도 하나의 서버를 파일을 분배할 서버로 결정할 수 있다(530). 분산 파일 공유 시스템은 예를 들어, 후술하는 [수학식 7]을 이용하여 파일을 분배할 서버를 결정할 수 있다. The distributed file sharing system may determine 530 the server to distribute the file to at least one server based on the ratio of the popularity of the file calculated in
도 6은 일 실시예에 따른 분산 파일 공유 시스템의 서버에서 고객 단말의 파일 업로드 요청을 처리하는 방법을 나타낸 흐름도이다. 고객 단말에 의해 발생한 업로드 요청은 서버, 보다 구체적으로 서버 인터페이스의 이벤트 핸들러에 의해 처리될 수 있다. 6 is a flowchart illustrating a method of processing a file upload request of a customer terminal in a server of a distributed file sharing system according to an exemplary embodiment. The upload request generated by the client terminal can be processed by the server, more specifically by the event handler of the server interface.
서버는 고객 단말과 통신 연결(610) 후, 고객 단말이 업로드를 요청한 파일의 메타 데이터를 추출할 수 있다(620).After the
서버는 퀴리 처리자를 이용하여 데이터베이스에, 고객 단말이 업로드를 요청한 파일과 동일한 메타 데이터가 존재하는지를 판단할 수 있다(630).The server can determine whether the same metadata as the file requested by the client terminal exists in the database using the query processor (630).
단계(630)의 판단 결과, 데이터베이스에 동일한 메타 데이터가 존재한다면, 서버는 동일한 파일이 있다고 간주하여 고객 단말에게 업로드할 파일의 확인을 요청하는 파일 확인 메시지를 전송할 수 있다(680). 파일 확인 메시지의 전송 후, 서버는 고객 단말과의 통신을 종료할 수 있다(670). If it is determined in
단계(630)의 판단 결과, 데이터베이스에 동일한 메타 데이터가 존재하지 않는다면, 서버는 단계(620)에서 추출된 메타 데이터를 퀴리 처리자에 의해서 데이터베이스로 전송할 수 있다(640).If it is determined in
서버는 고객 단말로부터 공유할 파일을 전송받을 수 있다(650).The server can receive a file to be shared from the client terminal (650).
서버는 단계(650)에서 전송된 파일을 서버의 파일 공유 모듈에 저장(660)한 후, 고객 단말과의 통신을 종료할 수 있다(670). The server may store the file transmitted in
도 7은 일 실시예에 따른 분산 파일 공유 시스템의 서버에서 파일 업로드 요청을 처리 할 수 없는 경우의 동작을 나타낸 흐름도이다. 도 7을 참조하면, 일 실시예에 따른 분산 파일 공유 시스템은 앞선 도 6의 단계(630)에서 고객 단말이 업로드를 요청한 파일과 동일한 메타 데이터가 존재한다고 판단되면, 현재 접속한 서버 i 에 업로드할 파일을 저장할 공간이 충분한 지 여부를 판단할 수 있다(710). 7 is a flowchart illustrating an operation when a file upload request can not be processed in a server of a distributed file sharing system according to an exemplary embodiment. 7, a distributed file sharing according to one embodiment of the system if it is determined that the previous file with the same metadata, the client terminal at
단계(710)에서 현재 접속한 서버 i 에 업로드할 파일을 저장할 공간이 충분하다고 판단되면, 분산 파일 공유 시스템은 서버 i 와 고객 단말 간에 도 6의 단계(640) 내지 단계(670)의 파일 업로드 과정을 수행하도록 할 수 있다. 분산 파일 공유 시스템은 예를 들어, 서버의 디스크 용량에 대한 정보를 기초로 현재 접속한 서버 i 에 업로드할 파일을 저장할 공간이 충분한 지 여부를 판단할 수 있다. If it is determined in
단계(710)에서 현재 접속한 서버 i 에 업로드할 파일을 저장할 공간이 충분하지 않다고 판단되면, 분산 파일 공유 시스템은 각 서버의 라우팅 정보 저장소에 저장된 정보에 기초하여 현재 접속한 서버 i 에 가장 가까운 서버 j 를 검색할 수 있다(720).If it is determined in
분산 파일 공유 시스템은 서버 j의 정보를 포함하는 메시지를 고객 단말에게 전송할 수 있다(730).The distributed file sharing system may transmit a message including the information of the server j to the client terminal (730).
분산 파일 공유 시스템은 고객 단말과 현재 접속 중인 서버 i 와의 통신을 종료하고(740), 고객 단말과 새로이 검색된 서버 j 간의 통신을 연결할 수 있다. 고객 단말과 통신 연결된 서버 j 는 도 6의 단계(640) 내지 단계(670)의 파일 업로드 과정을 수행할 수 있다. The distributed file sharing system terminates the communication (740) between the client terminal and the currently connected server i, and can connect the communication between the client terminal and the newly searched server j . The server j, which is connected to the client terminal, can perform the file uploading process of
도 8은 일 실시예에 따른 분산 파일 공유 시스템에서 고객 단말의 파일 다운로드 요청을 처리하는 방법을 나타낸 흐름도이다. 고객 단말에 의해 발생한 다운로드 요청 또한 서버, 보다 구체적으로 서버 인터페이스의 이벤트 핸들러에 의해 수행될 수 있다. 8 is a flowchart illustrating a method of processing a file download request of a customer terminal in a distributed file sharing system according to an exemplary embodiment. The download request generated by the client terminal may also be performed by a server, more specifically an event handler of the server interface.
도 8을 참조하면, 서버는 고객 단말과 통신 연결을 수행하고(810), 퀴리 처리자를 이용하여 데이터베이스로부터 다운로드할 파일의 메타 데이터를 추출할 수 있다(820). Referring to FIG. 8, the server performs a communication connection with a customer terminal (810), and extracts metadata of a file to be downloaded from the database using the query processor (820).
서버는 단계(820)에서 추출한 메타 데이터를 기초로, 다운로드할 파일이 저장되어 있는 위치를 파악하여 현재 서버의 파일 공유 모듈에 다운로드할 파일이 존재하는지를 판단할 수 있다(830). In
단계(830)의 판단 결과, 파일 공유 모듈에 다운로드할 파일이 존재하면, 서버는 해당 파일을 바로 고객 단말에게 전송하고(840), 서버와 고객 단말 간의 통신을 종료할 수 있다(850). If it is determined in
단계(830)의 판단 결과, 파일 공유 모듈에 다운로드할 파일이 존재하지 않는다면, 서버는 고객 단말에게 다운로드할 파일의 위치를 전송할 수 있다(860). 이때, 서버는 다운로드할 파일의 위치를 알려주는 메시지를 고객 단말에게 전송할 수 있다. If it is determined in
다운로드할 파일의 위치를 수신한 고객 단말은 다운로드 할 파일을 소유하고 있는 다른 서버와 새로이 통신 연결을 수립하고(870), 다른 서버로부터 파일을 전송받을 수 있다(880). Upon receiving the location of the file to be downloaded, the customer terminal establishes a new communication connection with another server that owns the file to be downloaded (870), and receives the file from another server (880).
파일을 전송받은 후, 고객 단말은 다른 서버와 고객 단말 간의 통신을 종료하고(890), 고객 단말과 초기에 접속한 서버의 통신 또한 종료할 수 있다(850). After receiving the file, the customer terminal terminates the communication between the other server and the customer terminal (890), and can also terminate the communication with the server that initially connected to the customer terminal (850).
상술한 바와 같이, 고객 단말은 업로드와 다운로드와 같이 크게 2가지의 요청을 생성하여 서버에게 전송하며, 이 과정에서 HTTP 프로토콜을 사용하여 서버와 통신할 수 있다. HTTP 프로토콜은 사용하기에 쉽고, 대용량의 파일을 전송할 때에 속도가 빠른 장점을 가진다. As described above, the customer terminal generates two types of requests, such as upload and download, and transmits them to the server. In this process, the client terminal can communicate with the server using the HTTP protocol. The HTTP protocol is easy to use and has the advantage of being fast when transferring large files.
일 실시예에 따른 분산 파일 공유 시스템에서 서버들이 저장하고 있는 파일의 인기도에 따라서 해당 파일을 저장하는 서버들에 접속하는 고객 단말의 요청의 수가 달라질 수 있다. 높은 인기도를 가지고 있는 서버는 고객 단말 요청이 몰리는 현상으로 인한 과도한 네트워크 부하가 발생할 수 있다. 또한, 분산 환경을 기반으로 동작하는 시스템들은 일반적으로 데이터의 저장 위치 및 데이터의 요청 위치에 따라 네트워크를 통한 데이터의 이동량의 적고 많음이 결정되고, 이에 따라 시스템의 성능 또한 결정될 수 있다. In the distributed file sharing system according to an exemplary embodiment, the number of requests from the client terminals connected to the servers storing the files may vary depending on the popularity of the files stored in the servers. A server with a high popularity may cause an excessive network load due to a request from a client terminal. Also, in systems operating on a distributed environment, it is generally determined that the amount of movement of data through the network is small and high depending on a storage location of data and a location of data, and thus the performance of the system can be determined.
따라서, 일 실시예에서는 네트워크를 통한 데이터의 이동을 최소화시키는 한편 네트워크의 부하를 줄일 수 있는 파일 복제 방법(Replication Scheme)을 이용함으로써 분산 파일 공유 시스템의 성능을 향상시킬 수 있다. 일 실시예에 따른 서버는 해당 파일의 인기도와 각 서버들이 처리했던 해당 파일의 고객 단말의 요청 분포 데이터를 기반으로 파일의 복제 계수(복제될 파일의 개수) 및 파일을 복제할 장소(즉, 복제된 파일을 분배할 서버)를 결정함으로써 선택함으로써 네트워크를 통한 데이터의 이동을 최소화시키는 한편 네트워크의 부하를 줄일 수 있다. Accordingly, in one embodiment, the performance of the distributed file sharing system can be improved by using a file replication method that minimizes the movement of data through the network and reduces the load on the network. The server according to an exemplary embodiment calculates a replication count (the number of files to be duplicated) of a file and a place to replicate the file (that is, a duplication of duplication) based on the popularity of the file and the request distribution data of the client terminal of the corresponding file processed by each server A server to distribute a file to be distributed), thereby reducing the load on the network while minimizing the movement of data over the network.
이하에서는 도 9 내지 도 10을 참조하여 분산 파일 공유 시스템의 서버에 적용된 파일 복제 방법을 설명한다. 설명에 앞서, 아래의 파일 복제 방법(Replication Scheme)에서 이용되는 심볼의 의미는 아래의 도 9를 참고하기로 한다. Hereinafter, a method of copying a file applied to a server of a distributed file sharing system will be described with reference to FIGS. 9 to 10. FIG. Prior to the description, the meaning of symbols used in the following file replication method will be described with reference to FIG. 9 below.
도 10은 일 실시예에 따른 분산 파일 공유 시스템에서의 파일 복제 방법을 나타낸 흐름도이다. 도 10을 참조하면, 분산 파일 공유 시스템이 파일 j를 복제하는 과정이 도시되다. 이하의 파일 복제 과정은 서버의 서버 인터페이스에 포함된 이벤트 핸들러에 의해 수행될 수 있다. 10 is a flowchart illustrating a file copying method in a distributed file sharing system according to an embodiment. Referring to FIG. 10, a process of the distributed file sharing system replicating the file j is shown. The following file duplication process can be performed by the event handler included in the server interface of the server.
분산 파일 공유 시스템은 파일 j의 인기도를 계산하기 위한 데이터를 로딩할 수 있다(1005). 이때, 각 서버의 이벤트 핸들러는 해당 서버의 퀴리 처리자를 사용하여 파일 j의 인기도를 분석하기 위한 데이터를 수집할 수 있다. 파일 j의 인기도를 분석하기 위한 데이터는 예를 들어, 해당 서버가 처리한 고객 단말들의 요청의 결과인 로그 데이터를 저장하는 로그 저장소에 저장된 데이터일 수 있다. 파일 j의 인기도를 분석하기 위한 데이터는 예를 들어, 파일이 사용된 노드와 해당 노드에서 해당 파일이 사용된 횟수 등을 포함할 수 있다. The distributed file sharing system may load data for calculating the popularity of file j (1005). At this time, the event handler of each server can collect data for analyzing the popularity of the file j using the query processor of the server. The data for analyzing the popularity of the file j may be, for example, data stored in a log storage for storing log data that is a result of a request of customer terminals processed by the server. The data for analyzing the popularity of the file j may include, for example, the node where the file is used and the number of times the file was used in the node.
분산 파일 공유 시스템은 단계(1005)에서 로딩한 데이터를 기반으로 분산 파일 공유 시스템 전체에서 복제할 파일 j의 인기도를 계산할 수 있다(1010). 단계(1010)에서, 분산 파일 공유 시스템은 아래의 [수학식 1]을 이용하여 서버들 각각에서 처리된 파일 j 에 대한 고객 단말들의 총 요청 횟수(R)를 산출할 수 있다. The distributed file sharing system may calculate 1010 the popularity of the file j to be replicated throughout the distributed file sharing system based on the data loaded in
분산 파일 공유 시스템은 [수학식 2]를 이용하여 각 서버에서의 파일 j 의 인기도(FPj)를 측정할 수 있다. The distributed file sharing system can measure the popularity (FPj) of the file j in each server using Equation (2).
분산 파일 공유 시스템은 단계(1010)에서 계산된 각 서버에서의 파일 j의 인기도(FPj)를 기반으로 분산 파일 공유에 복제될 파일의 수, 다시 말해 파일의 복제 계수를 결정할 수 있다(1015). 분산 파일 공유 시스템은 예를 들어, 아래의 [수학식 3]을 이용하여 파일 j의 복제 계수( )를 산출할 수 있다. The distributed file sharing system may determine 1015 the number of files to be replicated in the distributed file share, i . E., The replica count of the file, based on the popularity (FPj) of the file j at each server calculated at
[수학식 3]에서는 최대 복제될 파일의 수를 의미하고 은 최소 복제될 파일의 수를 의미한다. , 는 파일 공유 서비스를 구동하기 위한 분산 파일 공유 시스템을 운영하는 관리자(또는 사용자)가 직접 적절하게 설정할 수 있다. In Equation (3) Means the maximum number of files to be replicated Means the minimum number of files to be replicated. , (Or a user) who operates the distributed file sharing system for driving the file sharing service can directly set it appropriately.
분산 파일 공유 시스템은 [수학식 3]에 의해 계산된 파일 j의 복제 계수( )를 가까운 정수로 반올림하여 정수화할 수 있다(1020).The distributed file sharing system calculates the replication coefficient of the file j calculated by Equation (3) ) May be rounded to a nearest integer to perform integer conversion (1020).
분산 파일 공유 시스템은 전체 시스템 내에서 존재하는 파일 j의 개수()를 파악하여 와 같이 정수화된 복제 계수 와 비교할 수 있다(1025). 여기서, Xi,j는 0 또는 1의 이진 값을 가질 수 있다. Xi,j는 파일 j가 서버 i에 저장되어 있는 경우에 '1'을, 그렇지 않는 경우에 '0'을 가질 수 있다. Xi,j = 1 인 경우는 해당 노드 i로 파일 j(혹은 데이터 j) 요청 시에 추가적인 네트워크 비용이 필요 없다는 의미로 이해될 수 있다. Xi,j = 0인 경우에는 노드 i에 특정 파일 j가 요청될 시 추가적인 네트워크 비용이 소모된다는 의미로 이해될 수 있다. The distributed file-sharing system determines the number of file js existing in the entire system ) Lt; RTI ID = 0.0 > (1025). ≪ / RTI > Here, X i, j may have a binary value of 0 or 1. X i, j may have a value of '1' if file j is stored in server i, and '0' otherwise. In the case of X i, j = 1, it can be understood that no additional network cost is required when a file j (or data j) is requested to the corresponding node i. If X i, j = 0, it means that additional network cost is consumed when a specific file j is requested to node i.
단계(1025)에서, 전체 시스템(분산 파일 공유 시스템)이 정수화된 복제 계수 보다 많은 수의 파일을 유지하고 있는 경우, 분산 파일 공유 시스템은 파일 복제를 수행하지 않고 동작을 종료할 수 있다. In
단계(1025)에서, 전체 시스템이 정수화된 복제 계수 보다 작은 수의 파일을 유지하고 있는 경우, 분산 파일 공유 시스템은 그 차이만큼 파일 복제를 수행하기 위해 특정 서버에서 파일의 인기도를 계산하기 위한 데이터를 로딩할 수 있다(1030). 단계(1030)에서 로딩되는 데이터는 단계(1005)에서 로딩된 데이터를 이용하여 계산된 파일 복제 계수(nj) 등을 포함할 수 있다. 분산 파일 공유 시스템은 파일 복제 계수(nj)를 로딩하여 몇 개의 파일을 복제해야 하는지를 결정할 수 있다. In
분산 파일 공유 시스템은 단계(1030)에서 로딩한 데이터를 기반으로 특정 서버 i에서의 특정 파일 j의 인기도를 계산할 수 있다(1035). 분산 파일 공유 시스템은 예를 들어, 아래의 [수학식 4]를 이용하여 특정 서버 i에서의 특정 파일 j의 인기도()를 계산할 수 있다.The distributed file sharing system may calculate 1035 the popularity of a particular file j at a particular server i based on the data loaded at
분산 파일 공유 시스템은 단계(1035)에서 계산 결과를 기초로, 특정 서버 i에서 특정 파일 j의 인기도 집합에서의 최소 값()을 구할 수 있다(1040). 분산 파일 공유 시스템은 예를 들어, 아래의 [수학식 5]를 이용하여 인기도 집합에서의 최소 값()을 구할 수 있다. The distributed file sharing system determines, based on the computation results in
분산 파일 공유 시스템은 단계(1040)에서 구한 인기도 집합에서의 최소 값()을 이용하여 분산 파일 공유 시스템을 구성하는 각 서버에서 특정 파일 j을 처리하는 인기도의 비율()을 산출할 수 있다(1045). 분산 파일 공유 시스템은 예를 들어, 아래의 [수학식 6]을 이용하여 각 서버에서 특정 파일 j을 처리하는 인기도의 비율()을 산출할 수 있다. The distributed file sharing system determines the minimum value in the popularity set (1040) ) Is used to determine the ratio of the popularity of processing a specific file j in each server constituting the distributed file sharing system (1045). For example, the distributed file sharing system calculates the ratio of the popularity of processing a specific file j in each server using Equation (6) below ) Can be calculated.
분산 파일 공유 시스템은 복제될 파일 j가 저장되는 서버들의 집합을 Vj 라고 정의하고, 단계(1045)에서 얻어진 인기도의 비율과 해당 파일을 처리하기 위해 사용되는 네트워크 비용(NC)에 기초하여 최소 비용을 갖는 서버를 최종적으로 복제될 파일을 분배(저장)할 서버로 결정할 수 있다(1050). Vj 는 Xi,j = 0 인 경우에 파일 j가 저장될 서버들의 집합으로 이해될 수 있다. A distributed file sharing system is a set of servers on which file j to be copied is stored V j And determines a server having a minimum cost based on the ratio of the popularity obtained in
네트워크 비용(NC)는 예를 들어, 구글의 클라우드 플랫폼을 이용하기 위한 네트워크 비용의 정의를 따라 매달 1GB의 네트워크를 이용하기 위해 약 $0.12의 비용이 소모되는 것으로 계산할 수 있다. 네트워크 비용은 구글 클라우드 플랫폼에서 Xi,j = 0인 경우의 네트워크 비용으로 이해될 수 있다. The network cost (NC) can be calculated, for example, to cost about $ 0.12 per month to utilize a network of 1 GB per month, according to the definition of network cost to utilize Google's cloud platform. The network cost can be understood as the network cost in case of X i, j = 0 in the Google cloud platform.
단계(1050)에서, 예를 들어, 아래의 [수학식 7]을 이용하여 최소 비용을 갖는 서버()를 결정할 수 있다. In
[수학식 7]에 기재된 V는 특정 파일을 저장하고 있지 않는 서버의 집합을 의미하며, 는 각 서버의 한계 용량을 나타내고, bj는 파일 j의 사이즈를 나타낸다. V in Equation (7) means a set of servers that do not store a specific file, Represents the limit capacity of each server, and b j represents the size of the file j.
분산 파일 공유 시스템은 단계(1050)에서 [수학식 7]을 이용하여 을 만족할 때까지 계산을 수행하고, 최종적으로 결정된 서버로 파일 j를 복제할 수 있다. 이때, 분산 파일 공유 시스템은 각 서버의 한계 용량인 를 확인한 후, 파일 j의 복제가 수행되도록 할 수 있다. The distributed file sharing system uses Equation (7) in
도 11을 일 실시예에 따른 분산 파일 공유 시스템의 동작을 설명하기 위한 도면이다. 도 11을 참조하면, 일 실시예에 따른 분산 파일 공유 시스템을 구성하는 서버의 개수 |M| = 4이고, 서버 M4에 저장되어 있는 복제될 파일은 F1라고 가정하자. 11 is a diagram for explaining the operation of the distributed file sharing system according to an embodiment. 11, the number of servers constituting the distributed file sharing system according to an exemplary embodiment | M | = 4, and the file to be copied stored in the server M 4 is F 1 .
이때, 복제될 파일 F1의 인기도(FP1)를 0.2이고, 사용자가 미리 설정한 최대 복제될 파일의 수(C_max) = 4, 및 최소 복제될 파일의 수(C_min) = 2라고 하면, F1의 파일의 복제 계수(n1)는 전술한 [수학식 3]에 의해 다음과 같이 산출될 수 있다. Assuming that the popularity (FP 1 ) of the file F 1 to be copied is 0.2, the maximum number of files to be copied (C_max) = 4, and the minimum number of files to be copied (C_min) = 2, The replication coefficient n 1 of the file of 1 can be calculated by the above-described equation (3) as follows.
n1 =( C_max - C_min)* FP1 + C_min = (4-2)* 0.2 + 2= 2.4n 1 = (C_max - C_min) * FP 1 + C_min = (4-2) * 0.2 + 2 = 2.4
분산 파일 공유 시스템은 산출된 복제 계수 2.4를 반올림하여 자연수 2로 만든 후 2를 복제 계수로 선정할 수 있다. In the distributed file sharing system, the calculated replication factor of 2.4 is rounded up to a natural number of 2, and then 2 can be selected as a replication factor.
이후, 분산 파일 공유 시스템은 각 서버에서 F1을 위해 처리한 요청(Request)을 기반으로 각 서버마다의 F1에 대한 인기도 MP i,1를 계산할 수 있다. Then, the distributed file sharing system can calculate the popularity MP i, 1 for F 1 for each server based on the request processed for F 1 in each server.
분산 파일 공유 시스템은 각 서버마다의 F1에 대한 인기도 i,1를 기반으로 최소값(Z1)을 선정하여 가중치(ai, 1)를 계산할 수 있다. 이때, F1을 저장하고 있지 않는 서버들의 집합 V={M1, M2, M3}와 같이 나타낼 수 있다. V에 속한 서버들(M1, M2, M3)은 Xi,1 = 0(다시 말해, X1,1 = 0, X2,1 = 0, X3,1 = 0)으로 설정하고, V에 속하지 않은 서버 M4는 X4,1 = 1로 설정할 수 있다. The distributed file-sharing system uses the popularity of F 1 for each server The weight (a i, 1 ) can be calculated by selecting the minimum value (Z 1 ) based on i and 1 . At this time, the set of servers that do not store F 1 can be expressed as V = {M 1 , M 2 , M 3 }. The servers (M 1 , M 2 , M 3 ) belonging to V are X i , 1 = 0 (in other words, X 1,1 = 0, X 2,1 = 0, X 3,1 = 0), and the server M 4 not belonging to V can be set to X 4 , 1 = 1.
분산 파일 공유 시스템은 Xi,1 = 0로 설정된 서버들, 다시 말해 V에 속한 서버들(M1, M2, M3) 각각에서의 가중치(ai, 1)와 네트워크 비용(NC)을 곱한 결과에 기초하여 파일 F1을 복제할 서버의 위치를 의미하는 V1*를 선정할 수 있다. The distributed file sharing system uses X i , 1 = The server is set to 0, the weights (a i, 1) and the file F 1 on the basis of the result of multiplying the network cost (NC) in the respective other words, the server belongs to V (M 1, M 2, M 3) V 1 *, which indicates the location of the server to be replicated, can be selected.
이상에서 설명된 실시예들은 하드웨어 구성요소, 소프트웨어 구성요소, 및/또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 예를 들어, 실시예들에서 설명된 장치, 방법 및 구성요소는, 예를 들어, 프로세서, 콘트롤러, ALU(arithmetic logic unit), 디지털 신호 프로세서(digital signal processor), 마이크로컴퓨터, FPGA(field programmable gate array), PLU(programmable logic unit), 마이크로프로세서, 또는 명령(instruction)을 실행하고 응답할 수 있는 다른 어떠한 장치와 같이, 하나 이상의 범용 컴퓨터 또는 특수 목적 컴퓨터를 이용하여 구현될 수 있다. 처리 장치는 운영 체제(OS) 및 상기 운영 체제 상에서 수행되는 하나 이상의 소프트웨어 애플리케이션을 수행할 수 있다. 또한, 처리 장치는 소프트웨어의 실행에 응답하여, 데이터를 접근, 저장, 조작, 처리 및 생성할 수도 있다. 이해의 편의를 위하여, 처리 장치는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 처리 장치가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 처리 장치는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.The embodiments described above may be implemented in hardware components, software components, and / or a combination of hardware components and software components. For example, the devices, methods, and components described in the embodiments may be implemented within a computer system, such as, for example, a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, such as an array, a programmable logic unit (PLU), a microprocessor, or any other device capable of executing and responding to instructions. The processing device may execute an operating system (OS) and one or more software applications running on the operating system. The processing device may also access, store, manipulate, process, and generate data in response to execution of the software. For ease of understanding, the processing apparatus may be described as being used singly, but those skilled in the art will recognize that the processing apparatus may have a plurality of processing elements and / As shown in FIG. For example, the processing unit may comprise a plurality of processors or one processor and one controller. Other processing configurations are also possible, such as a parallel processor.
소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 가상 장치(virtual equipment), 컴퓨터 저장 매체 또는 장치, 또는 전송되는 신호 파(signal wave)에 영구적으로, 또는 일시적으로 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.The software may include a computer program, code, instructions, or a combination of one or more of the foregoing, and may be configured to configure the processing device to operate as desired or to process it collectively or collectively Device can be commanded. The software and / or data may be in the form of any type of machine, component, physical device, virtual equipment, computer storage media, or device , Or may be permanently or temporarily embodied in a transmitted signal wave. The software may be distributed over a networked computer system and stored or executed in a distributed manner. The software and data may be stored on one or more computer readable recording media.
실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 실시예를 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 상기된 하드웨어 장치는 실시예의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.The method according to an embodiment may be implemented in the form of a program command 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, and the like, alone or in combination. The program instructions to be recorded on the medium may be those specially designed and configured for the embodiments or may be available to those skilled in the art of computer software. Examples of computer-readable media include magnetic media such as hard disks, floppy disks and magnetic tape; optical media such as CD-ROMs and DVDs; magnetic media such as floppy disks; Magneto-optical media, and hardware devices specifically configured to store and execute program instructions such as ROM, RAM, flash memory, and the like. Examples of program instructions include machine language code such as those produced by a compiler, as well as high-level language code that can be executed by a computer using an interpreter or the like. The hardware devices described above may be configured to operate as one or more software modules to perform the operations of the embodiments, and vice versa.
이상과 같이 실시예들이 비록 한정된 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기를 기초로 다양한 기술적 수정 및 변형을 적용할 수 있다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.Although the embodiments have been described with reference to the drawings, various technical modifications and variations may be applied to those skilled in the art. For example, it is to be understood that the techniques described may be performed in a different order than the described methods, and / or that components of the described systems, structures, devices, circuits, Lt; / RTI > or equivalents, even if it is replaced or replaced.
50: 네트워크
100: 분산 파일 공유 시스템
200: 서버
210: 서버 인터페이스
220: 데이터베이스
230: 파일 공유 모듈
300: 고객 단말
305: 고객 인터페이스50: Network
100: Distributed File Sharing System
200: Server
210: Server Interface
220: Database
230: File Sharing Module
300: Customer terminal
305: Customer interface
Claims (10)
상기 복수의 서버들 중 어느 하나의 서버는
상기 어느 하나의 서버와 상기 복수의 고객 단말들 간의 통신을 통해 파일 검색, 파일의 업로드 요청 및 파일의 다운로드 요청을 포함하는 상기 고객 단말들의 요청을 수신하고, 상기 고객 단말들의 요청에 따른 처리를 위한 파일 복제 및 분배를 수행하는 이벤트 핸들러를 포함하는 서버 인터페이스; 및
상기 파일 검색을 위한 메타 데이터 및 상기 고객 단말들의 요청에 대한 처리 결과인 로그 데이터를 저장 및 관리하는 데이터베이스
을 포함하는, 분산 파일 공유 시스템.A distributed file sharing system including a plurality of servers and a plurality of client terminals communicating with the plurality of servers,
One of the plurality of servers
Receiving a request of the customer terminals including a file search, a file upload request, and a file download request through communication between any one of the servers and the plurality of customer terminals, A server interface including an event handler for performing file replication and distribution; And
A database for storing and managing the metadata for the file search and the log data which is a processing result of the request of the customer terminals
A distributed file sharing system.
상기 서버 인터페이스는
파일의 인기도 및 상기 파일에 대한 고객 단말들의 요청을 기초로, 복제할 파일의 복제 계수 및 상기 복제할 파일을 분배할 적어도 하나의 서버를 선택하는, 분산 파일 공유 시스템.The method according to claim 1,
The server interface
And selects at least one server to distribute the replica coefficient of the file to be replicated and the file to be replicated, based on the popularity of the file and the request of the customer terminals for the file.
상기 이벤트 핸들러는
상기 고객 단말들의 요청에 대한 처리, 상기 파일 복제 및 분배를 포함하는 이벤트를 처리하고,
상기 서버 인터페이스는
상기 어느 하나의 서버의 디스크 용량 및 상기 어느 하나의 서버의 상태 정보를 주기적으로 수집 및 갱신하는 상태 업데이터; 및
상기 상태 업데이터에 의해 수집된 정보를 기초로, 상기 데이터베이스에 대한 데이터 판독, 삽입 및 저장을 포함하는 쿼리를 처리하는 쿼리 처리자
중 적어도 하나를 더 포함하는, 분산 파일 공유 시스템.The method according to claim 1,
The event handler
Processing the request of the customer terminals, processing the event including the file copying and distribution,
The server interface
A status updater that periodically collects and updates disk capacity of any one of the servers and status information of any one of the servers; And
A query processor for processing a query that includes reading, inserting, and storing data for the database based on the information collected by the state updater
The distributed file sharing system further comprising:
상기 고객 단말에 의해 파일의 업로드가 요청된 경우,
상기 이벤트 핸들러는
상기 어느 하나의 서버에 업로드할 파일을 저장할 공간이 충분한지 여부에 기초하여, 상기 어느 하나의 서버에 인접한 다른 서버를 검색하고, 상기 다른 서버에 대한 정보를 상기 업로드를 요청한 고객 단말에게 전송하는, 분산 파일 공유 시스템.The method according to claim 1,
When a file upload is requested by the customer terminal,
The event handler
And searching for another server adjacent to the one server based on whether there is sufficient space for storing the file to be uploaded to the one server and transmitting the information about the other server to the client terminal requesting the upload, Distributed File Sharing System.
상기 이벤트 핸들러는
상기 로그 데이터를 수집하고, 상기 수집된 로그 데이터를 기반으로 상기 어느 하나의 서버에서 처리된 파일에 대한 고객 단말들의 총 요청 횟수를 산출하고, 상기 총 요청 횟수에 기초하여 상기 어느 하나의 서버에서 처리된 파일의 인기도를 측정하며, 상기 파일의 인기도에 기초하여 상기 처리된 파일의 복제 계수를 산출하는, 분산 파일 공유 시스템.The method according to claim 1,
The event handler
The method according to claim 1, further comprising: collecting the log data; calculating a total number of requests of the client terminals for a file processed by the one server based on the collected log data; The popularity of the file, and calculates the replication coefficient of the processed file based on the popularity of the file.
상기 이벤트 핸들러는
상기 어느 하나의 서버에서의 상기 파일의 인기도의 비율 및 상기 어느 하나의 서버가 상기 파일을 복제하는 데에 소요되는 네트워크 비용을 산출하고, 상기 파일의 인기도의 비율 및 상기 네트워크 비용에 기초하여 상기 어느 하나의 서버에 상기 파일을 복제할 것인지 여부를 결정하는, 분산 파일 공유 시스템.The method according to claim 1,
The event handler
A ratio of the popularity of the file in any one of the servers and a network cost required for one of the servers to replicate the file is calculated, and the ratio of the popularity of the file and the network cost A distributed file sharing system that determines whether to replicate the file to a single server.
상기 데이터베이스는
상기 고객 단말들의 요청 시에 생성되는 데이터 및 상기 파일 검색을 위한 데이터를 저장 및 관리하는 파일 데이터 저장소;
상기 어느 하나의 서버가 처리한 고객 단말들의 요청의 결과인 로그 데이터를 저장하는 로그 저장소;
상기 어느 하나의 서버에서 나머지 다른 서버들로의 데이터 이동 시간을 측정한 결과를 저장하는 라우팅 정보 저장소; 및
상기 어느 하나의 서버의 클러스터 상태 및 상기 어느 하나의 서버의 디스크 사용 용량을 포함하는 상태 정보를 저장하는 클러스터 상태 저장소
중 적어도 하나를 포함하는, 분산 파일 공유 시스템.The method according to claim 1,
The database
A file data storage for storing and managing data generated upon request of the customer terminals and data for searching for the file;
A log storage for storing log data which is a result of a request of the client terminals processed by any one of the servers;
A routing information storage for storing a result of measuring a data movement time from one of the servers to the other servers; And
A cluster state storage for storing state information including a cluster state of any one of the servers and a disk usage capacity of any one of the servers,
The distributed file sharing system.
상기 고객 단말들의 요청에 기초하여 복제할 파일의 인기도를 산출하는 단계;
상기 복제할 파일의 인기도 및 상기 복제할 파일을 복제하는 데에 소요되는 서버의 네트워크 비용에 기초하여, 상기 복제할 파일의 복제 계수 및 상기 복수의 서버들 중 상기 파일을 분배할 적어도 하나의 서버를 결정하는 단계; 및
상기 복제 계수에 따라 상기 결정된 적어도 하나의 서버로 상기 파일을 복제하는 단계
를 포함하는, 분산 파일 공유 시스템에서 파일을 복제하는 방법.A method for replicating a file in a distributed file sharing system including a plurality of servers and a plurality of client terminals communicating with the plurality of servers,
Calculating a popularity of a file to be cloned based on a request of the customer terminals;
A replication coefficient of the file to be duplicated and at least one server for distributing the file among the plurality of servers based on the popularity of the file to be duplicated and the network cost of the server for duplicating the file to be duplicated Determining; And
Replicating the file to the determined at least one server according to the replication factor
A method for replicating a file in a distributed file sharing system.
상기 파일을 분배할 적어도 하나의 서버를 결정하는 단계는
상기 복수의 서버들 중 상기 적어도 하나의 서버에서의 상기 파일의 인기도의 비율을 산출하는 단계;
상기 적어도 하나의 서버가 상기 파일을 복제하는 데에 소요되는 네트워크 비용을 산출하는 단계; 및
상기 파일의 인기도의 비율 및 상기 네트워크 비용에 기초하여 상기 적어도 하나의 서버를 상기 파일을 분배할 서버로 결정하는 단계
를 포함하는, 분산 파일 공유 시스템에서 파일을 복제하는 방법.9. The method of claim 8,
The step of determining at least one server to distribute the file
Calculating a ratio of the popularity of the file at the at least one server among the plurality of servers;
Calculating a network cost for the at least one server to replicate the file; And
Determining the at least one server as a server to distribute the file based on the ratio of the popularity of the file and the network cost
A method for replicating a file in a distributed file sharing system.
상기 복제할 파일의 인기도를 산출하는 단계는
상기 고객 단말들의 요청에 대한 처리 결과인 로그 데이터를 수집하는 단계;
상기 수집된 로그 데이터를 기초로, 상기 복수의 서버들 중 어느 하나의 서버에서 처리된 상기 파일에 대한 고객 단말들의 총 요청 횟수를 산출하는 단계; 및
상기 총 요청 횟수를 이용하여 상기 어느 하나의 서버에서 처리된 상기 파일의 인기도를 산출하는 단계
를 포함하는, 분산 파일 공유 시스템에서 파일을 복제하는 방법.9. The method of claim 8,
The step of calculating the popularity of the file to be duplicated
Collecting log data which is a processing result of a request of the customer terminals;
Calculating a total number of requests of the client terminals for the file processed by any one of the plurality of servers based on the collected log data; And
Calculating the popularity of the file processed by any one of the servers using the total number of requests
A method for replicating a file in a distributed file sharing system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020160156785A KR101948391B1 (en) | 2016-11-23 | 2016-11-23 | Distributed file sharing system and method of duplicating file in distributed file sharing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020160156785A KR101948391B1 (en) | 2016-11-23 | 2016-11-23 | Distributed file sharing system and method of duplicating file in distributed file sharing system |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20180058096A true KR20180058096A (en) | 2018-05-31 |
KR101948391B1 KR101948391B1 (en) | 2019-02-14 |
Family
ID=62454430
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020160156785A KR101948391B1 (en) | 2016-11-23 | 2016-11-23 | Distributed file sharing system and method of duplicating file in distributed file sharing system |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101948391B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20200131655A (en) * | 2019-05-14 | 2020-11-24 | 주식회사 마크베이스 | Appratus and method for management of database |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20210129433A (en) | 2020-04-20 | 2021-10-28 | 에스케이하이닉스 주식회사 | Storage saving method for big data processing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100072992A (en) * | 2008-12-22 | 2010-07-01 | (주)씨엔에스 | Distributed network storage system and method for the same |
KR20110041193A (en) * | 2009-10-15 | 2011-04-21 | 주식회사 클루넷 | Cloud computing network system and file distrubuting method of the same |
US9047321B2 (en) * | 2013-03-21 | 2015-06-02 | Nexbit Systems Inc. | Prioritizing downloading of image files |
KR101566884B1 (en) * | 2014-05-22 | 2015-11-06 | 주식회사 아이온커뮤니케이션즈 | Distribution store system for managing unstructured data |
KR20160038496A (en) * | 2014-09-30 | 2016-04-07 | 아주대학교산학협력단 | Storage integrating method and system using file system |
-
2016
- 2016-11-23 KR KR1020160156785A patent/KR101948391B1/en active IP Right Grant
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100072992A (en) * | 2008-12-22 | 2010-07-01 | (주)씨엔에스 | Distributed network storage system and method for the same |
KR20110041193A (en) * | 2009-10-15 | 2011-04-21 | 주식회사 클루넷 | Cloud computing network system and file distrubuting method of the same |
US9047321B2 (en) * | 2013-03-21 | 2015-06-02 | Nexbit Systems Inc. | Prioritizing downloading of image files |
KR101566884B1 (en) * | 2014-05-22 | 2015-11-06 | 주식회사 아이온커뮤니케이션즈 | Distribution store system for managing unstructured data |
KR20160038496A (en) * | 2014-09-30 | 2016-04-07 | 아주대학교산학협력단 | Storage integrating method and system using file system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20200131655A (en) * | 2019-05-14 | 2020-11-24 | 주식회사 마크베이스 | Appratus and method for management of database |
Also Published As
Publication number | Publication date |
---|---|
KR101948391B1 (en) | 2019-02-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10581957B2 (en) | Multi-level data staging for low latency data access | |
CA2897338C (en) | Data stream splitting for low-latency data access | |
Yu et al. | Location-aware associated data placement for geo-distributed data-intensive applications | |
US8769055B2 (en) | Distributed backup and versioning | |
JP5998206B2 (en) | Scalable centralized dynamic resource distribution in cluster data grids | |
US7457835B2 (en) | Movement of data in a distributed database system to a storage location closest to a center of activity for the data | |
JP5118059B2 (en) | Method and apparatus for searchable data services | |
EP2735972B1 (en) | Data transmission and reception system | |
US9992274B2 (en) | Parallel I/O write processing for use in clustered file systems having cache storage | |
US8713125B2 (en) | Method and system for scaling usage of a social based application on an online social network | |
WO2012127988A1 (en) | Information processing device, distributed file system, client device, information processing method, and computer program | |
US9330107B1 (en) | System and method for storing metadata for a file in a distributed storage system | |
Nannai John et al. | A novel dynamic data replication strategy to improve access efficiency of cloud storage | |
CN108200211B (en) | Method, node and query server for downloading mirror image files in cluster | |
Rajalakshmi et al. | An improved dynamic data replica selection and placement in cloud | |
KR101948391B1 (en) | Distributed file sharing system and method of duplicating file in distributed file sharing system | |
Lin et al. | A load-balancing algorithm for hadoop distributed file system | |
KR102133840B1 (en) | Distributed file system and data processing method for live service | |
EP2765517B1 (en) | Data stream splitting for low-latency data access | |
US11777810B2 (en) | Status sharing in a resilience framework | |
KR20200072128A (en) | Distributed file system and file managing method for live service | |
US8468181B2 (en) | Distributed metadata cache | |
JP5956364B2 (en) | Cluster system | |
ELomari et al. | New data placement strategy in the HADOOP framework | |
US20140188833A1 (en) | Information processing device, information processing terminal, recording medium storing information search program, and information search method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E902 | Notification of reason for refusal | ||
E902 | Notification of reason for refusal | ||
E701 | Decision to grant or registration of patent right |