Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storing indexes on Amazon S3? #53

Closed
dragonfire1119 opened this issue Nov 20, 2016 · 1 comment
Closed

Storing indexes on Amazon S3? #53

dragonfire1119 opened this issue Nov 20, 2016 · 1 comment

Comments

@dragonfire1119
Copy link

Could you store the indexes on Amazon S3? So multiple servers could access the same data.

@dragonfire1119 dragonfire1119 changed the title Storing indexs on Amazon S3? Storing indexes on Amazon S3? Nov 20, 2016
@dominiquedutra
Copy link

@dragonfire1119 In theory you could sync it to S3 by modifying TNTSearch code. Haven't looked at the source to see how it deals with the index files (I believe PDO itself deals with the file directly) but you could hook into something like https://flysystem.thephpleague.com/ to keep the index file in sync with anything really. PDO should not be able to deal directly with an s3 file. It is not a disk you access, it is a file storage service. Unless you could mount the s3 drive, but an API request for each action on the file would be inevitable.

If your index is updated regularly, you would see a lot of requests to Amazon. You either have to download the index every time you want to query it (which would be stupid) or you would have to orchestrate between servers to let each other know when the s3 index has changed so the servers can fetch a fresh copy.

But why would you is what I don't understand? See my reply to #72.

There are better solutions. I recommend picking the best tool for each job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants