oar-team / cigri

http://cigri.imag.fr
1 stars 1 forks source link

Adding the "site" keyword to JDL #27

Open jgaida opened 9 years ago

jgaida commented 9 years ago

To make it less confusing for G5K users, we might want to accept the keyword "site" in place of "clusters" in JDL:

    "clusters": {
         "nancy": {},
     "grenoble": {},
     "luxembourg": {},
     "lyon": {},
     "nantes": {},
     "rennes": {},
     "sophia": {}
     },
    "sites": {
         "nancy": {},
     "grenoble": {},
     "luxembourg": {},
     "lyon": {},
     "nantes": {},
     "rennes": {},
     "sophia": {}
     },

This does not have any impact for CIMENT.

bzizou commented 9 years ago

I don't like the idea of "less confusing for g5k users". It is a pure g5k point of view... But if we have a "site concept" (see #28 ), a cluster could be the name of a site to refer every clusters of a site. For example, we could mix clusters and sites:

"clusters": {
     "nancy": {},
     "genepi": {},
     "luxembourg": {},
 },
jgaida commented 9 years ago

And if you have both a cluster and the cluster site on the JDL? ie: "grenoble": {} "genepi": {}

bzizou commented 9 years ago

Well in that case, the smallest wins: apply the "grenoble" part to every clusters except for those listed, so "genepi" is an exception.

jgaida commented 9 years ago

Alternative 1: Global JDL settings are overridden by Cluster Settings, so it can be the same between grenoble and genepi, ie: for the genepi cluster, apply "grenoble" options, unless there are overriden by genepi-specific settings.

Alternative 2 (too complex?) :

"sites": {
     "grenoble": {
        "exec_file": "$HOME/path/script"
        "clusters": { 
           "genepi" : {
               "exec_file": "$HOME/path/script"
            }
      },
     "luxembourg": {},
 },