SlideShare a Scribd company logo
glideinWMS Training @ UCSD



            Glidein startup Internals
                       and
             Glidein configuration
                     by Igor Sfiligoi (UCSD)




UCSD Jan 17th 2012         Glidein internals   1
Outline

                     ●   Glidein_startup internals
                     ●   Glidein lifetime
                     ●   Security considerations




UCSD Jan 17th 2012                 Glidein internals   2
Refresher - What is a glidein?
 ●   A glidein is just a properly configured execution
     node submitted as a Grid job
                     Central manager
                                                   glidein
                                                 Execution node
                        Collector
                                                   glidein
                                                 Execution node
                       Negotiator
     Submit node
     Submit node
                                                   glidein
                                                 Execution node
     Submit node
                                                 Execution node
                                                   glidein
       Schedd                                       Startd

                                                         Job



UCSD Jan 17th 2012           Glidein internals                    3
Refresher – Glidein startup
 ●   glidein_startup configures and starts Condor
                                                                              Configure
                                                                             Condor G.N.

                                   Submit node
  Frontend node                                                      Worker node
                       Monitor     Submit node
     Frontend          Condor                                           glidein
                                 Central manager
                                                                        Startd
                     Match
                                                          CREAM               Job
             Request
             glideins            Factory node

                                   Condor                            glidein
                                                                   Execution node
                                                          Globus
                                   Factory                           glidein
                                                                   Execution node
                                                  Submit
                                                  glideins
UCSD Jan 17th 2012                        Glidein internals                                4
glidein_startup Internals




UCSD Jan 17th 2012   Glidein internals   5
glidein_startup tasks
 ●   Download scripts, parameters and Condor bins
 ●   Validate node (environment)
 ●   Configure Condor
 ●   Start Condor daemon(s)
 ●   Collect post-mortem monitoring info
 ●   Cleanup



UCSD Jan 17th 2012           Glidein internals      6
Downloading files
●     Files downloaded via HTTP
       ●   From both the factory and the frontend Web servers
       ●   Can use local Web proxy (e.g. Squid)
       ●   Mechanism tamper proof and cache coherent
           Factory node                                           glidein_startup
               HTTPd                                     ●   Load files
                                                             from factory Web
                                        Squid

                                                         ●   Load files
                                                             from frontend Web
           Frontend node                                 ●   Run executables
                                                         ●   Start Condor      Startd
               HTTPd                                     ●   Cleanup
                              Nothing will work
                              if HTTPd down!

    UCSD Jan 17th 2012               Glidein internals                                  7
URLs
 ●   All URLs passed to glidein_startup
     as arguments
      ●   Factory Web server
      ●   Frontend Web server
      ●   Squid, if any
 ●   glidein_startup arguments defined
     by the factory
      ●   Frontend Web URL passed to the Factory via
          request ClassAd

UCSD Jan 17th 2012          Glidein internals          8
Cache coherence
 ●   Files never change,                ●    There is a (set of)
     once uploaded to the                    logical to physical
     Web area                                name map files
                                                 ●   *_file_list.id.lst
 ●   If the source file
     changes, a file with a
                                        ●    The names of the list
     different name is                       files are in
     created on the Web                          ●   description.id.cfg
     area                                        ●   The id of this list is
                                                     passed as an
      ●   Essentially                                argument
                        Frontend ids
          fname.date    passed to the                to glidein_startup
                        factory via ClassAd

UCSD Jan 17th 2012           Glidein internals                                9
Making the download tamper proof
 ●   Verifying SHA1                    ●    The hash of the
     hashes                                 signature file a        Frontend hash
      ●   Each file has a SHA1              parameter of                 passed to
                                                                       the factory
          associated with it                glidein_startup           via ClassAd
 ●   The hashes delivered                       ●   This is guaranteed to
     in a single file                               be secure with GRAM
      ●   signature.id.sha1
      ●   List of (fname,hash)
                                       ●    Description file hash
          pairs                             in the signature file
 ●   Signature file id in the                   ●   Still safe even if
     description file                               loaded out of order

UCSD Jan 17th 2012          Glidein internals                               10
Example Web area
                                   Frontend         Factory

                                                                     Globus

                                                             glidein_startup




                                              ...



                                                         .
                                                    ..




UCSD Jan 17th 2012   Glidein internals                                   11
Node validation
 ●   Run scripts / plugins provided by both
     factory and frontend
      ●   The map file has a flag to distinguish
          scripts from “regular” files
                     # Outfile           InFile                     Exec/other
                      # Outfile            InFile                    Exec/other
                     #########################################################
                      #########################################################
                     constants.cfg       constants.b8ifnW.cfg       regular
                      constants.cfg        constants.b8ifnW.cfg      regular
                     cat_consts.sh       cat_consts.b8ifnW.sh       exec
                      cat_consts.sh        cat_consts.b8ifnW.sh      exec
                     set_home_cms.source set_home_cms.b8ifnW.source wrapper
                      set_home_cms.source set_home_cms.b8ifnW.source wrapper
 ●   If a script returns with exit_code !=0,
     glidein_startup stops execution
      ●   Condor never started → no user jobs ever pulled
      ●   Will sleep for 20 mins → blackhole protection

UCSD Jan 17th 2012                    Glidein internals                           12
Condor configuration
 ●   Condor config values coming from files
     downloaded by glidein_startup
      ●   Static from both factory and frontend config files
      ●   More details at         http://tinyurl.com/glideinWMS/doc.prd/factory/custom_vars.html

 ●   Scripts can add, alter or delete any attribute
      ●   Based on dynamic information
      ●   Either discovered on the WN
          or by combining info from various sources
      ●   More details at http://tinyurl.com/glideinWMS/doc.prd/factory/custom_scripts.html

UCSD Jan 17th 2012                      Glidein internals                                     13
Example (pseudo-)script

                 ## check ifCMSSW installed locally
                    check if CMSSW installed locally
                 ifif [-f-f"$CMSSW" ];];then
                    [       "$CMSSW" then
                     ## get the other env
                        get the other env
                     source "$CMSSW"
                       source "$CMSSW"
                 else
                   else
                     ## fail validation
                        fail validation
                     echo "CMSSW not found!n" 1>&2
                       echo "CMSSW not found!n" 1>&2
                     exit 11
                       exit
                 fifi

                 ## publish to Condor
                   publish to Condor
                 add_config_line "CMSSW_LIST" "$CMS_SW_LIST"
                  add_config_line "CMSSW_LIST" "$CMS_SW_LIST"
                 add_condor_vars_line "CMSSW_LIST" "S" "-" "+" "Y" "Y" "-"
                  add_condor_vars_line "CMSSW_LIST" "S" "-" "+" "Y" "Y" "-"
                 ## if Igot here, passed validation
                   if I got here, passed validation
                 exit 00
                  exit

                     More details at http://tinyurl.com/glideinWMS/doc.prd/factory/custom_scripts.html


UCSD Jan 17th 2012                                  Glidein internals                                    14
Example Frontend attr
 ●   START expression
      ●   As GLIDECLIENT_Group_Start
      ●   Automatically && with Factory provided one


GLIDECLIENT_Group_Start =
  (stringListMember(GLIDEIN_SEs,
                    DESIRED_SEs)=?=True) ||
  (stringListMember(GLIDEIN_Site,
                    DESIRED_Sites=?=True))


            More details at http://tinyurl.com/glideinWMS/doc.prd/factory/custom_vars.html

UCSD Jan 17th 2012                             Glidein internals                             15
Condor startup
 ●   After validation and configuration,
     glidein just start condor_master
      ●   Which in turn start condor_startd
 ●   It is just regular Condor from here on
      ●   Any policy the VO needs must be part of
          Condor configuration
                                       Central manager
                     Submit node
                                                         Execution node
                                            Collector
                      Schedd                             glidein_startup
                                           Negotiator

                                                            Startd


UCSD Jan 17th 2012                 Glidein internals                       16
Post mortem monitoring
 ●   After a glidein terminates, the logs are sent
     back to the Factory
 ●   Frontend does not have access to them
      ●   Work in progress for future glideinWMS release
      ●   For now, ask Factory admins if debugging




UCSD Jan 17th 2012           Glidein internals             17
Cleanup
 ●   glidein_startup will remove all files
     before terminating
      ●   Unless killed by the OS, of course
      ●   Condor does something similar for the user jobs
          disk area after every job
 ●   Users should not expect anything to survive
     their jobs




UCSD Jan 17th 2012           Glidein internals              18
Glidein lifetime




UCSD Jan 17th 2012        Glidein internals   19
Glidein lifetime
 ●   Glideins are temporary resources
      ●   Must go away after some time
 ●   We want them to go away by their own will
      ●   So we can monitor progress and clean up
      ●   As opposed to being killed by Grid batch system
 ●   Condor daemons configured to
     die by themselves
      ●   Just need to tell them when


UCSD Jan 17th 2012           Glidein internals              20
Limiting glidein lifetime
 ●   Hard End-of-Life deadline
      ●   Condor will terminate if it is ever reached
      ●   Any jobs running at that point in time will be killed
           –   Resulting in waste
 ●   Deadline site specific
      ●   Set by the Factory
      ●   Controlled by GLIDEIN_Max_Walltime
 ●   Condor advertises it in the glidein ClassAd
      ●   Attribute GLIDEIN_ToDie

UCSD Jan 17th 2012                  Glidein internals             21
Deadline for job startup
 ●   Starting jobs just to kill them wasteful
      ●   Glideins set an earlier deadline for job startup
      ●   After the deadline, Condor will terminate at job end
      ●   Advertised as GLIDEIN_TORETIRE
 ●   Need to know how long is the
                                                      Default exists but
     expected job lifetime                            don't count on it

      ●   Should be provided by the Frontend
      ●   Parameter GLIDEIN_Job_Max_Time
      ●   ToRetire=Max_Walltime-Job_Max_Time

UCSD Jan 17th 2012            Glidein internals                      22
Termination due to non-use
 ●   glideins will self-terminate if not used, too
      ●   To limit waste
 ●   Reasons for hitting this
      ●   No more user jobs (spikes)
      ●   Policy problems (Frontend vs Negotiator)
 ●   Typically uniform across the Condor pool
      ●   Can be set by either Frontend or Factory
      ●   Controlled by GLIDEIN_Max_Idle
                                                 To give Negotiator
      ●   Defaults to 20 mins                    the time to match
                                                 the glidein
UCSD Jan 17th 2012           Glidein internals                        23
Finer grained policies
●    Job_Max_Time is the typical expected job lifetime
      ●   What if not all jobs have the same lifetime?
●    Use Condor matchmaking to define
     finer grained policies
      ●   To prevent long jobs from starting if they are
          expected to be killed before terminating
      ●   This allows (lower priority) shorter jobs to use the CPU
      ●   Or waste just 20 mins (instead of hours)
●    Job lifetime can be difficult to know
      ●   Even users often don't know
      ●   Can refine after restarts (assuming they are deterministic)
    UCSD Jan 17th 2012                Glidein internals                 24
Example START expression
 ●   Have two different thresholds
      ●   One for first startup, one for all following
      ●   Useful when wide dynamic range, unpredictable

GLIDECLIENT_Start =
 ifthenelse(
    LastVacateTime=?=UNDEFINED,
    NormMaxWallTime < (GLIDEIN_ToDie-MyCurrentTime),
    MaxWallTime < (GLIDEIN_ToDie-MyCurrentTime)
  )


UCSD Jan 17th 2012             Glidein internals          25
Other sources of waste
 ●   Glideins must stay within the limits of the
     resource lease
      ●   Typical limit is on memory usage
          OSG Factory defines GLIDEIN_MaxMemMBs
 ●   If user jobs exceed that limit, the glideins may
     be killed by the resource provider
     (e.g. Grid batch system)
      ●   Resulting in the user job being killed, too
      ●   Thus waste


UCSD Jan 17th 2012            Glidein internals         26
Example START expression
 ●   Prevent startup of jobs that are known to use too
     much memory
      ●
          Unless user defines it, known only at 2nd re-run
 ●   Also kill jobs as soon as they pass that
      ●   So we don't have to start a new glidein for other jobs

GLIDECLIENT_Start =
  ImageSize<=(GLIDEIN_MaxMemMBs*1024)

PREEMPT =
  ImageSize>(GLIDEIN_MaxMemMBs*1024)
          More details at http://research.cs.wisc.edu/condor/manual/v7.6/10_Appendix_A.html#82447

UCSD Jan 17th 2012                            Glidein internals                                     27
Security considerations




UCSD Jan 17th 2012   Glidein internals   28
Talking to the rest of Condor
 ●    Glideins will talk over            ●    Collector and glidein
      WAN to the rest of                      must whitelist each
      Condor                                  other
       ●   Strong security a must        ●    Schedd and glidein
Central manager
                                              trusted indirectly
     Collector                                    ●   Security token
  Negotiator                                          through Collector
 Submit node                                                 Execution node
                          AN
                                                              glidein_startup
     Schedd
                         W


                                                                 Startd


UCSD Jan 17th 2012            Glidein internals                                 29
Multi User Pilot Jobs
 ●   A glidein typically starts with a proxy that is not
     representing a specific user
      ●   Very few exceptions (e.g. CMS Organized Reco)
 ●   Three potential security issues:
      ●   Site does not know who the final user is
          (and thus cannot ban specific users, if needed)
      ●   If 2 glideins land on the same node, 2 users may be
          running as the same UID (no system protection)
      ●   User and pilot code run as the same UID
          (no system protection)

UCSD Jan 17th 2012           Glidein internals              30
glexec
 ●   We have one tool that can help us with all 3
      ●   Namely glexec
 ●   glexec provides UID switching
      ●   But must be installed by the Site on WNs
      ●   Only a subset of sites have done it so far
 ●   glexec requires a valid proxy from
     the final users on the submit node
      ●   Or jobs will not match
      ●   Not a problem for long time Grid users, like CMS,
          but it may be for other VOs

UCSD Jan 17th 2012            Glidein internals               31
glexec in a picture
                                                         Legend
                        Central manager                           Pilot UID
                           Collector                              User UID

                          Negotiator
     Submit node
     Submit node
                                                     Execution node
     Submit node
                                                    glidein
       Schedd                                          Startd


                                                    glexec         Job




UCSD Jan 17th 2012              Glidein internals                             32
glexec, cont
 ●   It is in VO best interest to use glexec
      ●   Only way to have a secure MUPJ system
      ●   Should push sites to deploy it
 ●   Some sites require glexec for their own interest
      ●   To cryptographically know who the final users are
      ●   To easily ban users                       May be a legal
                                                    requirement
 ●   Note on site banning
      ●   Condor currently does not handle well glexec
          failures – VO admin must look for this

UCSD Jan 17th 2012              Glidein internals                    33
Turning on glexec
 ●   Factory provides information about glexec
     installation at site
      ●   Attribute GLEXEC_BIN = NONE | OSG | glite
 ●   Frontend decides if it should be used
      ●   Parameter GLIDEIN_Glexec_Use
      ●   Possible values:
           –   NEVER    - Do not use, even if available
           –   OPTIONAL - Use whenever available
           –   REQUIRED - Only use sites that provide glexec


UCSD Jan 17th 2012               Glidein internals             34
THE END




UCSD Jan 17th 2012    Glidein internals   35
Pointers
 ●   The official project Web page is
     http://tinyurl.com/glideinWMS
 ●   glideinWMS development team is reachable at
     glideinwms-support@fnal.gov
 ●   CMS AnaOps Frontend at UCSD
     http://glidein-collector.t2.ucsd.edu:8319/vofrontend/monitor/frontend_UCSD-v5_2/frontendStatus.html




UCSD Jan 17th 2012                              Glidein internals                                          36
Acknowledgments
 ●   The glideinWMS is a CMS-led project
     developed mostly at FNAL, with contributions
     from UCSD and ISI
 ●   The glideinWMS factory operations at UCSD is
     sponsored by OSG
 ●   The funding comes from NSF, DOE and the
     UC system




UCSD Jan 17th 2012        Glidein internals         37

More Related Content

Viewers also liked

ภูกระดึง จ
ภูกระดึง จภูกระดึง จ
ภูกระดึง จsensetthabut
 
Known HTCondor break points
Known HTCondor break pointsKnown HTCondor break points
Known HTCondor break points
Igor Sfiligoi
 
An argument for moving the requirements out of user hands - The CMS Experience
An argument for moving the requirements out of user hands - The CMS ExperienceAn argument for moving the requirements out of user hands - The CMS Experience
An argument for moving the requirements out of user hands - The CMS Experience
Igor Sfiligoi
 
Theresa regli bw-3
Theresa regli bw-3Theresa regli bw-3
Theresa regli bw-3
R Aunpad
 
Augmenting Big Data Analytics with Nirvana
Augmenting Big Data Analytics with NirvanaAugmenting Big Data Analytics with Nirvana
Augmenting Big Data Analytics with Nirvana
Igor Sfiligoi
 
Rph t1
Rph t1Rph t1

Viewers also liked (6)

ภูกระดึง จ
ภูกระดึง จภูกระดึง จ
ภูกระดึง จ
 
Known HTCondor break points
Known HTCondor break pointsKnown HTCondor break points
Known HTCondor break points
 
An argument for moving the requirements out of user hands - The CMS Experience
An argument for moving the requirements out of user hands - The CMS ExperienceAn argument for moving the requirements out of user hands - The CMS Experience
An argument for moving the requirements out of user hands - The CMS Experience
 
Theresa regli bw-3
Theresa regli bw-3Theresa regli bw-3
Theresa regli bw-3
 
Augmenting Big Data Analytics with Nirvana
Augmenting Big Data Analytics with NirvanaAugmenting Big Data Analytics with Nirvana
Augmenting Big Data Analytics with Nirvana
 
Rph t1
Rph t1Rph t1
Rph t1
 

Similar to Glidein startup Internals and Glidein configuration - glideinWMS Training Jan 2012

glideinWMS Architecture - glideinWMS Training Jan 2012
glideinWMS Architecture - glideinWMS Training Jan 2012glideinWMS Architecture - glideinWMS Training Jan 2012
glideinWMS Architecture - glideinWMS Training Jan 2012
Igor Sfiligoi
 
Matchmaking in glideinWMS in CMS
Matchmaking in glideinWMS in CMSMatchmaking in glideinWMS in CMS
Matchmaking in glideinWMS in CMS
Igor Sfiligoi
 
Pilot Factory
Pilot FactoryPilot Factory
Monitoring and troubleshooting a glideinWMS-based HTCondor pool
Monitoring and troubleshooting a glideinWMS-based HTCondor poolMonitoring and troubleshooting a glideinWMS-based HTCondor pool
Monitoring and troubleshooting a glideinWMS-based HTCondor pool
Igor Sfiligoi
 
Introduction to glideinWMS
Introduction to glideinWMSIntroduction to glideinWMS
Introduction to glideinWMS
Igor Sfiligoi
 
Condor from the user point of view - glideinWMS Training Jan 2012
Condor from the user point of view - glideinWMS Training Jan 2012Condor from the user point of view - glideinWMS Training Jan 2012
Condor from the user point of view - glideinWMS Training Jan 2012
Igor Sfiligoi
 
Wedding convenience and control with RemoteCondor
Wedding convenience and control with RemoteCondorWedding convenience and control with RemoteCondor
Wedding convenience and control with RemoteCondor
Igor Sfiligoi
 
Developing Android Platform Tools
Developing Android Platform ToolsDeveloping Android Platform Tools
Developing Android Platform Tools
Opersys inc.
 
Solving Grid problems through glidein monitoring
Solving Grid problems through glidein monitoringSolving Grid problems through glidein monitoring
Solving Grid problems through glidein monitoring
Igor Sfiligoi
 
Apache Spark - Running on a Cluster | Big Data Hadoop Spark Tutorial | CloudxLab
Apache Spark - Running on a Cluster | Big Data Hadoop Spark Tutorial | CloudxLabApache Spark - Running on a Cluster | Big Data Hadoop Spark Tutorial | CloudxLab
Apache Spark - Running on a Cluster | Big Data Hadoop Spark Tutorial | CloudxLab
CloudxLab
 
Condor overview - glideinWMS Training Jan 2012
Condor overview - glideinWMS Training Jan 2012Condor overview - glideinWMS Training Jan 2012
Condor overview - glideinWMS Training Jan 2012
Igor Sfiligoi
 
The glideinWMS approach to the ownership of System Images in the Cloud World
The glideinWMS approach to the ownership of System Images in the Cloud WorldThe glideinWMS approach to the ownership of System Images in the Cloud World
The glideinWMS approach to the ownership of System Images in the Cloud World
Igor Sfiligoi
 
Dev + DevOps для PHP розробника
Dev + DevOps для PHP розробникаDev + DevOps для PHP розробника
Dev + DevOps для PHP розробника
phpfriendsclub
 
Improving Engineering Processes using Hudson - Spark IT 2010
Improving Engineering Processes using Hudson - Spark IT 2010Improving Engineering Processes using Hudson - Spark IT 2010
Improving Engineering Processes using Hudson - Spark IT 2010
Arun Gupta
 
Pluggable web app using Angular (Odessa JS conf)
Pluggable web app using Angular (Odessa JS conf)Pluggable web app using Angular (Odessa JS conf)
Pluggable web app using Angular (Odessa JS conf)
Saif Jerbi
 
Saint2012 mod process security
Saint2012 mod process securitySaint2012 mod process security
Saint2012 mod process security
Ryosuke MATSUMOTO
 
Android Attacks
Android AttacksAndroid Attacks
Android Attacks
Michael Scovetta
 
GIT Introduction
GIT IntroductionGIT Introduction
GIT Introduction
Raiful Hasan
 
glideinWMS Training Jan 2012 - Condor tuning
glideinWMS Training Jan 2012 - Condor tuningglideinWMS Training Jan 2012 - Condor tuning
glideinWMS Training Jan 2012 - Condor tuning
Igor Sfiligoi
 
Path to Surfdroid
Path to SurfdroidPath to Surfdroid

Similar to Glidein startup Internals and Glidein configuration - glideinWMS Training Jan 2012 (20)

glideinWMS Architecture - glideinWMS Training Jan 2012
glideinWMS Architecture - glideinWMS Training Jan 2012glideinWMS Architecture - glideinWMS Training Jan 2012
glideinWMS Architecture - glideinWMS Training Jan 2012
 
Matchmaking in glideinWMS in CMS
Matchmaking in glideinWMS in CMSMatchmaking in glideinWMS in CMS
Matchmaking in glideinWMS in CMS
 
Pilot Factory
Pilot FactoryPilot Factory
Pilot Factory
 
Monitoring and troubleshooting a glideinWMS-based HTCondor pool
Monitoring and troubleshooting a glideinWMS-based HTCondor poolMonitoring and troubleshooting a glideinWMS-based HTCondor pool
Monitoring and troubleshooting a glideinWMS-based HTCondor pool
 
Introduction to glideinWMS
Introduction to glideinWMSIntroduction to glideinWMS
Introduction to glideinWMS
 
Condor from the user point of view - glideinWMS Training Jan 2012
Condor from the user point of view - glideinWMS Training Jan 2012Condor from the user point of view - glideinWMS Training Jan 2012
Condor from the user point of view - glideinWMS Training Jan 2012
 
Wedding convenience and control with RemoteCondor
Wedding convenience and control with RemoteCondorWedding convenience and control with RemoteCondor
Wedding convenience and control with RemoteCondor
 
Developing Android Platform Tools
Developing Android Platform ToolsDeveloping Android Platform Tools
Developing Android Platform Tools
 
Solving Grid problems through glidein monitoring
Solving Grid problems through glidein monitoringSolving Grid problems through glidein monitoring
Solving Grid problems through glidein monitoring
 
Apache Spark - Running on a Cluster | Big Data Hadoop Spark Tutorial | CloudxLab
Apache Spark - Running on a Cluster | Big Data Hadoop Spark Tutorial | CloudxLabApache Spark - Running on a Cluster | Big Data Hadoop Spark Tutorial | CloudxLab
Apache Spark - Running on a Cluster | Big Data Hadoop Spark Tutorial | CloudxLab
 
Condor overview - glideinWMS Training Jan 2012
Condor overview - glideinWMS Training Jan 2012Condor overview - glideinWMS Training Jan 2012
Condor overview - glideinWMS Training Jan 2012
 
The glideinWMS approach to the ownership of System Images in the Cloud World
The glideinWMS approach to the ownership of System Images in the Cloud WorldThe glideinWMS approach to the ownership of System Images in the Cloud World
The glideinWMS approach to the ownership of System Images in the Cloud World
 
Dev + DevOps для PHP розробника
Dev + DevOps для PHP розробникаDev + DevOps для PHP розробника
Dev + DevOps для PHP розробника
 
Improving Engineering Processes using Hudson - Spark IT 2010
Improving Engineering Processes using Hudson - Spark IT 2010Improving Engineering Processes using Hudson - Spark IT 2010
Improving Engineering Processes using Hudson - Spark IT 2010
 
Pluggable web app using Angular (Odessa JS conf)
Pluggable web app using Angular (Odessa JS conf)Pluggable web app using Angular (Odessa JS conf)
Pluggable web app using Angular (Odessa JS conf)
 
Saint2012 mod process security
Saint2012 mod process securitySaint2012 mod process security
Saint2012 mod process security
 
Android Attacks
Android AttacksAndroid Attacks
Android Attacks
 
GIT Introduction
GIT IntroductionGIT Introduction
GIT Introduction
 
glideinWMS Training Jan 2012 - Condor tuning
glideinWMS Training Jan 2012 - Condor tuningglideinWMS Training Jan 2012 - Condor tuning
glideinWMS Training Jan 2012 - Condor tuning
 
Path to Surfdroid
Path to SurfdroidPath to Surfdroid
Path to Surfdroid
 

More from Igor Sfiligoi

Preparing Fusion codes for Perlmutter - CGYRO
Preparing Fusion codes for Perlmutter - CGYROPreparing Fusion codes for Perlmutter - CGYRO
Preparing Fusion codes for Perlmutter - CGYRO
Igor Sfiligoi
 
O&C Meeting - Evaluation of ARM CPUs for IceCube available through Google Kub...
O&C Meeting - Evaluation of ARM CPUs for IceCube available through Google Kub...O&C Meeting - Evaluation of ARM CPUs for IceCube available through Google Kub...
O&C Meeting - Evaluation of ARM CPUs for IceCube available through Google Kub...
Igor Sfiligoi
 
Comparing single-node and multi-node performance of an important fusion HPC c...
Comparing single-node and multi-node performance of an important fusion HPC c...Comparing single-node and multi-node performance of an important fusion HPC c...
Comparing single-node and multi-node performance of an important fusion HPC c...
Igor Sfiligoi
 
The anachronism of whole-GPU accounting
The anachronism of whole-GPU accountingThe anachronism of whole-GPU accounting
The anachronism of whole-GPU accounting
Igor Sfiligoi
 
Auto-scaling HTCondor pools using Kubernetes compute resources
Auto-scaling HTCondor pools using Kubernetes compute resourcesAuto-scaling HTCondor pools using Kubernetes compute resources
Auto-scaling HTCondor pools using Kubernetes compute resources
Igor Sfiligoi
 
Speeding up bowtie2 by improving cache-hit rate
Speeding up bowtie2 by improving cache-hit rateSpeeding up bowtie2 by improving cache-hit rate
Speeding up bowtie2 by improving cache-hit rate
Igor Sfiligoi
 
Performance Optimization of CGYRO for Multiscale Turbulence Simulations
Performance Optimization of CGYRO for Multiscale Turbulence SimulationsPerformance Optimization of CGYRO for Multiscale Turbulence Simulations
Performance Optimization of CGYRO for Multiscale Turbulence Simulations
Igor Sfiligoi
 
Comparing GPU effectiveness for Unifrac distance compute
Comparing GPU effectiveness for Unifrac distance computeComparing GPU effectiveness for Unifrac distance compute
Comparing GPU effectiveness for Unifrac distance compute
Igor Sfiligoi
 
Managing Cloud networking costs for data-intensive applications by provisioni...
Managing Cloud networking costs for data-intensive applications by provisioni...Managing Cloud networking costs for data-intensive applications by provisioni...
Managing Cloud networking costs for data-intensive applications by provisioni...
Igor Sfiligoi
 
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory AccessAccelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
Igor Sfiligoi
 
Using A100 MIG to Scale Astronomy Scientific Output
Using A100 MIG to Scale Astronomy Scientific OutputUsing A100 MIG to Scale Astronomy Scientific Output
Using A100 MIG to Scale Astronomy Scientific Output
Igor Sfiligoi
 
Using commercial Clouds to process IceCube jobs
Using commercial Clouds to process IceCube jobsUsing commercial Clouds to process IceCube jobs
Using commercial Clouds to process IceCube jobs
Igor Sfiligoi
 
Modest scale HPC on Azure using CGYRO
Modest scale HPC on Azure using CGYROModest scale HPC on Azure using CGYRO
Modest scale HPC on Azure using CGYRO
Igor Sfiligoi
 
Data-intensive IceCube Cloud Burst
Data-intensive IceCube Cloud BurstData-intensive IceCube Cloud Burst
Data-intensive IceCube Cloud Burst
Igor Sfiligoi
 
Scheduling a Kubernetes Federation with Admiralty
Scheduling a Kubernetes Federation with AdmiraltyScheduling a Kubernetes Federation with Admiralty
Scheduling a Kubernetes Federation with Admiralty
Igor Sfiligoi
 
Accelerating microbiome research with OpenACC
Accelerating microbiome research with OpenACCAccelerating microbiome research with OpenACC
Accelerating microbiome research with OpenACC
Igor Sfiligoi
 
Demonstrating a Pre-Exascale, Cost-Effective Multi-Cloud Environment for Scie...
Demonstrating a Pre-Exascale, Cost-Effective Multi-Cloud Environment for Scie...Demonstrating a Pre-Exascale, Cost-Effective Multi-Cloud Environment for Scie...
Demonstrating a Pre-Exascale, Cost-Effective Multi-Cloud Environment for Scie...
Igor Sfiligoi
 
Porting and optimizing UniFrac for GPUs
Porting and optimizing UniFrac for GPUsPorting and optimizing UniFrac for GPUs
Porting and optimizing UniFrac for GPUs
Igor Sfiligoi
 
Demonstrating 100 Gbps in and out of the public Clouds
Demonstrating 100 Gbps in and out of the public CloudsDemonstrating 100 Gbps in and out of the public Clouds
Demonstrating 100 Gbps in and out of the public Clouds
Igor Sfiligoi
 
TransAtlantic Networking using Cloud links
TransAtlantic Networking using Cloud linksTransAtlantic Networking using Cloud links
TransAtlantic Networking using Cloud links
Igor Sfiligoi
 

More from Igor Sfiligoi (20)

Preparing Fusion codes for Perlmutter - CGYRO
Preparing Fusion codes for Perlmutter - CGYROPreparing Fusion codes for Perlmutter - CGYRO
Preparing Fusion codes for Perlmutter - CGYRO
 
O&C Meeting - Evaluation of ARM CPUs for IceCube available through Google Kub...
O&C Meeting - Evaluation of ARM CPUs for IceCube available through Google Kub...O&C Meeting - Evaluation of ARM CPUs for IceCube available through Google Kub...
O&C Meeting - Evaluation of ARM CPUs for IceCube available through Google Kub...
 
Comparing single-node and multi-node performance of an important fusion HPC c...
Comparing single-node and multi-node performance of an important fusion HPC c...Comparing single-node and multi-node performance of an important fusion HPC c...
Comparing single-node and multi-node performance of an important fusion HPC c...
 
The anachronism of whole-GPU accounting
The anachronism of whole-GPU accountingThe anachronism of whole-GPU accounting
The anachronism of whole-GPU accounting
 
Auto-scaling HTCondor pools using Kubernetes compute resources
Auto-scaling HTCondor pools using Kubernetes compute resourcesAuto-scaling HTCondor pools using Kubernetes compute resources
Auto-scaling HTCondor pools using Kubernetes compute resources
 
Speeding up bowtie2 by improving cache-hit rate
Speeding up bowtie2 by improving cache-hit rateSpeeding up bowtie2 by improving cache-hit rate
Speeding up bowtie2 by improving cache-hit rate
 
Performance Optimization of CGYRO for Multiscale Turbulence Simulations
Performance Optimization of CGYRO for Multiscale Turbulence SimulationsPerformance Optimization of CGYRO for Multiscale Turbulence Simulations
Performance Optimization of CGYRO for Multiscale Turbulence Simulations
 
Comparing GPU effectiveness for Unifrac distance compute
Comparing GPU effectiveness for Unifrac distance computeComparing GPU effectiveness for Unifrac distance compute
Comparing GPU effectiveness for Unifrac distance compute
 
Managing Cloud networking costs for data-intensive applications by provisioni...
Managing Cloud networking costs for data-intensive applications by provisioni...Managing Cloud networking costs for data-intensive applications by provisioni...
Managing Cloud networking costs for data-intensive applications by provisioni...
 
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory AccessAccelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
Accelerating Key Bioinformatics Tasks 100-fold by Improving Memory Access
 
Using A100 MIG to Scale Astronomy Scientific Output
Using A100 MIG to Scale Astronomy Scientific OutputUsing A100 MIG to Scale Astronomy Scientific Output
Using A100 MIG to Scale Astronomy Scientific Output
 
Using commercial Clouds to process IceCube jobs
Using commercial Clouds to process IceCube jobsUsing commercial Clouds to process IceCube jobs
Using commercial Clouds to process IceCube jobs
 
Modest scale HPC on Azure using CGYRO
Modest scale HPC on Azure using CGYROModest scale HPC on Azure using CGYRO
Modest scale HPC on Azure using CGYRO
 
Data-intensive IceCube Cloud Burst
Data-intensive IceCube Cloud BurstData-intensive IceCube Cloud Burst
Data-intensive IceCube Cloud Burst
 
Scheduling a Kubernetes Federation with Admiralty
Scheduling a Kubernetes Federation with AdmiraltyScheduling a Kubernetes Federation with Admiralty
Scheduling a Kubernetes Federation with Admiralty
 
Accelerating microbiome research with OpenACC
Accelerating microbiome research with OpenACCAccelerating microbiome research with OpenACC
Accelerating microbiome research with OpenACC
 
Demonstrating a Pre-Exascale, Cost-Effective Multi-Cloud Environment for Scie...
Demonstrating a Pre-Exascale, Cost-Effective Multi-Cloud Environment for Scie...Demonstrating a Pre-Exascale, Cost-Effective Multi-Cloud Environment for Scie...
Demonstrating a Pre-Exascale, Cost-Effective Multi-Cloud Environment for Scie...
 
Porting and optimizing UniFrac for GPUs
Porting and optimizing UniFrac for GPUsPorting and optimizing UniFrac for GPUs
Porting and optimizing UniFrac for GPUs
 
Demonstrating 100 Gbps in and out of the public Clouds
Demonstrating 100 Gbps in and out of the public CloudsDemonstrating 100 Gbps in and out of the public Clouds
Demonstrating 100 Gbps in and out of the public Clouds
 
TransAtlantic Networking using Cloud links
TransAtlantic Networking using Cloud linksTransAtlantic Networking using Cloud links
TransAtlantic Networking using Cloud links
 

Recently uploaded

Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
Zilliz
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 

Recently uploaded (20)

Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Full-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalizationFull-RAG: A modern architecture for hyper-personalization
Full-RAG: A modern architecture for hyper-personalization
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 

Glidein startup Internals and Glidein configuration - glideinWMS Training Jan 2012

  • 1. glideinWMS Training @ UCSD Glidein startup Internals and Glidein configuration by Igor Sfiligoi (UCSD) UCSD Jan 17th 2012 Glidein internals 1
  • 2. Outline ● Glidein_startup internals ● Glidein lifetime ● Security considerations UCSD Jan 17th 2012 Glidein internals 2
  • 3. Refresher - What is a glidein? ● A glidein is just a properly configured execution node submitted as a Grid job Central manager glidein Execution node Collector glidein Execution node Negotiator Submit node Submit node glidein Execution node Submit node Execution node glidein Schedd Startd Job UCSD Jan 17th 2012 Glidein internals 3
  • 4. Refresher – Glidein startup ● glidein_startup configures and starts Condor Configure Condor G.N. Submit node Frontend node Worker node Monitor Submit node Frontend Condor glidein Central manager Startd Match CREAM Job Request glideins Factory node Condor glidein Execution node Globus Factory glidein Execution node Submit glideins UCSD Jan 17th 2012 Glidein internals 4
  • 5. glidein_startup Internals UCSD Jan 17th 2012 Glidein internals 5
  • 6. glidein_startup tasks ● Download scripts, parameters and Condor bins ● Validate node (environment) ● Configure Condor ● Start Condor daemon(s) ● Collect post-mortem monitoring info ● Cleanup UCSD Jan 17th 2012 Glidein internals 6
  • 7. Downloading files ● Files downloaded via HTTP ● From both the factory and the frontend Web servers ● Can use local Web proxy (e.g. Squid) ● Mechanism tamper proof and cache coherent Factory node glidein_startup HTTPd ● Load files from factory Web Squid ● Load files from frontend Web Frontend node ● Run executables ● Start Condor Startd HTTPd ● Cleanup Nothing will work if HTTPd down! UCSD Jan 17th 2012 Glidein internals 7
  • 8. URLs ● All URLs passed to glidein_startup as arguments ● Factory Web server ● Frontend Web server ● Squid, if any ● glidein_startup arguments defined by the factory ● Frontend Web URL passed to the Factory via request ClassAd UCSD Jan 17th 2012 Glidein internals 8
  • 9. Cache coherence ● Files never change, ● There is a (set of) once uploaded to the logical to physical Web area name map files ● *_file_list.id.lst ● If the source file changes, a file with a ● The names of the list different name is files are in created on the Web ● description.id.cfg area ● The id of this list is passed as an ● Essentially argument Frontend ids fname.date passed to the to glidein_startup factory via ClassAd UCSD Jan 17th 2012 Glidein internals 9
  • 10. Making the download tamper proof ● Verifying SHA1 ● The hash of the hashes signature file a Frontend hash ● Each file has a SHA1 parameter of passed to the factory associated with it glidein_startup via ClassAd ● The hashes delivered ● This is guaranteed to in a single file be secure with GRAM ● signature.id.sha1 ● List of (fname,hash) ● Description file hash pairs in the signature file ● Signature file id in the ● Still safe even if description file loaded out of order UCSD Jan 17th 2012 Glidein internals 10
  • 11. Example Web area Frontend Factory Globus glidein_startup ... . .. UCSD Jan 17th 2012 Glidein internals 11
  • 12. Node validation ● Run scripts / plugins provided by both factory and frontend ● The map file has a flag to distinguish scripts from “regular” files # Outfile InFile Exec/other # Outfile InFile Exec/other ######################################################### ######################################################### constants.cfg constants.b8ifnW.cfg regular constants.cfg constants.b8ifnW.cfg regular cat_consts.sh cat_consts.b8ifnW.sh exec cat_consts.sh cat_consts.b8ifnW.sh exec set_home_cms.source set_home_cms.b8ifnW.source wrapper set_home_cms.source set_home_cms.b8ifnW.source wrapper ● If a script returns with exit_code !=0, glidein_startup stops execution ● Condor never started → no user jobs ever pulled ● Will sleep for 20 mins → blackhole protection UCSD Jan 17th 2012 Glidein internals 12
  • 13. Condor configuration ● Condor config values coming from files downloaded by glidein_startup ● Static from both factory and frontend config files ● More details at http://tinyurl.com/glideinWMS/doc.prd/factory/custom_vars.html ● Scripts can add, alter or delete any attribute ● Based on dynamic information ● Either discovered on the WN or by combining info from various sources ● More details at http://tinyurl.com/glideinWMS/doc.prd/factory/custom_scripts.html UCSD Jan 17th 2012 Glidein internals 13
  • 14. Example (pseudo-)script ## check ifCMSSW installed locally check if CMSSW installed locally ifif [-f-f"$CMSSW" ];];then [ "$CMSSW" then ## get the other env get the other env source "$CMSSW" source "$CMSSW" else else ## fail validation fail validation echo "CMSSW not found!n" 1>&2 echo "CMSSW not found!n" 1>&2 exit 11 exit fifi ## publish to Condor publish to Condor add_config_line "CMSSW_LIST" "$CMS_SW_LIST" add_config_line "CMSSW_LIST" "$CMS_SW_LIST" add_condor_vars_line "CMSSW_LIST" "S" "-" "+" "Y" "Y" "-" add_condor_vars_line "CMSSW_LIST" "S" "-" "+" "Y" "Y" "-" ## if Igot here, passed validation if I got here, passed validation exit 00 exit More details at http://tinyurl.com/glideinWMS/doc.prd/factory/custom_scripts.html UCSD Jan 17th 2012 Glidein internals 14
  • 15. Example Frontend attr ● START expression ● As GLIDECLIENT_Group_Start ● Automatically && with Factory provided one GLIDECLIENT_Group_Start = (stringListMember(GLIDEIN_SEs, DESIRED_SEs)=?=True) || (stringListMember(GLIDEIN_Site, DESIRED_Sites=?=True)) More details at http://tinyurl.com/glideinWMS/doc.prd/factory/custom_vars.html UCSD Jan 17th 2012 Glidein internals 15
  • 16. Condor startup ● After validation and configuration, glidein just start condor_master ● Which in turn start condor_startd ● It is just regular Condor from here on ● Any policy the VO needs must be part of Condor configuration Central manager Submit node Execution node Collector Schedd glidein_startup Negotiator Startd UCSD Jan 17th 2012 Glidein internals 16
  • 17. Post mortem monitoring ● After a glidein terminates, the logs are sent back to the Factory ● Frontend does not have access to them ● Work in progress for future glideinWMS release ● For now, ask Factory admins if debugging UCSD Jan 17th 2012 Glidein internals 17
  • 18. Cleanup ● glidein_startup will remove all files before terminating ● Unless killed by the OS, of course ● Condor does something similar for the user jobs disk area after every job ● Users should not expect anything to survive their jobs UCSD Jan 17th 2012 Glidein internals 18
  • 19. Glidein lifetime UCSD Jan 17th 2012 Glidein internals 19
  • 20. Glidein lifetime ● Glideins are temporary resources ● Must go away after some time ● We want them to go away by their own will ● So we can monitor progress and clean up ● As opposed to being killed by Grid batch system ● Condor daemons configured to die by themselves ● Just need to tell them when UCSD Jan 17th 2012 Glidein internals 20
  • 21. Limiting glidein lifetime ● Hard End-of-Life deadline ● Condor will terminate if it is ever reached ● Any jobs running at that point in time will be killed – Resulting in waste ● Deadline site specific ● Set by the Factory ● Controlled by GLIDEIN_Max_Walltime ● Condor advertises it in the glidein ClassAd ● Attribute GLIDEIN_ToDie UCSD Jan 17th 2012 Glidein internals 21
  • 22. Deadline for job startup ● Starting jobs just to kill them wasteful ● Glideins set an earlier deadline for job startup ● After the deadline, Condor will terminate at job end ● Advertised as GLIDEIN_TORETIRE ● Need to know how long is the Default exists but expected job lifetime don't count on it ● Should be provided by the Frontend ● Parameter GLIDEIN_Job_Max_Time ● ToRetire=Max_Walltime-Job_Max_Time UCSD Jan 17th 2012 Glidein internals 22
  • 23. Termination due to non-use ● glideins will self-terminate if not used, too ● To limit waste ● Reasons for hitting this ● No more user jobs (spikes) ● Policy problems (Frontend vs Negotiator) ● Typically uniform across the Condor pool ● Can be set by either Frontend or Factory ● Controlled by GLIDEIN_Max_Idle To give Negotiator ● Defaults to 20 mins the time to match the glidein UCSD Jan 17th 2012 Glidein internals 23
  • 24. Finer grained policies ● Job_Max_Time is the typical expected job lifetime ● What if not all jobs have the same lifetime? ● Use Condor matchmaking to define finer grained policies ● To prevent long jobs from starting if they are expected to be killed before terminating ● This allows (lower priority) shorter jobs to use the CPU ● Or waste just 20 mins (instead of hours) ● Job lifetime can be difficult to know ● Even users often don't know ● Can refine after restarts (assuming they are deterministic) UCSD Jan 17th 2012 Glidein internals 24
  • 25. Example START expression ● Have two different thresholds ● One for first startup, one for all following ● Useful when wide dynamic range, unpredictable GLIDECLIENT_Start = ifthenelse( LastVacateTime=?=UNDEFINED, NormMaxWallTime < (GLIDEIN_ToDie-MyCurrentTime), MaxWallTime < (GLIDEIN_ToDie-MyCurrentTime) ) UCSD Jan 17th 2012 Glidein internals 25
  • 26. Other sources of waste ● Glideins must stay within the limits of the resource lease ● Typical limit is on memory usage OSG Factory defines GLIDEIN_MaxMemMBs ● If user jobs exceed that limit, the glideins may be killed by the resource provider (e.g. Grid batch system) ● Resulting in the user job being killed, too ● Thus waste UCSD Jan 17th 2012 Glidein internals 26
  • 27. Example START expression ● Prevent startup of jobs that are known to use too much memory ● Unless user defines it, known only at 2nd re-run ● Also kill jobs as soon as they pass that ● So we don't have to start a new glidein for other jobs GLIDECLIENT_Start = ImageSize<=(GLIDEIN_MaxMemMBs*1024) PREEMPT = ImageSize>(GLIDEIN_MaxMemMBs*1024) More details at http://research.cs.wisc.edu/condor/manual/v7.6/10_Appendix_A.html#82447 UCSD Jan 17th 2012 Glidein internals 27
  • 28. Security considerations UCSD Jan 17th 2012 Glidein internals 28
  • 29. Talking to the rest of Condor ● Glideins will talk over ● Collector and glidein WAN to the rest of must whitelist each Condor other ● Strong security a must ● Schedd and glidein Central manager trusted indirectly Collector ● Security token Negotiator through Collector Submit node Execution node AN glidein_startup Schedd W Startd UCSD Jan 17th 2012 Glidein internals 29
  • 30. Multi User Pilot Jobs ● A glidein typically starts with a proxy that is not representing a specific user ● Very few exceptions (e.g. CMS Organized Reco) ● Three potential security issues: ● Site does not know who the final user is (and thus cannot ban specific users, if needed) ● If 2 glideins land on the same node, 2 users may be running as the same UID (no system protection) ● User and pilot code run as the same UID (no system protection) UCSD Jan 17th 2012 Glidein internals 30
  • 31. glexec ● We have one tool that can help us with all 3 ● Namely glexec ● glexec provides UID switching ● But must be installed by the Site on WNs ● Only a subset of sites have done it so far ● glexec requires a valid proxy from the final users on the submit node ● Or jobs will not match ● Not a problem for long time Grid users, like CMS, but it may be for other VOs UCSD Jan 17th 2012 Glidein internals 31
  • 32. glexec in a picture Legend Central manager Pilot UID Collector User UID Negotiator Submit node Submit node Execution node Submit node glidein Schedd Startd glexec Job UCSD Jan 17th 2012 Glidein internals 32
  • 33. glexec, cont ● It is in VO best interest to use glexec ● Only way to have a secure MUPJ system ● Should push sites to deploy it ● Some sites require glexec for their own interest ● To cryptographically know who the final users are ● To easily ban users May be a legal requirement ● Note on site banning ● Condor currently does not handle well glexec failures – VO admin must look for this UCSD Jan 17th 2012 Glidein internals 33
  • 34. Turning on glexec ● Factory provides information about glexec installation at site ● Attribute GLEXEC_BIN = NONE | OSG | glite ● Frontend decides if it should be used ● Parameter GLIDEIN_Glexec_Use ● Possible values: – NEVER - Do not use, even if available – OPTIONAL - Use whenever available – REQUIRED - Only use sites that provide glexec UCSD Jan 17th 2012 Glidein internals 34
  • 35. THE END UCSD Jan 17th 2012 Glidein internals 35
  • 36. Pointers ● The official project Web page is http://tinyurl.com/glideinWMS ● glideinWMS development team is reachable at glideinwms-support@fnal.gov ● CMS AnaOps Frontend at UCSD http://glidein-collector.t2.ucsd.edu:8319/vofrontend/monitor/frontend_UCSD-v5_2/frontendStatus.html UCSD Jan 17th 2012 Glidein internals 36
  • 37. Acknowledgments ● The glideinWMS is a CMS-led project developed mostly at FNAL, with contributions from UCSD and ISI ● The glideinWMS factory operations at UCSD is sponsored by OSG ● The funding comes from NSF, DOE and the UC system UCSD Jan 17th 2012 Glidein internals 37