Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Acquia Cloud Platform入門:アプリケーション管理方法を学ぼう

Acquia Cloud Platform入門:アプリケーション管理方法を学ぼう

More Decks by アクイアジャパン Acquia Japan

Other Decks in Programming

Transcript

  1. Acquia Cloud Platformೖ໳ ɹΞδΣϯμ • Acquia Cloud Platformͷ༻ޠ • Acquia

    Cloud PlatformͰͷ 
 ΞϓϦέʔγϣϯ؅ཧ • ؀ڥͷ؅ཧ • ط஌ͷ໰୊ͱɺޓ׵ੑͷͳ͍Ϟδϡʔ ϧ/ιϑτ΢ΣΞ • Q&A ΞϓϦέʔγϣϯ؅ཧํ๏ 
 Λֶ΅͏
  2. Acquia Cloud Platformೖ໳΢ΣϏφʔγϦʔζ • Acquia Cloud Platform͸ɺDrupalΞϓϦέʔγϣϯΛߏஙɺ؅ ཧ͢ΔͨΊͷεέʔϥϒϧͰ҆શͳϓϥοτϑΥʔϜͰ͢ɻ 
 •

    ຊ΢ΣϏφʔγϦʔζͰ͸ɺAcquia Cloud Platform͕ͲΜͳ΋ ͷ͔ڵຯ͕͋Δํɺ͜Ε͔Β࢖͍࢝ΊΔํ޲͚ʹɺAcquia Cloud PlatformͰߦ͏DrupalΞϓϦέʔγϣϯ։ൃߏஙํ๏΍ ศརͳπʔϧͳͲΛ͝঺հ͠·͢ɻ
  3. Acquia Cloud Platform ͷ༻ޠ Acquia Cloud PlatformͰ࢖༻͞ΕΔ༻ޠΛҰ෦Λ͝঺հ͠·͢ɻʢABCॱʣ ༻ޠ આ໌ ؅ཧऀ

    (Administrator) Cloud PlatformͷΦʔΨχθʔγϣϯ্ͷશͯͷΞϓϦέʔγϣϯʹରͯ͠શݖݶΛ࣋ͭಛผͳϩʔϧͰ͢ɻ1ͭͷΦʔ Ψχθʔγϣϯʹෳ਺໊Λ؅ཧऀϩʔϧʹׂΓ౰ͯΒΕ·͢ɻ ΞϓϦέʔγϣϯ (Application) DrupalϕʔεͷWebαΠτ΍WebαʔϏεΛ࣮૷ͨ͠ιϑτ΢ΣΞ੡඼Ͱ͢ɻ ؀ڥ (Environment) ΞϓϦέʔγϣϯΛ։ൃɺςετɺެ։͢Δࡍʹɺ໌֬Ͱ੔વͱͨ͠ϫʔΫϑϩʔΛҡ࣋͢ΔͨΊʹ࢖༻Ͱ͖ΔɺΞ ϓϦέʔγϣϯ಺ͷಠཱͨ͠ྖҬͰ͢ɻ ΦʔΨχθʔγϣϯ (Organization) Cloud PlatformͷαϒεΫϦϓγϣϯɺΞϓϦέʔγϣϯɺνʔϜΛάϧʔϐϯάͨ͠΋ͷͰ͢ɻ Φʔφʔ (Owner) Cloud PlatformͷΦʔΨχθʔγϣϯ্ͷશͯͷΞϓϦέʔγϣϯʹରͯ͠શݖݶΛ࣋ͭಛผͳϩʔϧͰ͢ɻ1ͭͷΦʔ Ψχθʔγϣϯʹ1໊ͷΈΦʔφʔϩʔϧʹׂΓ౰ͯΒΕ·͢ɻ αϒεΫϦϓγϣϯ (Subscription) ΞΫΠΞ͔Βߪೖͨ͠Ұ࿈ͷݖརͰɺCloud Platform্ͰϗετͰ͖ΔΞϓϦέʔγϣϯͷ਺ɺΠϯϑϥߏ੒ɺαϙʔ τϨϕϧͳͲؚ͕·Ε·͢ɻ֤ΦʔΨχθʔγϣϯ͸1ͭҎ্ͷαϒεΫϦϓγϣϯΛ࣋ͭ͜ͱ͕Ͱ͖·͢ɻ νʔϜ (Team) ΞϓϦέʔγϣϯͷ։ൃɺ؅ཧΛߦ͏Ϣʔβʔͷू·ΓͰɺνʔϜ͸ΞϓϦέʔγϣϯʹରׂͯ͠Γ౰ͯΒΕ·͢ɻ https://docs.acquia.com/cloud-platform/glossary/ શͯͷϦετ͸ͪ͜Β →
  4. ֤༻ޠͷؔ܎ Organization Subscription Application Organization - Φʔφʔͱ؅ཧऀ͸ɺΦʔΨχθʔγϣϯԼͷશͯ ͷΞϓϦέʔγϣϯʹରͯ͠શݖݶΛ࣋ͪ·͢ɻΦʔΨχθʔγϣ ϯͷԼʹ1ͭҎ্ͷαϒεΫϦϓγϣϯΛ࣋ͭ͜ͱ͕Ͱ͖·͢ɻ Environment

    Subscription - αϒεΫϦϓγϣϯͷԼʹෳ਺ͷΞϓϦέʔ γϣϯΛ࣋ͭ͜ͱ͕Ͱ͖·͢ɻ Application - ΞϓϦέʔγϣϯͷԼʹෳ਺ͷ؀ڥΛ࣋ͭ͜ͱ ͕Ͱ͖·͢ɻ Φʔφʔ ؅ཧऀ ΦʔΨχθʔγϣϯԼͷશͯͷΞ ϓϦέʔγϣϯʹରͯ͠શݖݶ Λ࣋ͪ·͢ɻ νʔϜϝϯόʔ νʔϜ͸ΞϓϦέʔγϣϯʹ ରׂͯ͠Γ౰ͯΒΕ·͢ɻ
  5. ΞϓϦέʔγϣϯʢApplicationʣͱ͸ https://docs.acquia.com/cloud-platform/manage/#app Acquia Cloud PlatformͰ͸ɺDrupalϕʔεͷWebαΠτ΍Web αʔϏεΛ࣮૷ͨ͠ιϑτ΢ΣΞ੡඼ΛʮΞϓϦέʔγϣ ϯʯͱݺͼ·͢ɻ ಠࣗͷυϝΠϯɺಠࣗͷίϯςϯπΛ࣋ͭςετ؀ڥ΍ຊ൪؀ ڥͳͲҟͳΔ؀ڥʹΠϯετʔϧ͞ΕΔΞϓϦέʔγϣϯͱ ͸ผʹɺͦΕࣗମ͕Ұͭͷιϑτ΢ΣΞ੡඼Ͱ͋Δ͜ͱΛҙ

    ຯ͠·͢ɻ ΞϓϦέʔγϣϯ͸ɺDrupalίΞɺίϯτϦϏϡʔτϞδϡʔ ϧɺΧελϜϞδϡʔϧͳͲͷϓϩάϥϜίʔυͱɺը૾΍ CSSϑΝΠϧͳͲͷ੩తΞηοτͰߏ੒͞Ε·͢ɻ ͜ΕΒͻͱͭͻͱ͕ͭ 
 ΞϓϦέʔγϣϯ Developλϒ͔ΒΞϓϦέʔγϣϯͷҰཡ ͕֬ೝͰ͖·͢ɻ
  6. ΞϓϦέʔγϣϯ΁ͷૢ࡞ • ΞϓϦέʔγϣϯҰཡͷදࣔ • ΞϓϦέʔγϣϯͷ௥Ճ˞ • ΞϓϦέʔγϣϯͷ࡟আ˞ • ΞϓϦέʔγϣϯͷ໊લมߋ •

    ͳͲ ※ProfessionalϓϥϯͷΈɺ؅ཧը໘͔Βࣗ਎Ͱ௥Ճͱ࡟আ͕ߦ͑·͢ɻEnterpriseϓϥϯͷ৔߹͸Ӧۀ୲౰ʹ࿈བྷ͠·͢ɻ https://docs.acquia.com/cloud-platform/manage/applications/
  7. ϝχϡʔ߲໨ͷղઆ ΞϓϦέʔγϣϯ͕࣋ͭ؀ڥͷҰཡදࣔͱ ؅ཧΛߦ͍·͢ɻ Cloud Platformͷ؅ཧը໘ܦ༝ͰͷɺΞϓϦ έʔγϣϯͷػೳ΁ͷΞΫηε੍ݶʢIP੍ ݶɺೋஈ֊ೝূʣΛઃఆ͠·͢ɻ Acquia Connector΍Acquia SearchͳͲɺΞ

    ϓϦέʔγϣϯʹඥͮ͘αʔϏεɺπʔϧ ͷID΍ೝূΩʔΛ֬ೝ͠·͢ɻ Acquia SearchͷSolr 3/4Λ࢖༻͢Δ৔߹ʹ͜ ͷϝχϡʔ͔ΒઃఆΛߦ͍·͢ɻʢSolr 7Λ ࢖༻͢Δ৔߹͸؀ڥ͝ͱʹઃఆΛߦ͏ͷͰ ͜ͷϝχϡʔ͸࢖༻͠·ͤΜʣ ِ଄ϝʔϧ͔Βอޢ͠ɺΞϓϦέʔγϣϯ ͔Β҆શʹϝʔϧΛૹ৴͢ΔͨΊͷઃఆΛ ߦ͍·͢ɻ Acquia PipelineʢΞΫΠΞ͕ఏڙ͢ΔCI/CD πʔϧʣͷઃఆΛߦ͍·͢ɻ RAʢDrupalΞοϓσʔτɺϝϯςφϯελ εΫΛࣗಈԽɺαϙʔτ͢ΔͨΊͷαʔϏ εʣͷઃఆΛߦ͍·͢ɻ ΞϓϦέʔγϣϯʹඥͮ͘ΦʔΨχθʔ γϣϯͷϖʔδʹભҠ͠·͢ɻ
  8. ֤؀ڥʹؚ·ΕΔ΋ͷ ίʔυ Πϯετʔϧͨ͠DrupalίΞɺΠϯετʔϧͨ͠ίϯτϦϏϡʔ τϞδϡʔϧ/ςʔϚɺΧελϜϞδϡʔϧ/ςʔϚؚ͕·Ε·͢ɻ σʔλϕʔε DrupalαΠτͷίϯςϯπɺαΠτͷઃఆ಺༰ɺϢʔβʔ৘ใɺ ϩά৘ใͳͲؚ͕·Ε·͢ɻ ϑΝΠϧ DrupalαΠτͰϢʔβʔ͕Ξοϓϩʔυͨ͠ը૾΍PDFϑΝΠϧ ͕֨ೲ͞Ε·͢ɻ

    ֤؀ڥʹ͸ɺҟͳΔσʔλϕʔεɺҟͳΔϒϥϯνʢ΋͘͠͸λάʣͷίʔυϕʔεΛσϓϩΠ͢Δ͜ͱ͕Ͱ͖·͢ɻΠϯΫ ϧʔυϑΝΠϧʹΑͬͯ settings.php ϑΝΠϧ͕ߏ੒͞Εɺ֤؀ڥʹඥͮ͘ద੾ͳσʔλϕʔεͱϑΝΠϧʹ઀ଓ͠·͢ɻ
  9. ؀ڥͷछྨ ຊ൪؀ڥ • Production / prod - ΤϯυϢʔβʔʹදࣔ͞ΕΔ؀ڥͰ͢ɻຊ൪؀ڥͷσʔλϕʔε΍ϑΝΠϧΛඇຊ൪؀ڥʹ؆୯ ʹίϐʔ͢Δ͜ͱ͕Ͱ͖ΔͷͰɺΞϓϦέʔγϣϯͷݱࡏͷঢ়ଶ΍಺༰Λ֬ೝ͠ͳ͕Βςετ΍։ൃΛߦ͏͜ͱ͕ Ͱ͖·͢ɻ

    ඇຊ൪؀ڥ • Development / dev - ։ൃॳظͷ౷߹ςετ؀ڥͱͯ͠׆༻Ͱ͖·͢ɻ • Staging / stage - ΞϓϦέʔγϣϯ΁ͷมߋΛຊ൪؀ڥʹσϓϩΠ͢ΔલʹStaging؀ڥͰςετͰ͖·͢ɻ • RA - RA(Remote Administration)ͱ͸DrupalΞοϓσʔτɺϝϯςφϯελεΫΛࣗಈԽɺαϙʔτ͢ΔͨΊͷαʔϏ εͰ͢ɻ͜Ε͸RAΛఏڙ͢ΔͨΊͷ؀ڥͰ͢ɻ • CD؀ڥ / CDEs - dev΍stageҎ֎ͷඇຊ൪؀ڥΛ௥ՃͰ͖·͢ʢ͝ܖ໿ͷϓϥϯʹΑͬͯ௥ՃՄೳͳݸ਺͸ҟͳΓ ·͢ʣɻෛՙςετ΍౷߹ςετʹ໾ཱͪ·͢ɻ https://docs.acquia.com/cloud-platform/arch/key-concepts/#multiple- environments-local-development-staging-and-production
  10. ؀ڥ΁ͷૢ࡞ • ίʔυͷ؅ཧ • σʔλϕʔεͷ؅ཧ • ϑΝΠϧͷ؅ཧ • ؀ڥͷઃఆʢPHPͷઃఆ౳ʣ •

    Varnish®ΩϟογϡͷΫϦΞ • DrupalͷΠϯετʔϧ • ϥΠϒ։ൃϞʔυͷ༗ޮԽ • ؀ڥͷ໊લมߋ • αΠτՔಇঢ়گͷ֬ೝ • ͳͲ https://docs.acquia.com/cloud-platform/manage/environments/
  11. ϝχϡʔ߲໨ͷղઆ ؀ڥʹؔ͢Δ֓ཁΛදࣔ͠·͢ɻ ؀ڥͷΠϯϑϥߏ੒ʹؔ͢Δ৘ใΛදࣔ͠ ·͢ɻ ؀ڥͷΧελϜυϝΠϯʹؔ͢Δ؅ཧΛߦ ͍·͢ɻ ؀ڥݻ༗ͷ؀ڥม਺ͷ௥Ճ΍࡟আΛߦ͍· ͢ɻ Apacheϩά΍watchdogͳͲͷϩάΛϦΞϧ λΠϜͰදࣔͨ͠Γμ΢ϯϩʔυ͠·͢ɻ

    ֤ελοΫʢLB, App, DB౳ʣͷՔಇঢ়گΛ άϥϑͰදࣔ͠·͢ɻ ؀ڥʹඥͮ͘σʔλϕʔεͷ௥Ճ΍όοΫ ΞοϓͳͲΛ؅ཧ͠·͢ɻ ؀ڥͷSSLূ໌ॻʹؔ͢Δ؅ཧΛߦ͍·͢ɻ Acquia SearchͷSolr 7Λ࢖༻͢Δ৔߹ʹ͜ͷ ϝχϡʔ͔ΒઃఆΛߦ͍·͢ɻʢSolr 3/4͸ EOL͕͍ۙͨΊSolr 7ਪ঑ʣ ؀ڥʹΞΫηεͰ͖ΔϢʔβʔͷSSHΩʔ Ұཡ͕දࣔ͞Ε·͢ɻ Acquia InsightʢγεςϜ෼ੳπʔϧʣͷε ίΞΛදࣔ͠·͢ɻ αΠτͷϝϯςφϯελεΫ΍δϣϒͷ؅ ཧΛߦ͍·͢ɻ PHPόʔδϣϯͳͲɺ؀ڥݻ༗ͷઃఆΛߦ ͍·͢ɻ
  12. Acquia Cloud Platformͱޓ׵ੑͷͳ͍Ϟδϡʔϧ Cloud PlatformͷηΩϡϦςΟͱݖݶͷཁ݅ʹΑΓɺҰ෦ͷίϯτϦϏϡʔτϞδϡʔϧͱͷඇޓ׵ੑ͕ൃੜ͢Δ৔ ߹͕͋Γ·͢ɻҎԼʹҰ෦Λ͝঺հ͠·͢ɻ https://docs.acquia.com/cloud-platform/develop/drupal/ module-incompatibilities/ Ϟδϡʔϧ ໰୊಺༰

    Advanced Varnish ΞΫΠΞͷσϑΥϧτVCLΛɺCloud PlatformͰ͸αϙʔτ͞Ε͍ͯͳ͍ΧελϜVarnishߏ੒ʹஔ͖׵͑Δ͜ͱ͕ཁٻ͞Ε ·͢ɻ ApacheSolr file Cloud Platform্Ͱ solrconfig.xml Λฤू͢Δ͜ͱ͸Ͱ͖·ͤΜɻ APC APC(Alternative PHP Cache)͸Cloud Platform্Ͱ͸ਪ঑͞Ε·ͤΜɻ͜Ε͸Πϯϑϥ͝ͱʹσʔλΛอଘ͢ΔͨΊɺΠϯ ϑϥ͝ͱʹҟͳΔσʔλ͕ఏڙ͞ΕΔՄೳੑ͕͋Γ·͢ɻ·ͨɺOPcache͕࢖༻͢Δ͸ͣͷϝϞϦΛ࢖༻͠·͢ɻͦͷͨ Ί౰Ϟδϡʔϧͷ୅ΘΓʹMemcachedͷ࢖༻͕ਪ঑͞Ε·͢ɻ AutoSlave Cloud PlatformͷΠϯλʔϑΣʔε͸ɺϓϥΠϚϦͱαϒͷΠϯϑϥߏ੒Λݕग़͠ɺϑΣΠϧΦʔόʔͷঢ়ଶΛॲཧ͢Δͨ Ίʹઃఆ͞Ε͍ͯ·͢ɻ͜ͷϞδϡʔϧ͸ઃఆΛϋʔυίʔσΟϯά͍ͯ͠ΔͨΊɺෆਖ਼ͳσʔλϕʔεʹରͯ͠ಡΈॻ ͖Λߦ͏Մೳੑ͕͋Γ·͢ɻ Background Process Background Process Apache infrastructure status Ϟδϡʔϧ͸ɺCloud Platformͱޓ׵ੑ͕͋Γ·ͤΜɻ Backup and Migrate Cloud PlatformͰ͸αϙʔτର৅֎Ͱ͢ɻ શͯͷϞδϡʔϧҰཡ͸ͪ͜Β →
  13. ࢖༻ʹ஫ҙ͕ඞཁͳϞδϡʔϧ https://docs.acquia.com/cloud-platform/develop/drupal/ module-caution/ શͯͷϞδϡʔϧҰཡ͸ͪ͜Β → Ϟδϡʔϧ ໰୊಺༰ Adaptive Image ͜ͷϞδϡʔϧΛ࢖༻͢Δࡍʹ͸ɺΩϟογϡ͕Φϯʹͳ͍ͬͯΔ৔߹ɺը૾ͷ೿ੜ෺ͷอଘʹ໰୊͕ੜ͡ΔՄೳੑ͕

    ͋ΔͨΊ஫ҙ͕ඞཁͰ͢ɻ͜ͷϞδϡʔϧΛ࢖༻͍ͯ͠Δ৔߹ɺΩϟογϡΫϦΞޙʹ௚઀ϖʔδΛ๚ΕͨϢʔβʔ ͸ɺͦͷϖʔδͷը૾αΠζ͕ઃఆ͞Εɺͦͷը૾αΠζ͸ϒϥ΢βʹؔ܎ͳ͘ɺ͢΂ͯͷ๚໰ऀʹ࢖༻͞Ε·͢ɻ Authcache ࢖༻͢Δʹ͸ɺύϑΥʔϚϯεͷ໰୊ͱΞϓϦέʔγϣϯͷෳࡶ͞ͷධՁ͕ඞཁͰ͢ɻϖʔδ΍ϒϩοΫΛΩϟογϡ ͢Δํ͕ྑ͍৔߹΋͋Γ·͢ɻ͜ͷϞδϡʔϧ͸ɺϖʔδΩϟογϡͷαΠζΛେ෯ʹ૿΍͢͜ͱ͕Ͱ͖·͢ɻ Bean bean_entitycacheͷ࢖༻Λਪ঑͠·ͤΜɻMemcacheϞδϡʔϧͱ૊Έ߹Θͤͨ৔߹ɺͦͷಈ࡞͸༧ଌෆՄೳͰ͋Γɺ ͦͷ࢖༻͸ΞϓϦέʔγϣϯͷύϑΥʔϚϯεʹѱӨڹΛٴ΅͢Մೳੑ͕͋Γ·͢ɻ CAS ઃఆͷதͰɺϢʔβʔ͕͢ͰʹϩάΠϯઃఆʹͳ͍ͬͯΔ͔Ͳ͏͔Λ֬ೝ͠·͢ɻ͜Εʹ͸ηογϣϯCookieΛઃఆ͢ Δඞཁ͕͋ΓɺVarnish®͕ϖʔδΛΩϟογϡͰ͖ͳ͍Α͏ʹ͠·͢ɻ ౰Ϟδϡʔϧͷ୅ସͱͯ͠BakeryϞδϡʔϧ· ͨ͸SimpleSAMLΛ࢖༻͢Δ͜ͱΛ͓קΊ͠·͢ɻ Cloud PlatformͰ࢖༻Ͱ͖·͕͢ɺ௥Ճͷߏ੒͕ඞཁʹͳΔ৔߹΍ɺ໰୊ΛҾ͖ى͜͢৔߹͕͋Γ·͢ɻҎԼʹҰ෦Λ ͝঺հ͠·͢ɻ
  14. Acquia Cloud Platformೖ໳ ɹΞδΣϯμ • Acquia Cloud Platformͷ༻ޠ • Acquia

    Cloud PlatformͰͷ 
 ΞϓϦέʔγϣϯ؅ཧ • ؀ڥͷ؅ཧ • ط஌ͷ໰୊ͱɺޓ׵ੑͷͳ͍Ϟδϡʔ ϧ/ιϑτ΢ΣΞ • Q&A ΞϓϦέʔγϣϯ؅ཧํ๏ 
 Λֶ΅͏