Conversation
utf94
commented
Nov 10, 2021
- EKS infrastructure is added.
- Dockerise the entire application
- Added build configuration
- Added Load balancer
|
The PR is still in progress. Different GPU machines will be tested and the best results will be shared with @avaer and on approval, those build commands will be added. Current buildspec points towards personal AWS of Kaneki.ken which will be updated once the machine spec is finalised |
|
Render time 2 seconds. Horizontal scaling integrated that spins upto 7 pods in 0 additional seconds. |
|
|
The current time is about 5 seconds to render. Is there a comparison table of the performance of each instance type? |
| - curl --silent --location "https://github.com/weaveworks/eksctl/releases/download/v0.72.0/eksctl_Linux_amd64.tar.gz" | tar xz -C /tmp | ||
| - mv -v /tmp/eksctl /usr/local/bin | ||
| - chmod +x /usr/local/bin/eksctl | ||
| - AWS_ACCOUNT_ID=684910554524 |
There was a problem hiding this comment.
Any way to not hardcode the account id?
There was a problem hiding this comment.
Yes, we will move these files to Cloud Formation and the account id will be dynamic then.
|
I think we can merge this, but I'd like to understand the different GPU options, and see if we can get the render time cut in half to about 2s as stated. |
|
@avaer Actually the time which is getting taken is in the downloading of the asset. If we host the asset files in S3 or in a CDN we will get rid of 1.5 seconds easily. Right now the GPU consumption is very less. In order to further check and refine it. I will add logs throughout the preview and screenshot system to know which part takes what time and also will play with the flags of the puppeteer if all go in vain then we can test more GPUs as testing GPU comes with a high cost since AWS has limited GPU to P3.2Xlarge machines (at minimum) |
|
@rob-webaverse can you also confirm the impact on infra cost after this? |
It's adding about $4200/month right now, so more than +100% previous costs. |
How? The first hit is the common case and it seems uploading to CDN would make it even slower by adding that layer. Also I don't fully understand the timing. This file is 8KB and fits in 6 packets. I doubt 6 packets takes1.5 seconds, unless AWS routing is really that slow. |
|
Btw I think optimizing this is pretty important for the user experience. Seconds shaved off will make for a much better gamefeel. |
|
@avaer we are having a render time of 1.2 seconds. While the asset download time is 2.1 seconds what are your suggestions on this? That makes the request span between 4->5 seconds in total. |
|
Which part of the download is slow? That seems excessive. |

