nagadomi / waifu2x

Image Super-Resolution for Anime-Style Art
http://waifu2x.udp.jp/
MIT License
27.57k stars 2.71k forks source link

Expose waifu2x traffic stats with cost #396

Open abitrolly opened 3 years ago

abitrolly commented 3 years ago

From https://github.com/nagadomi/waifu2x/issues/197#issuecomment-820013667

An ordinary home internet connection cannot handle waifu2x traffic.

To find a better service for waifu2x it is important that interested people could validate the amount of resources needed. I am not sure how hard it is to publish the current usage with money spent. It is a single AWS server that receives all traffic? Or is it load balancer where it could be measured?

I've heard about some FinOps folks that are concerned with questions of real-time billing of resources.

nagadomi commented 3 years ago

That may have been a bit of an exaggeration. But I'm basically not going to use anything other than services I trust (e.g. AWS, GCP, Azure) because there is nothing to prevent the owner of the hardware from snooping on the network or putting malware. So, it must be a popular service provided by a decent company. Also, the upload speed of the server needs to be about 30Mbps, and since my home internet connection is only about 20Mbps upload speed (and it causes problems with other internet usage), so I can't set up the waifu2x server at my home.

EC2 2020 9~12 data transfer cost is here. There is currently one server, internally load balancing from nginx http server to two waifu2x API processes (In the past, there were three servers running each process, but with better GPUs, there is now only one).

Usage Type APN1-DataTransfer-Out-Bytes($) APN1-DataTransfer-In-Bytes($) Total cost ($) APN1-DataTransfer-Out-Bytes(GB) APN1-DataTransfer-In-Bytes(GB) Total usage (GB)
2020-09-01 455.1096062613 0 455.1096062613 3630.294791758 1528.3626877483 5158.6574795063
2020-10-01 477.2600805606 0 477.2600805606 3806.8778996442 1656.5615180675 5463.4394177117
2020-11-01 425.4570684615 0 425.4570684615 3393.7813022895 1497.0510997475 4890.832402037
2020-12-01 505.1446391599 0 505.1446391599 4029.2863084249 1738.8358691682 5768.1221775931
droptables commented 2 years ago

@nagadomi yes its currently down