Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemclaren committed Jun 10, 2024
1 parent c59ffd1 commit 17f8353
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Begin by creating a new Fly application in your preferred region. Execute the fo
Using the [Fly CLI](https://fly.io/docs/flyctl/) run the following:

```
fly launch --no-public-ips
fly launch --no-public-ips --from https://github.com/kylemclaren/qdrant-on-fly
````

This command creates a new Fly application with one runnning machine and an attached volume. When prompted, select `yes` to copy the existing configuration to the newly generated app. Do not create a PostgreSQL database or Upstash Redis instance.
Expand All @@ -26,14 +26,14 @@ This command creates a new Fly application with one runnning machine and an atta

Expand the cluster by cloning the first machine. Currently, `fly scale count` does not support scaling Machines with persistent storage volumes. We'll use 'fly machine clone' to scale our cluster.

1. `fly machine clone --region ord --select --process-group app`
1. `fly machine clone --region ord --select`
2. `fly status`

## Add a Peer in Another Region

Scale the setup to another region by cloning a machine there. Now you should have two peers in `ord` and another in `jnb`.

1. `fly machine clone --region jnb --select --process-group app`
1. `fly machine clone --region jnb --select`
2. `fly status`

## Connecting
Expand All @@ -46,6 +46,12 @@ Fly applications within the same organization can connect to your Qdrant databas
http://<fly-app-name>.flycast:6333
```

First, you'll need to allocate a private [Flycast](https://fly.io/docs/networking/private-networking/#flycast-private-fly-proxy-services) IP address to your app. You can do this by running the following command:

```sh
fly ips allocate-v6 --private
```

### Public IP

If you need your app to be publicly accessible outside of the Fly Private network, you can simply [allocate a public IP](https://fly.io/docs/reference/services/#shared-ipv4) to the Fly app and start using the Fly Proxy to connect as normal (ie. `https://<fly-app-name>.fly.dev`)
Expand Down

0 comments on commit 17f8353

Please sign in to comment.