最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Estimating Redshift Servless Cost from current provisioned cluster - Stack Overflow

programmeradmin0浏览0评论

Just looking to see if anyone else has estimated (and how successful was the estimate) on using data from provision redshift cluster to estimate redshift serverless cost

So for example if you have a single node dc2.large (rough equal to 1 rpu) and average usage of 6 hours of query excecution (according to beloq query not 100% sure if this is the correct?)

SELECT 
    date_trunc('day', starttime) AS query_date,
    ((SUM(EXTRACT(EPOCH FROM (endtime - starttime)))/60)/60) AS total_query_time_hours
FROM stl_query
WHERE userid > 1
  AND starttime >= date_trunc('month', current_date)
GROUP BY 1
ORDER BY 1 DESC;

So this states you are using 6 hrs average per day. Looking at minimums of base 8 RPUs on serverless, assuming no performance/speed improvements & no autoscaling from the 8 RPUs on existing workloads, is it as simple as 6 (hours active) * 8 (number of RPUs) * 0.36 (current pricing)? $17.28 per day?

Do all 8 "base capacity" get used on every query or does it depend on complexity of queries etc?

发布评论

评论列表(0)

  1. 暂无评论