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

Single tenant on AWS? #11

Open
indexzero opened this issue Apr 1, 2019 · 22 comments
Open

Single tenant on AWS? #11

indexzero opened this issue Apr 1, 2019 · 22 comments

Comments

@indexzero
Copy link

Howdy folks – exploring using webhint for a new effort. As part of that effort exploring what it would take to run natively on AWS.

Looking through the code there are two places Azure specific services are utilized:

  • azure-sb
  • azure-storage

Would this group be open to accepting contributions that enable multiple vendors for these services?

@molant
Copy link
Member

molant commented Apr 1, 2019

Would this group be open to accepting contributions that enable multiple vendors for these services?

Definitely!

The architecture we have right now is to enable us scaling in case we have more load. Depending on your use case it might not be necessary.

This is what we are using those packages for:

  • azure-sb for queues and communicate the services.
  • azure-storage store the backups of the database.

@utsavized is in the process of migrating some of the current microservices to be serverless instead of containers so expect the code to change a bit in the next few weeks. Another change we are planning on soon-ish is to change the connector in here from jsdom to chrome, but that should just impact the worker image and the configuration file.

If you want we can set up a meeting to go through the current architecture.

Let us know if you need anything!

@indexzero
Copy link
Author

Would love to chat about this – especially on the serverless aspect of it. A vendor agnostic serverless implementation would be important for us to adopt this.

Let me know when you would like to catch up on a quick call.

@molant
Copy link
Member

molant commented Apr 5, 2019

What about Tuesday? Any time that works best for you? Right now my schedule is open morning and afternoon (I'm in PST).

@indexzero
Copy link
Author

Still up to chat today? Would say, 11am PT work?

If not when later in the week is best? Wednesday is very full for me, but I could do Thursday or Friday.

Today would be best though -- apologies for the delayed response.

@molant
Copy link
Member

molant commented Apr 9, 2019

I think we can make it happen today 😊
Hangouts OK? I just followed you on Twitter (@molant) so feel free to DM the emails for the meeting.

@molant
Copy link
Member

molant commented Apr 9, 2019

Updating with link to Hangouts: https://hangouts.google.com/call/2YU1Ci08iaTVJDnrwecHAEEE

@molant
Copy link
Member

molant commented Apr 9, 2019

Thanks all of you for attending!
The next steps we agreed are:

  • @utsavized: use serverless in our migration to Azure Functions so integration with any other cloud platform will be possible
  • @indexzero: work in pkgcloud to add support for Service Bus and help in the migration to use that library

I'll leave this issue open while we work on this and link to webhintio/online-service#388
@utsavized feel free to create more tasks if needed!

@molant
Copy link
Member

molant commented Apr 12, 2019

We've created webhintio/online-service#442 for the serverless integration.

@indexzero
Copy link
Author

Awesome! Will keep an eye out for some PRs. Might be useful to break it up into multiple issues once you know which microservices will become serverless.

@molant
Copy link
Member

molant commented Apr 12, 2019

We'll make sure to ping you once we start having PRs. I think that initially all excep the worker and that one later once we investigate webhintio/online-service#386

@indexzero
Copy link
Author

FYI @molant & other webhint folks – released pkgcloud@2.0.0 in the past week. Would love to talk about how we could start moving towards using it for azure-storage

@molant
Copy link
Member

molant commented May 14, 2019

Awesome!

@utsavized has continue making progress during the last few days but had to slow down because of sickness 🤒
I think the current status is that most microservices are migrated to run as functions locally but when deployed to our staging environment they use about 1GB of space which doesn't make too much sense. We'll look into that as soon as he's back to work.

IIRC we are currently using azure-storage for the backups of the DB in storage.ts. That should be issue to migrate.

Do you know if there's been any progress about queues and such?

Thanks!

@molant
Copy link
Member

molant commented May 17, 2019

@indexzero we've created a new repo for serverless while we do all the migration:

https://github.com/webhintio/serverless-online-service

@indexzero
Copy link
Author

We're getting ready to kick off that work on our side. Is the goal to migrate all of the remaining services in ./src/lib/microservices into serverless-online-service?

Would love to hop on a quick call again and chat about how our plans to use webhint have evolved over time.

@utsavized
Copy link
Contributor

We're getting ready to kick off that work on our side. Is the goal to migrate all of the remaining services in ./src/lib/microservices into serverless-online-service?

@indexzero Yes, at least the one's that are applicable. The only one that is doubtful is the backup service that deals with a large data set, but the rest should be able to be converted. Currently, we have deployed the two converted functions into staging environment and are testing them.

Also, Serverless has some bugs on the Azure side, and looks like they have not updated their azure-functions package in a while. I will submit a PR and see how that goes. I expect the AWS side to be much smoother.

@indexzero
Copy link
Author

Great – I'd love to hop on a call next week and chat about it more. Have a few high level ideas I'd like to run by the group before opening a large proposal.

@sarvaje
Copy link
Contributor

sarvaje commented Jun 5, 2019

I'd love to hop on a call next week

Right now, any day next week is good for me for that call. Let see when @antross and @utsavized have time.

@utsavized
Copy link
Contributor

@indexzero Sure, next week sounds good to me. @antross do you want to set something up?

@indexzero
Copy link
Author

How about 1:30pm PT on Monday?

@antross
Copy link
Member

antross commented Jun 5, 2019

@indexzero That should work. I've scheduled a sync via zoom for 1:30pm PT on Monday. If you can DM me your email on our Gitter I'll forward you the invite.

@antross
Copy link
Member

antross commented Jun 10, 2019

@indexzero Is today still a good time to meet at 1:30pm PT? Here's a link to join the meeting: https://zoom.us/j/863328597

@indexzero
Copy link
Author

Yes that still works, speak with you then!

@molant molant transferred this issue from webhintio/online-service Oct 28, 2019
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

5 participants