{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/74b77df74c44fe13257dd76ca5f64cb6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"74b77df74c44fe13257dd76ca5f64cb6","url":"https://api.github.com/users/graciani","login":"graciani","id":693012},"milestone":null,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/74b77df74c44fe13257dd76ca5f64cb6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"74b77df74c44fe13257dd76ca5f64cb6","url":"https://api.github.com/users/graciani","login":"graciani","id":693012},"labels":[{"name":"DMS","color":"ededed","url":"https://api.github.com/repos/DIRACGrid/DIRAC/labels/DMS"},{"name":"Feature request","color":"02d7e1","url":"https://api.github.com/repos/DIRACGrid/DIRAC/labels/Feature+request"},{"name":"Task","color":"0b02e1","url":"https://api.github.com/repos/DIRACGrid/DIRAC/labels/Task"}],"updated_at":"2011-10-31T15:50:52Z","closed_at":"2011-10-31T15:50:52Z","comments":3,"url":"https://api.github.com/repos/DIRACGrid/DIRAC/issues/226","body":"In order to prevent situations where Replicas from partially Staged Tasks can block the system and to move ahead those requests affecting Replicas already \"Online\", the following change to the Stager logic will be implemented:\r\n\r\n1.- First check availability of Cache for each SE, if it is full no new Replicas will be considered for that SE.\r\n\r\n2.- Check Replicas \"Waiting\" to be Staged. If they are are \"Online\", include them into a new Stage Request (to extend the pin lifetime) together with al other Replicas in the same Task (Job). The availability of Space in the Cache will not be checked, although the space required will be accounted. Replicas that are not \"Online\" are changed to \"Offline\" state.\r\n\r\n3.- Check again availability of the Cache for each SE, if it is full no new Replicas will be considered for that SE.\r\n\r\n4.- Check \"Offline\" Replicas and prepare a Stage Request for all those that fit in the space available. Include them into new Stage Requests together with all other Replicas in the same Tasks (Job), the availability of space in the Caches will not be checked for them, although the space required will be accounted.\r\n\r\nIn this way we assure that \"Online\" data is used first and requests are always submitted for full Tasks (Jobs) avoiding deadlocks. On the other hand we temporarily overcommit the Cache, but it will be marked as used for the next iterations so the net effect should not be too important.\r\n\r\n","html_url":"https://github.com/DIRACGrid/DIRAC/issues/226","title":"Update in Stager Logic","number":226,"id":1871395,"created_at":"2011-10-11T07:17:00Z"},"action":"closed"}