Skip to content

Commit

Permalink
Add unique_set_size for servers and workers
Browse files Browse the repository at this point in the history
Why?  USS is a more reliable mechanism for tracking workers with runaway
memory growth.  PSS is great, until the server process that forks new
processes grows large. As each new worker is forked, it inherits a share
of the large amount of the parent process' memory and therefore starts
with a large PSS, possibly exceeding our limits before doing any work.
USS only measures a process' private memory and is a better indicator
when a process is responsible for allocating too much memory without
freeing it.
  • Loading branch information
jrafanie committed Nov 30, 2017
1 parent 2d091ff commit dfac144
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class AddUniqueSetSizeToMiqServersMiqWorkers < ActiveRecord::Migration[5.0]
def change
add_column :miq_servers, :unique_set_size, :decimal, :precision => 20, :scale => 0
add_column :miq_workers, :unique_set_size, :decimal, :precision => 20, :scale => 0
end
end

0 comments on commit dfac144

Please sign in to comment.