Yesterday we ran into problems with the Rubycas server on one of our high-load systems.
The problem turned out to be missing indexes on the tables generated by CAS, causing latencies up to 50s when dealing up to 100 concurrent requests in sequence.
We solved this by adding indexes.
I would like to push these changes back to the project to prevent other people from having this:
class CreateIndexes < ActiveRecord::Migration
def self.up
add_index :casserver_pgt, :ticket
add_index :casserver_st, :ticket
add_index :casserver_lt, :ticket
add_index :casserver_tgt, :ticket
end
def self.down
remove_index :casserver_pgt, :ticket
remove_index :casserver_st, :ticket
remove_index :casserver_lt, :ticket
remove_index :casserver_tgt, :ticket
end
end
Hello,
Yesterday we ran into problems with the Rubycas server on one of our high-load systems. The problem turned out to be missing indexes on the tables generated by CAS, causing latencies up to 50s when dealing up to 100 concurrent requests in sequence.
We solved this by adding indexes. I would like to push these changes back to the project to prevent other people from having this: