是否有在本地提供 Amazon S3 样式 API 的服务器? [英] Is there a server that provides an Amazon S3 style API locally?

查看:17
本文介绍了是否有在本地提供 Amazon S3 样式 API 的服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们制作了将一些数据(附件)存储在 a) 数据库或 b) Amazon S3 中的分布式软件.使用数据库是因为它不需要其他配置.Amazon S3 是更好的选择.

We make distributal software that stores some data (attachments) in a) a database or b) Amazon S3. The database is used because it requires no other configuration. Amazon S3 is the better option.

我们现在想要的是为不想使用 Amazon S3 的客户提供的解决方案.我们显然可以只使用文件系统,但是如果有多个 Web 服务器并且需要复制文件,这可能会出现问题;它还需要我们编写额外的代码来处理可能发生的各种问题.

What we want now is a solution for customers that don't want to use Amazon S3. We can obviously just use the filesystem but this can be problematic if there are multiple web servers and the files need to be replicated; it also requires us to write extra code to handle the various permuations of problems that can happen.

我们更希望有一款服务器软件能够基本上复制 Amazon S3 的 API.这样我们的客户就可以将服务器安装在一个盒子上;我们不需要更改任何代码.那么……有没有这样的软件?

What we would prefere is if there was a piece of server software that essentially replicates Amazon S3's API. That way our clients can install the server on a box; and we don't need to change any code. So ... is there any such software out there?

推荐答案

这可以通过 OpenStack Object Storage 实现(代号为 Swift),它是使用标准化服务器集群创建冗余、可扩展对象存储的开源软件,特别是其最近添加的(可选)S3 API 层,>在对象存储之上模拟 S3 REST API.

This is possible via OpenStack Object Storage (code-named Swift), which is open source software for creating redundant, scalable object storage using clusters of standardized servers, specifically its recently added (optional) S3 API layer, which emulates the S3 REST API on top of Object Storage.

参见 使用 S3 API 配置对象存储 官方文档 - OpenStack Swift 上的 S3 API(基于更复杂的 在 EC2 上安装 OpenStack Swift 集群).

See Configuring Object Storage with the S3 API for the official documentation - a more insightful and illustrated small tutorial regarding the entire setup is available in S3 APIs on OpenStack Swift (which builds on the more complex Installing an OpenStack Swift cluster on EC2 though).

一个值得注意的替代方案是 Ceph,它是一个统一的分布式存储系统,专为卓越的性能和可靠性而设计和可扩展性 - 有趣的是,它提供了所有三种常见的存储模型,即对象存储块存储文件系统RADOS 网关为 RADOS 对象存储提供了与 Amazon S3 和 OpenStack Swift 兼容的接口[强调我的],有关当前支持的 S3 的详细信息,请参阅 RADOS S3 APIAPI 功能.

An noteworthy alternative is Ceph, which is a unified, distributed storage system designed for excellent performance, reliability and scalability - interestingly it provides all three common storage models, i.e. Object Storage, Block Storage and a File System and the RADOS Gateway provides Amazon S3 and OpenStack Swift compatible interfaces to the RADOS object store [emphasis mine], see RADOS S3 API for details on currently supported S3 API features.

这篇关于是否有在本地提供 Amazon S3 样式 API 的服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆