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

Discuss for the discord-bot deployment #497

Open
corona10 opened this issue Mar 24, 2023 · 11 comments
Open

Discuss for the discord-bot deployment #497

corona10 opened this issue Mar 24, 2023 · 11 comments
Assignees

Comments

@corona10
Copy link
Member

The short story

We need to discuss the deployment options for the discord-bot.

Long version

@Mariatta and I are developing a discord bot that will utilize OpenAI APIs to enhance the productivity of the core development team. Currently, the bot is deployed on my Azure server(Standard D2as v4), but this setup is not sustainable. We would like to explore alternative options, such as requesting a quota for PSF Heroku deployment or any other viable alternatives. It would be greatly appreciated if we could discuss this matter further.

cc @python/infrastructure-staff

@corona10 corona10 changed the title Querying for the discord-bot deployment Discuss for the discord-bot deployment Mar 24, 2023
@ewdurbin
Copy link
Member

What is the timeline?

@corona10
Copy link
Member Author

corona10 commented Mar 24, 2023

What is the timeline?

There is currently no set timeline, but I hope to transition to an infrastructure that can be managed collaboratively, if possible. It is not a problem if the discussion takes some time. :)

@ewdurbin
Copy link
Member

Really the only reason I'm asking is PyCon prep! If I don't have better information for you next week, we'll get you setup on Heroku.

What sort of resource requirements are you expecting in terms of RAM/CPU?

@ewdurbin ewdurbin self-assigned this Mar 24, 2023
@corona10
Copy link
Member Author

What sort of resource requirements are you expecting in terms of RAM/CPU?

I guess that the Standard 2X will be enough. Please let me know if this is too expensive.

@ewdurbin
Copy link
Member

What is the functionality of the bot? That's a pretty big dyno. The PSF is currently footing bill for Heroku as they never relaunched their credit program, so that is a bit steep.

Do you have any metrics on the running instance to estimate the need a bit more precisely?

@corona10
Copy link
Member Author

The PSF is currently footing bill for Heroku as they never relaunched their credit program, so that is a bit steep

Oh, in that case, please provide the minimal resource that can be provided.
I will explore other options if the minimum resources are insufficient. Currently, the application only communicates with the OpenAI server and the only computational operation involves using the tiktoken library.

@corona10
Copy link
Member Author

Do you have any metrics on the running instance to estimate the need a bit more precisely?

Since this is the discord bot with limited people, traffic will not be over 20 requests per minute .

@Mariatta
Copy link
Member

We also don't need it to be in Heroku. If there is other platform that The PSF recommends that is more affordable, we can go with that.

@CAM-Gerlach
Copy link
Member

I'm no web expert, but it seems like you could run many such bots and other services on a DO $5/mo. VPS, assuming you don't already have one handy.

@ewdurbin
Copy link
Member

There's good stuff on the horizon for Heroku type experience. We're actively working to get the same platform that deploys PyPI setup so it is user friendly enough to move all our Heroku apps. Sounds like discord-bot is a good candidate for the first one.

Marginal cost of running something like this is well less that $5/mo :)

We're close but I can't say "before PyCon" close at this time.

@corona10
Copy link
Member Author

We're close but I can't say "before PyCon" close at this time.

I can wait :)

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

No branches or pull requests

4 participants