Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25398

As a developer I would like to inject cluster related settings defined in ezpublish.yml

    Details

      Description

      As a developer I would like to inject cluster related settings defined in ezpublish.yml

      At this moment we always have to define the cluster settings both on symfony and legacy.
      Example of my file.ini.append.php settings:

      [eZDFSClusteringSettings]
      DBHost=clusterhost
      DBPort=3306
      

      Example of my ezpublish.yml settings

      doctrine:
          dbal:
              connections:
                  default:
                      charset:  UTF8
                      driver:   pdo_mysql
                      port:     3306
                      host:     %mysql.server.ip%
                      dbname:   %database.name%
                      user:     %database.user%
                      password: %database.password%
                      server_version: 5.5
                  cluster:
                      charset:  UTF8
                      driver:   pdo_mysql
                      port:     3306
                      host:     %mysql.server.ip%
                      dbname:   %dfs.database.name%
                      user:     %dfs.database.user%
                      password: %dfs.database.password%
                      server_version: 5.5
      

      ez_io:
         metadata_handlers:
             dfs:
                 legacy_dfs_cluster:
                     connection: doctrine.dbal.cluster_connection
         binarydata_handlers:
             nfs:
                 flysystem:
                     adapter: nfs_adapter
      

      No injection is currently being done, so I have to always define the same settings twice (on symfony and legacy).
      Having these settings injected would be very useful.

        Activity

        Eduardo Fernandes (Inactive) created issue -
        Eduardo Fernandes (Inactive) made changes -
        Field Original Value New Value
        Description As a developer I would like to inject cluster related settings defined in ezpublish.yml

        At this moment we always have to define the cluster settings both on symfony and legacy:
        {noformat}
        [eZDFSClusteringSettings]
        DBHost=clusterhost
        DBPort=3306
        {noformat}

        that is what I have added into the ezpublish.yml
        {noformat}
        doctrine:
            dbal:
                connections:
                    default:
                        charset: UTF8
                        driver: pdo_mysql
                        port: 3306
                        host: %mariadb.server.ip%
                        dbname: %database.name%
                        user: %database.user%
                        password: %database.password%
                        server_version: 5.5
                    cluster:
                        charset: UTF8
                        driver: pdo_mysql
                        port: 3306
                        host: %mariadb.server.ip%
                        dbname: %dfs.database.name%
                        user: %dfs.database.user%
                        password: %dfs.database.password%
                        server_version: 5.5
        {noformat}

        {noformat}
        ez_io:
           metadata_handlers:
               dfs:
                   legacy_dfs_cluster:
                       connection: doctrine.dbal.cluster_connection
           binarydata_handlers:
               nfs:
                   flysystem:
                       adapter: nfs_adapter
        {noformat}


        No injection is currently being done, and it would be very useful.
        As a developer I would like to inject cluster related settings defined in ezpublish.yml

        At this moment we always have to define the cluster settings both on symfony and legacy.
        Example of my {{file.ini.append.php}} settings:
        {noformat}
        [eZDFSClusteringSettings]
        DBHost=clusterhost
        DBPort=3306
        {noformat}

        Example of my {{ezpublish.yml}} settings
        {noformat}
        doctrine:
            dbal:
                connections:
                    default:
                        charset: UTF8
                        driver: pdo_mysql
                        port: 3306
                        host: %mysql.server.ip%
                        dbname: %database.name%
                        user: %database.user%
                        password: %database.password%
                        server_version: 5.5
                    cluster:
                        charset: UTF8
                        driver: pdo_mysql
                        port: 3306
                        host: %mysql.server.ip%
                        dbname: %dfs.database.name%
                        user: %dfs.database.user%
                        password: %dfs.database.password%
                        server_version: 5.5
        {noformat}

        {noformat}
        ez_io:
           metadata_handlers:
               dfs:
                   legacy_dfs_cluster:
                       connection: doctrine.dbal.cluster_connection
           binarydata_handlers:
               nfs:
                   flysystem:
                       adapter: nfs_adapter
        {noformat}


        No injection is currently being done, and it would be very useful.
        Eduardo Fernandes (Inactive) made changes -
        Description As a developer I would like to inject cluster related settings defined in ezpublish.yml

        At this moment we always have to define the cluster settings both on symfony and legacy.
        Example of my {{file.ini.append.php}} settings:
        {noformat}
        [eZDFSClusteringSettings]
        DBHost=clusterhost
        DBPort=3306
        {noformat}

        Example of my {{ezpublish.yml}} settings
        {noformat}
        doctrine:
            dbal:
                connections:
                    default:
                        charset: UTF8
                        driver: pdo_mysql
                        port: 3306
                        host: %mysql.server.ip%
                        dbname: %database.name%
                        user: %database.user%
                        password: %database.password%
                        server_version: 5.5
                    cluster:
                        charset: UTF8
                        driver: pdo_mysql
                        port: 3306
                        host: %mysql.server.ip%
                        dbname: %dfs.database.name%
                        user: %dfs.database.user%
                        password: %dfs.database.password%
                        server_version: 5.5
        {noformat}

        {noformat}
        ez_io:
           metadata_handlers:
               dfs:
                   legacy_dfs_cluster:
                       connection: doctrine.dbal.cluster_connection
           binarydata_handlers:
               nfs:
                   flysystem:
                       adapter: nfs_adapter
        {noformat}


        No injection is currently being done, and it would be very useful.
        As a developer I would like to inject cluster related settings defined in ezpublish.yml

        At this moment we always have to define the cluster settings both on symfony and legacy.
        Example of my {{file.ini.append.php}} settings:
        {noformat}
        [eZDFSClusteringSettings]
        DBHost=clusterhost
        DBPort=3306
        {noformat}

        Example of my {{ezpublish.yml}} settings
        {noformat}
        doctrine:
            dbal:
                connections:
                    default:
                        charset: UTF8
                        driver: pdo_mysql
                        port: 3306
                        host: %mysql.server.ip%
                        dbname: %database.name%
                        user: %database.user%
                        password: %database.password%
                        server_version: 5.5
                    cluster:
                        charset: UTF8
                        driver: pdo_mysql
                        port: 3306
                        host: %mysql.server.ip%
                        dbname: %dfs.database.name%
                        user: %dfs.database.user%
                        password: %dfs.database.password%
                        server_version: 5.5
        {noformat}

        {noformat}
        ez_io:
           metadata_handlers:
               dfs:
                   legacy_dfs_cluster:
                       connection: doctrine.dbal.cluster_connection
           binarydata_handlers:
               nfs:
                   flysystem:
                       adapter: nfs_adapter
        {noformat}

        No injection is currently being done, so I have to always define the same settings twice (on symfony and legacy).
        Having these settings injected would be very useful.
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 97498 ] EZEE Development Workflow [ 107676 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Eduardo Fernandes (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: