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

✨ Preview generation as a separate node instance #728

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

shepilov
Copy link
Member

@shepilov shepilov commented Nov 6, 2024

No description provided.

@shepilov shepilov force-pushed the scale_preview_generation branch from 1f7bbca to 386bfaa Compare November 6, 2024 12:03
@shepilov shepilov changed the title ✨ Preview generation as a separate node instance [Draft] ✨ Preview generation as a separate node instance Nov 7, 2024
tdrive/docker-compose.dev.rabbitmq.yml Outdated Show resolved Hide resolved
tdrive/docker-compose.dev.rabbitmq.yml Outdated Show resolved Hide resolved
@shepilov shepilov force-pushed the scale_preview_generation branch from 708df34 to cfe8a10 Compare November 20, 2024 08:56
@shepilov shepilov force-pushed the scale_preview_generation branch from cfe8a10 to ee9cc12 Compare November 20, 2024 12:59
@shepilov shepilov force-pushed the scale_preview_generation branch from ee9cc12 to 2b2b64a Compare November 21, 2024 13:01
@ericlinagora ericlinagora added this to the v1.0.6 milestone Dec 2, 2024
@shepilov shepilov force-pushed the scale_preview_generation branch from d1f6676 to 97d8c74 Compare December 3, 2024 16:32
@shepilov shepilov force-pushed the scale_preview_generation branch from 97d8c74 to 66cb1db Compare December 4, 2024 06:25
@ericlinagora ericlinagora changed the title [Draft] ✨ Preview generation as a separate node instance ✨ Preview generation as a separate node instance Dec 13, 2024
@@ -46,11 +46,11 @@ jobs:
- name: Prettier code style check
run: |
cd tdrive
docker compose -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run lint:prettier
docker compose -f docker-compose.dev.deps.yml -f docker-compose.tests.yml run -e NODE_OPTIONS=--unhandled-rejections=warn node npm run lint:prettier
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this is the opportunity to update the instructions in the README.md

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm, you are talking about the main readme file or some page in the documentation?
if main readme, I didn't get how it is connected

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the main /README.md, the instructions to start drive are outdated there, and we're changing them here... Had a couple of potential contributors get stuck on this

healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
networks:
- tdrive_network
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    healthcheck:
      test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet

environment:
- REDIS_REPLICATION_MODE=master
networks:
- tdrive_network
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

healthcheck:
  test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]

ports:
- 3310:3310
networks:
- tdrive_network
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current platform fails startup if clamav isn't ready, and in my tests, clamav opens the port long before it's ready, you actually have to wait for the reponse to be PONG (it responds "" for some time before it's ready). I use this in devenv, not entirely sure about docker compose command syntax for multiline https://github.com/ericlinagora/twake-drive-devenv/blob/master/devenv.nix#L604

ports:
- "5432:5432"
networks:
- tdrive_network
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

healthcheck:
  test: ["CMD-SHELL", "pg_isready"]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(these all come with changing the depends_on too to condition: service_healthy)

@ericlinagora ericlinagora modified the milestones: v1.0.6, v1.0.7 Jan 23, 2025
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

Successfully merging this pull request may close these issues.

3 participants