# Can weaviate run in ECS?

**URL:** <https://forum.weaviate.io/t/can-weaviate-run-in-ecs/949>\
**Category:** Support\
**Created:** [November 13, 2023, 4:33pm UTC](https://forum.weaviate.io/t/can-weaviate-run-in-ecs/949 "2023-11-13T16:33:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Hughes](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/adam_hughes/32/124_2.png) [@Adam\_Hughes](https://forum.weaviate.io/u/Adam_Hughes)\
**Post date:** [November 13, 2023, 4:33pm UTC](https://forum.weaviate.io/t/can-weaviate-run-in-ecs/949/1 "2023-11-13T16:33:35Z")

</div>

We’re running weaviate in k8s on AWS using EKS (AWS managed kubernetes). I appreciate that the weaviate helm chart has lots of configuration for EKS, such as s3 backups and what not.

For various reasons, we are also interested in running on AWS Elastic Container Service (ECS). I’d like to understand what are the pros and cons of doing so. For example, without the helm chart, can weaviate easily be deployed in a horizontally-scaled configuration in ECS? Is it just a matter of following the docker-compose guides, or do you not recommend running weaviate in container runtimes other than kubernetes?

Thanks

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 14, 2023, 8:11pm UTC](https://forum.weaviate.io/t/can-weaviate-run-in-ecs/949/2 "2023-11-14T20:11:49Z")

</div>

Hi @Adam_Hughes !

I believe it will just be a matter of following the docker guides, as described here:

> **[Docker Compose | Weaviate - vector database](https://weaviate.io/developers/weaviate/installation/docker-compose#multi-node-setup)**
>
> Overview

Each new node should then point to a "founder"node.

Let me know if this helps!

Thanks!

---

<div class="post-metadata">

**Author:** ![Adam\_Hughes](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/adam_hughes/32/124_2.png) [@Adam\_Hughes](https://forum.weaviate.io/u/Adam_Hughes)\
**Post date:** [November 14, 2023, 8:47pm UTC](https://forum.weaviate.io/t/can-weaviate-run-in-ecs/949/3 "2023-11-14T20:47:43Z")

</div>

This is helpful thanks.

Do you know if this field

```
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'

```

Can point to S3 or it has to be a disk in the cluster?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 14, 2023, 9:10pm UTC](https://forum.weaviate.io/t/can-weaviate-run-in-ecs/949/4 "2023-11-14T21:10:40Z")

</div>

Hi!

Most certainly not due to latency on read and write operations and other issues that will arise, because S3 is not designed to this.

Considering AWS, you should use EBS or EFS.

Let me know if this helps 🙂

---

<div class="post-metadata">

**Author:** ![Adam\_Hughes](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/adam_hughes/32/124_2.png) [@Adam\_Hughes](https://forum.weaviate.io/u/Adam_Hughes)\
**Post date:** [November 15, 2023, 2:14am UTC](https://forum.weaviate.io/t/can-weaviate-run-in-ecs/949/5 "2023-11-15T02:14:45Z")

</div>

Er sorry I am mixing apples and oranges. I meant for database backups.

Your weaviate helm chart has turnkey support for backing up DB to S3 in a bucket called `weaviate-bucket`. Does the docker-compose version offer a similar way to backup the DB?

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/1X/bd4e73505955871a7be456e2bb8a0223e2d0062f.png)

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [November 15, 2023, 1:48pm UTC](https://forum.weaviate.io/t/can-weaviate-run-in-ecs/949/6 "2023-11-15T13:48:49Z")

</div>

Sure thing.

You can add `backup-s3` module to `ENABLED_MODULES` environment variable and setup the bucket configurations as specified here:

> **[Backups | Weaviate - vector database](https://weaviate.io/developers/weaviate/configuration/backups#s3-aws-or-s3-compatible)**
>
> \- References Backups

With all set you can start a backup routine as described here:

> **[Backups | Weaviate - vector database](https://weaviate.io/developers/weaviate/configuration/backups#create-backup)**
>
> \- References Backups

Note that you can have multiple backup modules enabled and configured, and when creating the backup, you can specify which module you want to use to backup or restore from.

Let me know if that helps 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![Adam\_Hughes](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/adam_hughes/32/124_2.png) [@Adam\_Hughes](https://forum.weaviate.io/u/Adam_Hughes)\
**Post date:** [November 15, 2023, 3:08pm UTC](https://forum.weaviate.io/t/can-weaviate-run-in-ecs/949/7 "2023-11-15T15:08:33Z")

</div>

That’s great thank you. Sorry, I should have understood. Thanks for answering all of my questions!
