Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #3177 (closed)

Opened 14 years ago

Closed 14 years ago

Decrease the frequency of `SessionCache.doUpdate` calls (sync_interval)

Reported by: jamoore Owned by:
Priority: minor Milestone: OMERO-Beta4.2.1
Component: Performance Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2010-10-28 (18)

Description

omero.sessions.sync_interval=3000

configures a Quartz thread to call SessionCache.doUpdate every three seconds (though only one invocation will ever be called concurrently). This method must acquire the write lock which is an undo burden.

Change History (1)

comment:1 Changed 14 years ago by jmoore

  • Resolution set to invalid
  • Status changed from new to closed

After thinking about this, it's not possible to just decrease the interval as a workaround, because then when an administrative update came around, methods would have to wait the 30 seconds (or whatever) until synchronization even began. It might be possible to rework SessionCache as it currently stands to use two different update threads -- one for the administrative changes (called frequently but without acquiring the write lock) and one for the forced update -- but it's probably simpler to just handle #3174 (non-blocking SessionCache). Closing.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.66257 sec.)

We're Hiring!