Record heat and droughts this summer have wreaked havoc in power production, shipping and public health systems.